ref: e70fa980b87309553722700310ffee1e0c5bce40
parent: d5630bfb1426e2fb41bade551930b4b9e81f7b90
author: Paul Wilkins <paulwilkins@google.com>
date: Tue Jul 17 10:48:02 EDT 2018
Limit Max GF boost for slide shows Set an upper limit on the maximum boost for a static GF only group such as in slide shows as part of tweaks to quality / rate trade off. Change-Id: Ic72575328419cdcf82ad3a20a1d9b947538c25c6
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2714,6 +2714,7 @@
#define ARF_DECAY_BREAKOUT 0.10
#define ARF_ABS_ZOOM_THRESH 4.0
+#define MAX_GF_BOOST 5400
static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
VP9_COMMON *const cm = &cpi->common;
RATE_CONTROL *const rc = &cpi->rc;
@@ -2932,7 +2933,7 @@
? 1
: 0;
} else {
- rc->gfu_boost = calc_arf_boost(cpi, 0, (i - 1));
+ rc->gfu_boost = VPXMIN(MAX_GF_BOOST, calc_arf_boost(cpi, 0, (i - 1)));
rc->source_alt_ref_pending = 0;
}