summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encoder.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_encoder.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_encoder.h')
-rw-r--r--vp9/encoder/vp9_encoder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_encoder.h b/vp9/encoder/vp9_encoder.h
index 9adcb4522..446e030ba 100644
--- a/vp9/encoder/vp9_encoder.h
+++ b/vp9/encoder/vp9_encoder.h
@@ -834,6 +834,11 @@ static INLINE void stack_push(int *stack, int new_item, int stack_size) {
stack[0] = new_item;
}
+static INLINE void stack_init(int *stack, int length) {
+ int idx;
+ for (idx = 0; idx < length; ++idx) stack[idx] = -1;
+}
+
int vp9_get_quantizer(struct VP9_COMP *cpi);
static INLINE int frame_is_kf_gf_arf(const VP9_COMP *cpi) {