]> granicus.if.org Git - libvpx/commitdiff
Make gop size independent from kf_zeromotion_pct
authorangiebird <angiebird@google.com>
Tue, 22 Oct 2019 22:16:21 +0000 (15:16 -0700)
committerangiebird <angiebird@google.com>
Wed, 23 Oct 2019 00:26:52 +0000 (17:26 -0700)
Change-Id: I309357fd0e008d10b974c9d2603d0712e1aa0bcd

vp9/encoder/vp9_firstpass.c

index b006060e5edb265fbd56b080b9314e5a271951a6..5f1c8b2f0bd8775758322a918a3c0a28315967a4 100644 (file)
@@ -2462,8 +2462,7 @@ static int get_gop_coding_frame_num(
     int *use_alt_ref, const FRAME_INFO *frame_info,
     const FIRST_PASS_INFO *first_pass_info, const RATE_CONTROL *rc,
     int gf_start_show_idx, int active_min_gf_interval,
-    int active_max_gf_interval, double gop_intra_factor, int kf_zeromotion_pct,
-    int lag_in_frames) {
+    int active_max_gf_interval, double gop_intra_factor, int lag_in_frames) {
   double loop_decay_rate = 1.00;
   double mv_ratio_accumulator = 0.0;
   double this_frame_mv_in_out = 0.0;
@@ -2567,7 +2566,6 @@ static int get_gop_coding_frame_num(
     }
   }
   *use_alt_ref &= zero_motion_accumulator < 0.995;
-  *use_alt_ref &= kf_zeromotion_pct < STATIC_KF_GROUP_THRESH;
   *use_alt_ref &= gop_coding_frames < lag_in_frames;
   *use_alt_ref &= gop_coding_frames >= rc->min_gf_interval;
   return gop_coding_frames;
@@ -2672,7 +2670,7 @@ static void define_gf_group(VP9_COMP *cpi, int gf_start_show_idx) {
     gop_coding_frames = get_gop_coding_frame_num(
         &use_alt_ref, frame_info, first_pass_info, rc, gf_start_show_idx,
         active_min_gf_interval, active_max_gf_interval, gop_intra_factor,
-        twopass->kf_zeromotion_pct, cpi->oxcf.lag_in_frames);
+        cpi->oxcf.lag_in_frames);
     use_alt_ref &= allow_alt_ref;
   }