From cfc680ab3982f5c9e4240a9bb69859a49f420113 Mon Sep 17 00:00:00 2001 From: Sebastien Zwickert Date: Mon, 13 Aug 2012 20:17:45 +0200 Subject: vda: Reuse the bitstream buffer and reallocate it only if needed Signed-off-by: Diego Biurrun --- libavcodec/vda.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libavcodec/vda.h') 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. */ -- cgit v1.2.3