ref: 1e2cfa3f0f75c971ccceb9be0e818b207c86303b
parent: fcefd4e1d126273a3f72bf8571298c35819e89ac
parent: c3689f7ad814fd64e9e31ec6b56ba93f1f9d12f1
author: Jingning Han <jingning@google.com>
date: Tue May 7 01:29:01 EDT 2019
Merge "Cap arf boost in perceptual quality mode"
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2647,6 +2647,13 @@
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.