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 *);
96 AVVDPAU_Render2 render2;
106 AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(
const AVVDPAUContext *);
107 void av_vdpau_hwaccel_set_render2(
AVVDPAUContext *, AVVDPAU_Render2);
127 VdpGetProcAddress *get_proc_address,
unsigned flags);
147 uint32_t *width, uint32_t *height);
156 #if FF_API_VDPAU_PROFILE This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
Macro definitions for various function/variable attributes.
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...
Definition: vdpau.c:74
attribute_deprecated int av_vdpau_get_profile(AVCodecContext *avctx, VdpDecoderProfile *profile)
Get a decoder profile that should be used for initializing a VDPAU decoder.
Definition: vdpau.c:393
AVVDPAUContext * av_vdpau_alloc_context(void)
Allocate an AVVDPAUContext.
Definition: vdpau.c:441
VdpDecoder decoder
VDPAU decoder handle.
Definition: vdpau.h:87
Libavcodec version macros.
This structure is used to share data between the libavcodec library and the client video application...
Definition: vdpau.h:81
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.
Definition: vdpau.c:446
Libavcodec external API header.
AVVDPAUContext * av_alloc_vdpaucontext(void)
allocation function for AVVDPAUContext
Definition: vdpau.c:67
main external API structure.
Definition: avcodec.h:1518
VdpDecoderRender * render
VDPAU decoder render callback.
Definition: vdpau.h:94
struct AVVDPAUContext AVVDPAUContext
This structure is used to share data between the libavcodec library and the client video application...