shithub: libvpx

Download patch

ref: 940a3c38340857dd44cc6b4079506031be1e3f41
parent: 2945e9ebfaa1387413f61d6bdbbf2d689f4e2a10
author: Jingning Han <jingning@google.com>
date: Mon Sep 17 05:30:37 EDT 2018

Assign GOP frame offset to all the coding frames

Overload the use of arf_src_offset to account the relative frame
offset for all the coding frames within a GOP.

Change-Id: Ia86dede37c6a93d9f23098c15dbd936acefd75dc

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2230,6 +2230,7 @@
       gf_group->update_type[frame_index] = GF_UPDATE;
       gf_group->rf_level[frame_index] = GF_ARF_STD;
     }
+    gf_group->arf_src_offset[frame_index] = 0;
 
     return frame_index;
   }
@@ -2246,6 +2247,7 @@
 
     gf_group->update_type[frame_index] = LF_UPDATE;
     gf_group->rf_level[frame_index] = INTER_NORMAL;
+    gf_group->arf_src_offset[frame_index] = 0;
     gf_group->layer_depth[frame_index] = MAX_ARF_LAYERS - 1;
 
     ++frame_index;
@@ -2265,6 +2267,7 @@
     gf_group->update_type[frame_index] = GF_UPDATE;
     gf_group->rf_level[frame_index] = GF_ARF_STD;
   }
+  gf_group->arf_src_offset[frame_index] = 0;
 
   return frame_index;
 }