ref: 59bbb331345ff1e98e3d7a35e51add1d3458abd9
parent: 7409225a3cd465142bd20cec313270c0ecd0589b
author: Paul Wilkins <paulwilkins@google.com>
date: Fri Jul 20 10:15:42 EDT 2018
Fixed "MAX" boost for static kf sections. Apply a fixed maximum boost for static key frame groups / slide show content (if > 8 frames long). This insures sufficient boost on shorter sections whilst preventing excessive boost on longer sections. Change-Id: I5b857dab023d674cfd55bced3437f3bce3b4f1cb
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -3433,7 +3433,7 @@
// Special case for static / slide show content but dont apply
// if the kf group is very short.
if ((zero_motion_accumulator > 0.99) && (rc->frames_to_key > 8)) {
- rc->kf_boost = VPXMAX((rc->frames_to_key * 100), MAX_KF_TOT_BOOST);
+ rc->kf_boost = MAX_KF_TOT_BOOST;
} else {
// Apply various clamps for min and max boost
rc->kf_boost = VPXMAX((int)boost_score, (rc->frames_to_key * 3));