Adjust the max_gf_interval initialization
authorYaowu Xu <yaowu@google.com>
Thu, 28 Feb 2013 17:14:47 +0000 (09:14 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 1 Mar 2013 14:38:35 +0000 (06:38 -0800)
to be a fixed value of 15.

Test results:
cif:  .124%, .068%, .081%
std-hd: 2.809%, 3.174%, 2.705%

Change-Id: I380c8152c973506094da15eab59e3aa22b75a983

vp9/encoder/vp9_onyx_if.c

index 42f3276..9aa062f 100644 (file)
@@ -1068,10 +1068,7 @@ void vp9_new_frame_rate(VP9_COMP *cpi, double framerate) {
     cpi->min_frame_bandwidth = FRAME_OVERHEAD_BITS;
 
   // Set Maximum gf/arf interval
-  cpi->max_gf_interval = ((int)(cpi->output_frame_rate / 2.0) + 2);
-
-  if (cpi->max_gf_interval < 12)
-    cpi->max_gf_interval = 12;
+  cpi->max_gf_interval = 15;
 
   // Extended interval for genuinely static scenes
   cpi->twopass.static_scene_max_gf_interval = cpi->key_frame_frequency >> 1;