24 #ifndef AVCODEC_VDPAU_INTERNAL_H 25 #define AVCODEC_VDPAU_INTERNAL_H 28 #include <vdpau/vdpau.h> 31 #include "libavutil/hwcontext.h" 38 static inline uintptr_t ff_vdpau_get_surface_id(
AVFrame *pic)
40 return (uintptr_t)pic->
data[3];
44 VdpPictureInfoH264 h264;
45 VdpPictureInfoMPEG1Or2 mpeg;
46 VdpPictureInfoVC1 vc1;
47 VdpPictureInfoMPEG4Part2 mpeg4;
48 #ifdef VDP_DECODER_PROFILE_H264_HIGH_444_PREDICTIVE 49 VdpPictureInfoH264Predictive h264_predictive;
51 #ifdef VDP_DECODER_PROFILE_HEVC_MAIN 52 VdpPictureInfoHEVC hevc;
59 VdpGetProcAddress *get_proc_address;
111 int ff_vdpau_common_init(
AVCodecContext *avctx, VdpDecoderProfile profile,
116 const uint8_t *buffer, uint32_t size);
Definition: vdpau_internal.h:89
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
VdpDevice device
VDPAU device handle.
Definition: vdpau_internal.h:68
VdpDecoder decoder
VDPAU decoder handle.
Definition: vdpau_internal.h:73
int bitstream_buffers_used
Useful bitstream buffers in the bitstream buffers table.
Definition: vdpau_internal.h:103
Public libavcodec VDPAU header.
An API-specific header for AV_HWDEVICE_TYPE_VDPAU.
VdpBitstreamBuffer * bitstream_buffers
Table of bitstream buffers.
Definition: vdpau_internal.h:108
VdpGetProcAddress * get_proc_address
VDPAU device driver.
Definition: vdpau_internal.h:78
This structure is used to share data between the libavcodec library and the client video application...
Definition: vdpau.h:81
Definition: vdpau_internal.h:64
int bitstream_buffers_allocated
Allocated size of the bitstream_buffers table.
Definition: vdpau_internal.h:98
reference-counted frame API
Definition: vdpau_internal.h:56
Definition: vdpau_internal.h:43
Libavcodec external API header.
main external API structure.
Definition: avcodec.h:1518
VdpDecoderRender * render
VDPAU decoder render callback.
Definition: vdpau_internal.h:83
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
Definition: frame.h:232
A reference to a data buffer.
Definition: buffer.h:81