aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-02-12 22:19:38 +0000
committerMark Thompson <sw@jkqxz.net>2018-02-12 22:19:38 +0000
commitd23fff0d8a0e7df170c67a9dd5c1f7c1fc0da489 (patch)
tree3b51fe6fabeae2eea7cd5027f58c01d965bb5d45 /libavcodec/avcodec.h
parentd401ba6b3d86091dff2fae326c610f0120ee8853 (diff)
parent5b145290df2998a9836a93eb925289c6c8b63af0 (diff)
downloadffmpeg-d23fff0d8a0e7df170c67a9dd5c1f7c1fc0da489.tar.gz
Merge commit '5b145290df2998a9836a93eb925289c6c8b63af0'
* commit '5b145290df2998a9836a93eb925289c6c8b63af0': lavc: Add support for increasing hardware frame pool sizes Merged-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index ad0b48a839..bc0eacd66b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3255,6 +3255,20 @@ typedef struct AVCodecContext {
* (with the display dimensions being determined by the crop_* fields).
*/
int apply_cropping;
+
+ /*
+ * Video decoding only. Sets the number of extra hardware frames which
+ * the decoder will allocate for use by the caller. This must be set
+ * before avcodec_open2() is called.
+ *
+ * Some hardware decoders require all frames that they will use for
+ * output to be defined in advance before decoding starts. For such
+ * decoders, the hardware frame pool must therefore be of a fixed size.
+ * The extra frames set here are on top of any number that the decoder
+ * needs internally in order to operate normally (for example, frames
+ * used as reference pictures).
+ */
+ int extra_hw_frames;
} AVCodecContext;
#if FF_API_CODEC_GET_SET