24 #ifndef AVCODEC_VDPAU_H
25 #define AVCODEC_VDPAU_H
52 #include <vdpau/vdpau.h>
53 #include <vdpau/vdpau_x11.h>
54 #include "libavutil/avconfig.h"
55 #include "libavutil/attributes.h"
57 #ifndef FF_API_CAP_VDPAU
58 #define FF_API_CAP_VDPAU 1
60 #ifndef FF_API_BUFS_VDPAU
61 #define FF_API_BUFS_VDPAU 1
67 VdpPictureInfoMPEG1Or2
mpeg;
68 VdpPictureInfoVC1
vc1;
77 const VdpPictureInfo *, uint32_t,
78 const VdpBitstreamBuffer *);
105 #if FF_API_BUFS_VDPAU
154 #define FF_VDPAU_STATE_USED_FOR_RENDER 1
160 #define FF_VDPAU_STATE_USED_FOR_REFERENCE 2
174 #if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
186 #if !AV_HAVE_INCOMPATIBLE_LIBAV_ABI
VdpDecoderRender * render
VDPAU decoder render callback.
This structure describes decoded (raw) audio or video data.
VdpPictureInfoMPEG1Or2 mpeg
AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(const AVVDPAUContext *)
attribute_deprecated int bitstream_buffers_used
Useful bitstream buffers in the bitstream buffers table.
VdpDecoder decoder
VDPAU decoder handle.
VdpBitstreamBuffer * bitstream_buffers
The user is responsible for freeing this buffer using av_freep().
attribute_deprecated union AVVDPAUPictureInfo info
VDPAU picture information.
This structure is used to share data between the libavcodec library and the client video application...
#define attribute_deprecated
attribute_deprecated int bitstream_buffers_allocated
Allocated size of the bitstream_buffers table.
union AVVDPAUPictureInfo info
picture parameter information for all supported codecs
void av_vdpau_hwaccel_set_render2(AVVDPAUContext *, AVVDPAU_Render2)
VdpPictureInfoMPEG4Part2 mpeg4
AVVDPAUContext * av_alloc_vdpaucontext(void)
allocation function for AVVDPAUContext
main external API structure.
int bitstream_buffers_used
attribute_deprecated VdpBitstreamBuffer * bitstream_buffers
Table of bitstream buffers.
int bitstream_buffers_allocated
Describe size/location of the compressed video data.
int state
Holds FF_VDPAU_STATE_* values.
int(* AVVDPAU_Render2)(struct AVCodecContext *, struct AVFrame *, const VdpPictureInfo *, uint32_t, const VdpBitstreamBuffer *)
This structure is used as a callback between the FFmpeg decoder (vd_) and presentation (vo_) module...
VdpVideoSurface surface
Used as rendered surface, never changed.