summaryrefslogtreecommitdiff
path: root/vpx
diff options
context:
space:
mode:
authorFrank Galligan <fgalligan@google.com>2013-12-10 17:22:41 -0800
committerJames Zern <jzern@google.com>2013-12-15 19:57:42 -0800
commitfbada948fa345e67acf9aa41a8f9a78f5dfe8648 (patch)
treec975a7d9a4db74fc190d2476647682752b883d70 /vpx
parentd0ee1fd797598fd692cbfe410bc37308a9e8924e (diff)
downloadlibvpx-fbada948fa345e67acf9aa41a8f9a78f5dfe8648.tar
libvpx-fbada948fa345e67acf9aa41a8f9a78f5dfe8648.tar.gz
libvpx-fbada948fa345e67acf9aa41a8f9a78f5dfe8648.tar.bz2
libvpx-fbada948fa345e67acf9aa41a8f9a78f5dfe8648.zip
Add frame buffer lru cache.
Add an option for libvpx to return the least recently used frame buffer. Change-Id: I886a96ffb94984f1c42de53086e0131922df3260
Diffstat (limited to 'vpx')
-rw-r--r--vpx/vp8dx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vpx/vp8dx.h b/vpx/vp8dx.h
index b457b9302..218f0b87a 100644
--- a/vpx/vp8dx.h
+++ b/vpx/vp8dx.h
@@ -79,6 +79,13 @@ enum vp8_dec_control_id {
/** For testing. */
VP9_INVERT_TILE_DECODE_ORDER,
+ /** control function to set the vp9 decoder into using the least recently
+ * used frame buffer when a new buffer is requested. Takes an int and if
+ * the value is zero will turn off using lru cache. The value of zero is
+ * the default. If the value is anything besides zero, then that will turn
+ * on lru cache.*/
+ VP9D_SET_FRAME_BUFFER_LRU_CACHE,
+
VP8_DECODER_CTRL_ID_MAX
};
@@ -110,6 +117,7 @@ VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vp8_decrypt_init *)
VPX_CTRL_USE_TYPE(VP9D_GET_DISPLAY_SIZE, int *)
VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
+VPX_CTRL_USE_TYPE(VP9D_SET_FRAME_BUFFER_LRU_CACHE, int)
/*! @} - end defgroup vp8_decoder */