]> granicus.if.org Git - libvpx/commitdiff
vp9: Scene cut/content change detection: Adjust gf update.
authorMarco <marpan@google.com>
Mon, 14 Mar 2016 19:14:42 +0000 (12:14 -0700)
committerMarco <marpan@google.com>
Mon, 14 Mar 2016 19:16:37 +0000 (12:16 -0700)
For 1 pass vbr mode: Increase the period of gf update on scene
cut (keep it same as orginal/default setting for now).

Change-Id: I679c3bd21152f6c4e486c8098d931c00e1d26b5f

vp9/encoder/vp9_ratectrl.c

index 855acd777b1416d3a42c1a431da1468bba080470..a75295eae03dbd29bf48aa10ff84cc4b81e411d0 100644 (file)
@@ -2065,7 +2065,7 @@ void vp9_avg_source_sad(VP9_COMP *cpi) {
         cpi->ext_refresh_frame_flags_pending == 0) {
       int target;
       cpi->refresh_golden_frame = 1;
-      rc->frames_till_gf_update_due = rc->baseline_gf_interval >> 1;
+      rc->frames_till_gf_update_due = rc->baseline_gf_interval;
       if (rc->frames_till_gf_update_due > rc->frames_to_key)
         rc->frames_till_gf_update_due = rc->frames_to_key;
       rc->gfu_boost = DEFAULT_GF_BOOST;