diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-03-06 18:37:42 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-11 14:59:07 +0200 |
commit | dd2d3b766b20196d0b65a82e3d897ccecbf7adb8 (patch) | |
tree | 11260988722d5782c3797be3f0c5880a091a4830 /libavcodec/avcodec.h | |
parent | ebc29519d1634bfeb386c20a5d8a52837aae2436 (diff) | |
download | ffmpeg-dd2d3b766b20196d0b65a82e3d897ccecbf7adb8.tar.gz |
lavc: Add hwaccel private data and init/uninit callbacks
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 65c7da4ec9..c76ee04cf5 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2999,6 +2999,29 @@ typedef struct AVHWAccel { * AVCodecContext.release_buffer(). */ int frame_priv_data_size; + + /** + * Initialize the hwaccel private data. + * + * This will be called from ff_get_format(), after hwaccel and + * hwaccel_context are set and the hwaccel private data in AVCodecInternal + * is allocated. + */ + int (*init)(AVCodecContext *avctx); + + /** + * Uninitialize the hwaccel private data. + * + * This will be called from get_format() or avcodec_close(), after hwaccel + * and hwaccel_context are already uninitialized. + */ + int (*uninit)(AVCodecContext *avctx); + + /** + * Size of the private data to allocate in + * AVCodecInternal.hwaccel_priv_data. + */ + int priv_data_size; } AVHWAccel; /** |