diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-08-11 11:21:50 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-08-11 19:31:46 +0200 |
commit | af05edc658f3af284a1af39c00a36aeff0adaa0d (patch) | |
tree | ec0b9967a6235ac2e50e1132c99c506dada6bff9 /libavcodec/vdpau.h | |
parent | d87f9da53c93eca0cb0fe2f7c41bb56b461a8c93 (diff) | |
download | ffmpeg-af05edc658f3af284a1af39c00a36aeff0adaa0d.tar.gz |
vdpau: Add an allocation function for AVVDPAUContext.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/vdpau.h')
-rw-r--r-- | libavcodec/vdpau.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h index 08116bf637..210d517d83 100644 --- a/libavcodec/vdpau.h +++ b/libavcodec/vdpau.h @@ -73,7 +73,8 @@ union AVVDPAUPictureInfo { /** * This structure is used to share data between the libavcodec library and * the client video application. - * The user shall zero-allocate the structure and make it available as + * The user shall allocate the structure via the av_alloc_vdpau_hwaccel + * function and make it available as * AVCodecContext.hwaccel_context. Members can be set by the user once * during initialization or through each AVCodecContext.get_buffer() * function call. In any case, they must be valid prior to calling @@ -130,6 +131,13 @@ typedef struct AVVDPAUContext { #endif } AVVDPAUContext; +/** + * @brief allocation function for AVVDPAUContext + * + * Allows extending the struct without breaking API/ABI + */ +AVVDPAUContext *av_alloc_vdpaucontext(void); + #if FF_API_CAP_VDPAU /** @brief The videoSurface is used for rendering. */ #define FF_VDPAU_STATE_USED_FOR_RENDER 1 |