Skip to content
Snippets Groups Projects
Commit dd3206fc authored by Urvang Joshi's avatar Urvang Joshi
Browse files

get_sqr_tx_size(): fix for tx64x64

When 64x64 transforms are enabled, it should return TX_64x64.

Midres set:
Small PSNR improvement overall (-0.061%),
But 3 clips have large gains (-1.0% to -0.4% range)

Change-Id: Ic2a1f0213449f81213219479c6b6aa0acfaac2e7
parent 17a61d4e
No related branches found
No related tags found
2 merge requests!6Rav1e 11 yushin 1,!3Rav1e 10 yushin
......@@ -1062,18 +1062,22 @@ static INLINE void txfm_partition_update(TXFM_CONTEXT *above_ctx,
}
static INLINE TX_SIZE get_sqr_tx_size(int tx_dim) {
TX_SIZE tx_size;
switch (tx_dim) {
#if CONFIG_EXT_PARTITION
case 128:
#endif
#endif // CONFIG_EXT_PARTITION
case 64:
case 32: tx_size = TX_32X32; break;
case 16: tx_size = TX_16X16; break;
case 8: tx_size = TX_8X8; break;
default: tx_size = TX_4X4;
#if CONFIG_TX64X64
return TX_64X64;
#else
return TX_32X32;
#endif // CONFIG_TX64X64
break;
case 32: return TX_32X32; break;
case 16: return TX_16X16; break;
case 8: return TX_8X8; break;
default: return TX_4X4;
}
return tx_size;
}
static INLINE int txfm_partition_context(TXFM_CONTEXT *above_ctx,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment