summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_firstpass.h
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2018-08-25 21:39:59 -0700
committerJingning Han <jingning@google.com>2018-08-31 20:48:33 -0700
commitfc905edb3a0f0330957094b2836ef8bf03573e04 (patch)
tree38f22512a142555bc1dbf7111f7a9c645e8c109c /vp9/encoder/vp9_firstpass.h
parentb1b007405125d1c8fead491ed681c75394ee27e8 (diff)
downloadlibvpx-fc905edb3a0f0330957094b2836ef8bf03573e04.tar
libvpx-fc905edb3a0f0330957094b2836ef8bf03573e04.tar.gz
libvpx-fc905edb3a0f0330957094b2836ef8bf03573e04.tar.bz2
libvpx-fc905edb3a0f0330957094b2836ef8bf03573e04.zip
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
Diffstat (limited to 'vp9/encoder/vp9_firstpass.h')
-rw-r--r--vp9/encoder/vp9_firstpass.h5
1 files changed, 5 insertions, 0 deletions
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 {