foreach_transformed_block_in_plane cleanup, explicit tx_size var.
Making foreach_transformed_block_in_plane more clear (it's not finished yet). Using explicit tx_size variable consistently instead of (ss_txfrm_size / 2) or (ss_txfrm_size >> 1) expression. Change-Id: I1b9bba2c0a9f817fca72c88324bbe6004766fb7d
This commit is contained in:
@@ -260,19 +260,19 @@ static void decode_block(int plane, int block,
|
||||
MACROBLOCKD *xd = &arg->pbi->mb;
|
||||
struct macroblockd_plane* pd = &xd->plane[plane];
|
||||
const int segment_id = xd->mode_info_context->mbmi.segment_id;
|
||||
const TX_SIZE ss_tx_size = ss_txfrm_size / 2;
|
||||
const TX_SIZE tx_size = ss_txfrm_size >> 1;
|
||||
const int seg_eob = get_eob(&xd->seg, segment_id, 16 << ss_txfrm_size);
|
||||
const int off = block >> ss_txfrm_size;
|
||||
const int mod = bw - ss_tx_size - pd->subsampling_x;
|
||||
const int aoff = (off & ((1 << mod) - 1)) << ss_tx_size;
|
||||
const int loff = (off >> mod) << ss_tx_size;
|
||||
const int tx_size_in_blocks = 1 << ss_tx_size;
|
||||
const int mod = bw - tx_size - pd->subsampling_x;
|
||||
const int aoff = (off & ((1 << mod) - 1)) << tx_size;
|
||||
const int loff = (off >> mod) << tx_size;
|
||||
const int tx_size_in_blocks = 1 << tx_size;
|
||||
ENTROPY_CONTEXT *A = pd->above_context + aoff;
|
||||
ENTROPY_CONTEXT *L = pd->left_context + loff;
|
||||
const int eob = decode_coefs(&arg->pbi->common, xd, arg->r, block,
|
||||
pd->plane_type, seg_eob,
|
||||
BLOCK_OFFSET(pd->qcoeff, block),
|
||||
ss_tx_size, pd->dequant, A, L);
|
||||
tx_size, pd->dequant, A, L);
|
||||
|
||||
if (xd->mb_to_right_edge < 0 || xd->mb_to_bottom_edge < 0) {
|
||||
set_contexts_on_border(xd, bsize, plane, tx_size_in_blocks, eob, aoff, loff,
|
||||
|
||||
Reference in New Issue
Block a user