From fc905edb3a0f0330957094b2836ef8bf03573e04 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Sat, 25 Aug 2018 21:39:59 -0700 Subject: Build arf index stack Stack the ARF frame indexes. Use the most recent one as the ARF reference frame for frame coding. Change-Id: I88a2202fa5deb2587d861b434d27ab8de0642cf7 --- vp9/encoder/vp9_firstpass.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vp9/encoder/vp9_firstpass.h') diff --git a/vp9/encoder/vp9_firstpass.h b/vp9/encoder/vp9_firstpass.h index 0a7e1adf7..e1c882df4 100644 --- a/vp9/encoder/vp9_firstpass.h +++ b/vp9/encoder/vp9_firstpass.h @@ -143,6 +143,11 @@ typedef struct { unsigned char brf_src_offset[MAX_STATIC_GF_GROUP_LENGTH + 2]; unsigned char bidir_pred_enabled[MAX_STATIC_GF_GROUP_LENGTH + 2]; int bit_allocation[MAX_STATIC_GF_GROUP_LENGTH + 2]; + + // TODO(jingning): The array size of arf_stack could be reduced. + int arf_index_stack[MAX_LAG_BUFFERS * 2]; + int top_arf_idx; + int stack_size; } GF_GROUP; typedef struct { -- cgit v1.2.3