Mercurial > libavcodec.hg
diff avcodec.h @ 9155:9e66ada64b76 libavcodec
Add private HW accel data infrastructure.
author | gb |
---|---|
date | Mon, 09 Mar 2009 08:04:41 +0000 |
parents | 788aa0c09382 |
children | 3a54ad453dbf |
line wrap: on
line diff
--- a/avcodec.h Sun Mar 08 17:43:12 2009 +0000 +++ b/avcodec.h Mon Mar 09 08:04:41 2009 +0000 @@ -807,6 +807,13 @@ * - decoding: Read by user.\ */\ int64_t reordered_opaque;\ +\ + /**\ + * hardware accelerator private data (FFmpeg allocated)\ + * - encoding: unused\ + * - decoding: Set by libavcodec\ + */\ + void *hwaccel_data_private;\ #define FF_QSCALE_TYPE_MPEG1 0 @@ -2456,6 +2463,15 @@ * @return zero if successful, a negative value otherwise */ int (*end_frame)(AVCodecContext *avctx); + + /** + * Size of HW accelerator private data. + * + * Private data is allocated with av_malloc() before + * AVCodecContext::get_buffer() and deallocated after + * AVCodecContext::release_buffer(). + */ + int priv_data_size; } AVHWAccel; /**