diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-05-08 14:43:23 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-11 14:59:07 +0200 |
commit | ebc29519d1634bfeb386c20a5d8a52837aae2436 (patch) | |
tree | 3d0aaba476f3981c28e299c1b2c111054989fdae /libavcodec/avcodec.h | |
parent | a871ef0cc936612bdb0e643196be72efcf0c8986 (diff) | |
download | ffmpeg-ebc29519d1634bfeb386c20a5d8a52837aae2436.tar.gz |
hwaccel: Support specific frame allocators
It would reduce the boilerplate code users have to write.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index df061c1726..65c7da4ec9 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2947,6 +2947,11 @@ typedef struct AVHWAccel { struct AVHWAccel *next; /** + * Allocate a custom buffer + */ + int (*alloc_frame)(AVCodecContext *avctx, AVFrame *frame); + + /** * Called at the beginning of each frame or field picture. * * Meaningful frame information (codec specific) is guaranteed to |