24 #ifndef AVCODEC_VDPAU_H
25 #define AVCODEC_VDPAU_H
52 #include <vdpau/vdpau.h>
54 #include "libavutil/avconfig.h"
64 const VdpPictureInfo *, uint32_t,
65 const VdpBitstreamBuffer *);
127 VdpGetProcAddress *get_proc_address,
unsigned flags);
156 #if FF_API_VDPAU_PROFILE
Macro definitions for various function/variable attributes.
#define attribute_deprecated
Libavcodec external API header.
AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(const AVVDPAUContext *)
int(* AVVDPAU_Render2)(struct AVCodecContext *, struct AVFrame *, const VdpPictureInfo *, uint32_t, const VdpBitstreamBuffer *)
VdpDecoder decoder
VDPAU decoder handle.
void av_vdpau_hwaccel_set_render2(AVVDPAUContext *, AVVDPAU_Render2)
AVVDPAUContext * av_alloc_vdpaucontext(void)
allocation function for AVVDPAUContext
VdpDecoderRender * render
VDPAU decoder render callback.
AVVDPAUContext * av_vdpau_alloc_context(void)
Allocate an AVVDPAUContext.
int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device, VdpGetProcAddress *get_proc_address, unsigned flags)
Associate a VDPAU device with a codec context for hardware acceleration.
int av_vdpau_get_surface_parameters(AVCodecContext *avctx, VdpChromaType *type, uint32_t *width, uint32_t *height)
Gets the parameters to create an adequate VDPAU video surface for the codec context using VDPAU hardw...
attribute_deprecated int av_vdpau_get_profile(AVCodecContext *avctx, VdpDecoderProfile *profile)
Get a decoder profile that should be used for initializing a VDPAU decoder.
Libavutil version macros.
main external API structure.
This structure describes decoded (raw) audio or video data.
This structure is used to share data between the libavcodec library and the client video application.