summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-14 13:08:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-14 13:08:36 +0100
commit31c09b7663acdcc64031d6f251a667ce812f590f (patch)
treea938859264028d21a5a23b55b6c4b37ebed9ab55 /libavcodec/vdpau.h
parent5f231d909f158e40d20281b88e7aecc2333057fe (diff)
parent728c4658563dc82115ade0f1679679eddb7be5ff (diff)
downloadffmpeg-31c09b7663acdcc64031d6f251a667ce812f590f.tar.gz
Merge commit '728c4658563dc82115ade0f1679679eddb7be5ff'
* commit '728c4658563dc82115ade0f1679679eddb7be5ff': vdpau: add a constructor for AVVDPAUContext. Conflicts: libavcodec/vdpau.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vdpau.h')
-rw-r--r--libavcodec/vdpau.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
index b84bdeaeba..e25cc42d7e 100644
--- a/libavcodec/vdpau.h
+++ b/libavcodec/vdpau.h
@@ -82,6 +82,10 @@ typedef int (*AVVDPAU_Render2)(struct AVCodecContext *, struct AVFrame *,
* during initialization or through each AVCodecContext.get_buffer()
* function call. In any case, they must be valid prior to calling
* decoding functions.
+ *
+ * The size of this structure is not a part of the public ABI and must not
+ * be used outside of libavcodec. Use av_vdpau_alloc_context() to allocate an
+ * AVVDPAUContext.
*/
typedef struct AVVDPAUContext {
/**
@@ -146,6 +150,13 @@ AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(const AVVDPAUContext *);
void av_vdpau_hwaccel_set_render2(AVVDPAUContext *, AVVDPAU_Render2);
/**
+ * Allocate an AVVDPAUContext.
+ *
+ * @return Newly-allocated AVVDPAUContext or NULL on failure.
+ */
+AVVDPAUContext *av_vdpau_alloc_context(void);
+
+/**
* Get a decoder profile that should be used for initializing a VDPAU decoder.
* Should be called from the AVCodecContext.get_format() callback.
*