When the perceptual AQ mode is enabled, cap the ARF boost to 2.5x
of the regular frame. This allows more consistent frame quality
across consecutive frames and sufficient bit rate allocation at
frame level for AQ mode.
Change-Id: I10f5e2860a3e4b412efe25cca635405bae293ebf
rc->gfu_boost = VPXMIN((int)rc->gfu_boost, i * 200);
#endif
+ // Cap the ARF boost when perceptual quality AQ mode is enabled. This is
+ // designed to improve the perceptual quality of high value content and to
+ // make consistent quality across consecutive frames. It will hurt objective
+ // quality.
+ if (oxcf->aq_mode == PERCEPTUAL_AQ)
+ rc->gfu_boost = VPXMIN(rc->gfu_boost, MIN_ARF_GF_BOOST);
+
rc->baseline_gf_interval = i - rc->source_alt_ref_pending;
// Reset the file position.