ref: a4364e5146a0612e0ac604cb6a8d636ae6b325fc
parent: 7acb2a8795b0c2449499d57d244eaf23335bb3d5
parent: 19da9167163abe708e99e72b861aeda43e5e4333
author: Jingning Han <[email protected]>
date: Wed Apr 1 10:55:03 EDT 2015
Merge "Simplify effective src_diff address computation"
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -602,10 +602,8 @@
tran_low_t *const dqcoeff = BLOCK_OFFSET(pd->dqcoeff, block);
uint16_t *const eob = &p->eobs[block];
const int diff_stride = 4 * num_4x4_blocks_wide_lookup[bsize];
- int i, j;
const int16_t *src_diff;
- txfrm_block_to_raster_xy(bsize, tx_size, block, &i, &j);
- src_diff = &p->src_diff[4 * (j * diff_stride + i)];
+ src_diff = &p->src_diff[(r * diff_stride + c) << 2];
switch (tx_size) {
case TX_32X32: