Commit 7956bd64 authored by Jingning Han's avatar Jingning Han
Browse files

Make txfm_partition_update support rectangular tx_size

Change-Id: I7d2414a8766141d5109b599271179bc505c772d3
parent ce059e86
......@@ -747,12 +747,11 @@ static INLINE void txfm_partition_update(TXFM_CONTEXT *above_ctx,
TXFM_CONTEXT *left_ctx,
TX_SIZE tx_size) {
BLOCK_SIZE bsize = txsize_to_bsize[tx_size];
int bs = num_8x8_blocks_high_lookup[bsize];
int bh = num_8x8_blocks_high_lookup[bsize];
int bw = num_8x8_blocks_wide_lookup[bsize];
int i;
for (i = 0; i < bs; ++i) {
above_ctx[i] = tx_size;
left_ctx[i] = tx_size;
}
for (i = 0; i < bh; ++i) left_ctx[i] = tx_size;
for (i = 0; i < bw; ++i) above_ctx[i] = tx_size;
}
static INLINE int txfm_partition_context(TXFM_CONTEXT *above_ctx,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment