Support for delta-q at superblock level

Change-Id: I4128af44776d1f361bddc1fdffb75ed2224dbfa5
This commit is contained in:
Arild Fuldseth
2016-08-15 15:07:52 +02:00
committed by Yaowu Xu
parent dc8a2c523f
commit 07441165fe
10 changed files with 232 additions and 1 deletions

View File

@@ -1219,7 +1219,15 @@ void av1_init_plane_quantizers(const AV1_COMP *cpi, MACROBLOCK *x,
const AV1_COMMON *const cm = &cpi->common;
MACROBLOCKD *const xd = &x->e_mbd;
const QUANTS *const quants = &cpi->quants;
#if CONFIG_DELTA_Q
int current_q_index = cpi->oxcf.aq_mode == DELTA_AQ
? cm->base_qindex + xd->delta_qindex
: cm->base_qindex;
const int qindex = av1_get_qindex(&cm->seg, segment_id, current_q_index);
#else
const int qindex = av1_get_qindex(&cm->seg, segment_id, cm->base_qindex);
#endif
const int rdmult = av1_compute_rd_mult(cpi, qindex + cm->y_dc_delta_q);
int i;
#if CONFIG_AOM_QM