diff options
author | Sebastien Zwickert <dilaroga@free.fr> | 2012-08-13 20:17:45 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-08-14 12:47:15 +0200 |
commit | cfc680ab3982f5c9e4240a9bb69859a49f420113 (patch) | |
tree | 33100931e6ff5bbc3710e98ba034e58acae0e819 /libavcodec/vda.h | |
parent | ad08dfd594187d2de40b89d3b15cb8c43751532f (diff) | |
download | ffmpeg-cfc680ab3982f5c9e4240a9bb69859a49f420113.tar.gz |
vda: Reuse the bitstream buffer and reallocate it only if needed
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/vda.h')
-rw-r--r-- | libavcodec/vda.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/vda.h b/libavcodec/vda.h index 79fbfe86ac..ec7d2f75b6 100644 --- a/libavcodec/vda.h +++ b/libavcodec/vda.h @@ -138,6 +138,21 @@ struct vda_context { * - decoding: Set/Unset by user. */ OSType cv_pix_fmt_type; + + /** + * The current bitstream buffer. + */ + uint8_t *priv_bitstream; + + /** + * The current size of the bitstream. + */ + int priv_bitstream_size; + + /** + * The reference size used for fast reallocation. + */ + int priv_allocated_size; }; /** Create the video decoder. */ |