summaryrefslogtreecommitdiff
path: root/vp9/vp9_dx_iface.c
diff options
context:
space:
mode:
authorAdrian Grange <agrange@google.com>2015-02-18 09:40:34 -0800
committerAdrian Grange <agrange@google.com>2015-03-04 07:58:32 -0800
commit3807dd82ab48f9f85da6df225709877778b2f3f8 (patch)
treed9ba57adb6b0e500e6966d0dd6f4fba1a4957047 /vp9/vp9_dx_iface.c
parent87d1a488ede4d3fa71f374c781520f2784ca3dfb (diff)
downloadlibvpx-3807dd82ab48f9f85da6df225709877778b2f3f8.tar
libvpx-3807dd82ab48f9f85da6df225709877778b2f3f8.tar.gz
libvpx-3807dd82ab48f9f85da6df225709877778b2f3f8.tar.bz2
libvpx-3807dd82ab48f9f85da6df225709877778b2f3f8.zip
Make encoder buffer allocation dynamic
Frame buffers are now allocated dynamically on-demand. Entries in the reference frame map, cm->ref_frame_map, may now be set to -1 (INVALID_IDX) to indicate that there is not a valid reference buffer in that "slot". All slots in the reference frame map are now initialized to the empty state (-1) and each buffer is initialized to have a reference count of 0. Change-Id: Id1afe98de98db4ae8b2dfefed7889c3b28c68582
Diffstat (limited to 'vp9/vp9_dx_iface.c')
-rw-r--r--vp9/vp9_dx_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/vp9_dx_iface.c b/vp9/vp9_dx_iface.c
index 9bb880c7c..3e2106828 100644
--- a/vp9/vp9_dx_iface.c
+++ b/vp9/vp9_dx_iface.c
@@ -278,7 +278,7 @@ static void init_buffer_callbacks(vpx_codec_alg_priv_t *ctx) {
VP9_COMMON *const cm = &frame_worker_data->pbi->common;
BufferPool *const pool = cm->buffer_pool;
- cm->new_fb_idx = -1;
+ cm->new_fb_idx = INVALID_IDX;
cm->byte_alignment = ctx->byte_alignment;
if (ctx->get_ext_fb_cb != NULL && ctx->release_ext_fb_cb != NULL) {