Re-initialise quantiser after changing segment.

When using VARIANCE_AQ, we can change the segment assignment after
initialising the quantiser in set_offsets, so re-initialise it when
we do so.

Change-Id: I1f168553aaf0ade419f0d4bf05820cd591b87659
This commit is contained in:
Geza Lore 2016-06-09 15:29:29 +01:00
Родитель d60523bc28
Коммит 9e95919414
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1731,6 +1731,9 @@ static void rd_pick_sb_modes(VP10_COMP *cpi,
const int energy = bsize <= BLOCK_16X16 ?
x->mb_energy : vp10_block_energy(cpi, x, bsize);
mbmi->segment_id = vp10_vaq_segment_id(energy);
// Re-initialise quantiser
vp10_init_plane_quantizers(cpi, x, mbmi->segment_id);
x->encode_breakout = cpi->segment_encode_breakout[mbmi->segment_id];
}
x->rdmult = set_segment_rdmult(cpi, x, mbmi->segment_id);
} else if (aq_mode == COMPLEXITY_AQ) {