From 940a3c38340857dd44cc6b4079506031be1e3f41 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Mon, 17 Sep 2018 09:30:37 -0700 Subject: [PATCH] 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 --- vp9/encoder/vp9_firstpass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 8020184..82fbcf4 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -2230,6 +2230,7 @@ static int define_gf_group_structure(VP9_COMP *cpi) { 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 @@ static int define_gf_group_structure(VP9_COMP *cpi) { 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 @@ static int define_gf_group_structure(VP9_COMP *cpi) { 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; } -- 2.7.4