diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-02-01 15:39:50 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-02-14 22:29:52 +0100 |
commit | 7b3214d0050613bd347a2e41c9f78ffb766da25e (patch) | |
tree | 3fcde9d9a7e5998e5828235066e31c3cd8815f13 /libavcodec/avcodec.h | |
parent | 21f7cd4acd8dc4b4796b55966dd015cb037164d8 (diff) | |
download | ffmpeg-7b3214d0050613bd347a2e41c9f78ffb766da25e.tar.gz |
lavc: add a field for passing AVHWFramesContext to encoders
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index fe3366b256..12458abd78 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2979,6 +2979,18 @@ typedef struct AVCodecContext { AVPacketSideData *coded_side_data; int nb_coded_side_data; + /** + * Encoding only. + * + * For hardware encoders configured to use a hwaccel pixel format, this + * field should be set by the caller to a reference to the AVHWFramesContext + * describing input frames. AVHWFramesContext.format must be equal to + * AVCodecContext.pix_fmt. + * + * This field should be set before avcodec_open2() is called and is + * afterwards owned and managed by libavcodec. + */ + AVBufferRef *hw_frames_ctx; } AVCodecContext; /** |