diff options
author | Frank Galligan <fgalligan@google.com> | 2013-12-11 09:06:35 -0800 |
---|---|---|
committer | Frank Galligan <fgalligan@google.com> | 2013-12-15 18:45:46 -0800 |
commit | 10f891696bc4c972c13cc9fde2c53470501a03e2 (patch) | |
tree | 21d8f81ea2df7408f5e1e16e547c2113d0c99012 /test/decode_test_driver.h | |
parent | 52b2d50db4d194b7484e8ca0bec4c8c71bf94eaa (diff) | |
download | libvpx-10f891696bc4c972c13cc9fde2c53470501a03e2.tar libvpx-10f891696bc4c972c13cc9fde2c53470501a03e2.tar.gz libvpx-10f891696bc4c972c13cc9fde2c53470501a03e2.tar.bz2 libvpx-10f891696bc4c972c13cc9fde2c53470501a03e2.zip |
Add support to pass in external frame buffers.
VP9 decoder can now use frame buffers passed in by the application.
Change-Id: I599527ec85c577f3f5552831d79a693884fafb73
Diffstat (limited to 'test/decode_test_driver.h')
-rw-r--r-- | test/decode_test_driver.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/decode_test_driver.h b/test/decode_test_driver.h index ddaed9fa0..79db6e1bc 100644 --- a/test/decode_test_driver.h +++ b/test/decode_test_driver.h @@ -76,6 +76,16 @@ class Decoder { return detail ? detail : vpx_codec_error(&decoder_); } + // Passes the external frame buffer information to libvpx. + vpx_codec_err_t SetExternalFrameBuffers( + vpx_codec_frame_buffer_t *fb_list, int fb_count, + vpx_realloc_frame_buffer_cb_fn_t cb, void *user_priv) { + InitOnce(); + return vpx_codec_set_frame_buffers(&decoder_, + fb_list, fb_count, + cb, user_priv); + } + protected: virtual const vpx_codec_iface_t* CodecInterface() const = 0; |