ref: 8af27dcd90cf3781097dce665d734e68fa9f5c78
parent: 34576dab60758e66fd66aa4c78e038efe21e8d69
parent: 8c52776ec1eb175f008581835ecfaf52eb07b453
author: Jingning Han <jingning@google.com>
date: Mon Mar 18 18:30:17 EDT 2019
Merge "Add rdmult adjustment for perceptual AQ mode"
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -1927,6 +1927,13 @@
}
x->rdmult = vp9_compute_rd_mult(cpi, cm->base_qindex + cm->y_dc_delta_q);
+
+ if (cpi->sf.enable_wiener_variance && cm->show_frame) {
+ if (cm->seg.enabled)
+ x->rdmult = vp9_compute_rd_mult(
+ cpi, vp9_get_qindex(&cm->seg, x->e_mbd.mi[0]->segment_id,
+ cm->base_qindex));
+ }
}
static void rd_pick_sb_modes(VP9_COMP *cpi, TileDataEnc *tile_data,