]> granicus.if.org Git - libvpx/commitdiff
Fixed "MAX" boost for static kf sections.
authorPaul Wilkins <paulwilkins@google.com>
Fri, 20 Jul 2018 13:15:42 +0000 (14:15 +0100)
committerPaul Wilkins <paulwilkins@google.com>
Fri, 20 Jul 2018 15:39:55 +0000 (16:39 +0100)
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

vp9/encoder/vp9_firstpass.c

index d130edf5a08cb842fe8c9575044716f48d6732e0..fc1ecd6ceda931a419fccf5d1c60cd012004155a 100644 (file)
@@ -3433,7 +3433,7 @@ static void find_next_key_frame(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
   // 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));