Fix the bug that height of a partition is used as a stride mistakenly.
This fixes the regression caused by sub8x8 tx size rd search
for a partition >= 8x8.

Change-Id: I6114814dcec70fd5198f681c0a861bc9849286fd
This commit is contained in:
Yushin Cho 2017-06-12 14:43:22 -07:00
Родитель be44e512ea
Коммит 09b01a243f
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -1648,7 +1648,6 @@ static void daala_dist_sub8x8_txfm_rd(MACROBLOCK *x, BLOCK_SIZE bsize,
#endif // CONFIG_PVQ #endif // CONFIG_PVQ
const int src_stride = p->src.stride; const int src_stride = p->src.stride;
const int dst_stride = pd->dst.stride; const int dst_stride = pd->dst.stride;
const int pred_stride = block_size_wide[bsize];
const uint8_t *src = &p->src.buf[0]; const uint8_t *src = &p->src.buf[0];
const uint8_t *dst = &pd->dst.buf[0]; const uint8_t *dst = &pd->dst.buf[0];
const int16_t *pred = &pd->pred[0]; const int16_t *pred = &pd->pred[0];
@ -1668,7 +1667,7 @@ static void daala_dist_sub8x8_txfm_rd(MACROBLOCK *x, BLOCK_SIZE bsize,
DECLARE_ALIGNED(16, uint8_t, pred8[MAX_SB_SQUARE]); DECLARE_ALIGNED(16, uint8_t, pred8[MAX_SB_SQUARE]);
for (j = 0; j < bh; j++) for (j = 0; j < bh; j++)
for (i = 0; i < bw; i++) pred8[j * bh + i] = pred[j * pred_stride + i]; for (i = 0; i < bw; i++) pred8[j * bw + i] = pred[j * bw + i];
tmp1 = av1_daala_dist(src, src_stride, pred8, bw, bw, bh, qm, tmp1 = av1_daala_dist(src, src_stride, pred8, bw, bw, bh, qm,
use_activity_masking, qindex); use_activity_masking, qindex);