Commit a4364e51 authored by Jingning Han's avatar Jingning Han Committed by Gerrit Code Review
Browse files

Merge "Simplify effective src_diff address computation"

parents 7acb2a87 19da9167
...@@ -602,10 +602,8 @@ static void block_yrd(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *dist, ...@@ -602,10 +602,8 @@ static void block_yrd(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *dist,
tran_low_t *const dqcoeff = BLOCK_OFFSET(pd->dqcoeff, block); tran_low_t *const dqcoeff = BLOCK_OFFSET(pd->dqcoeff, block);
uint16_t *const eob = &p->eobs[block]; uint16_t *const eob = &p->eobs[block];
const int diff_stride = 4 * num_4x4_blocks_wide_lookup[bsize]; const int diff_stride = 4 * num_4x4_blocks_wide_lookup[bsize];
int i, j;
const int16_t *src_diff; const int16_t *src_diff;
txfrm_block_to_raster_xy(bsize, tx_size, block, &i, &j); src_diff = &p->src_diff[(r * diff_stride + c) << 2];
src_diff = &p->src_diff[4 * (j * diff_stride + i)];
switch (tx_size) { switch (tx_size) {
case TX_32X32: case TX_32X32:
......
Supports Markdown
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