Libav
Functions
VDPAU_Decoding

Functions

int ff_vdpau_common_start_frame (Picture *pic, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
int ff_vdpau_add_buffer (Picture *pic, const uint8_t *buf, uint32_t size)
 
int av_vdpau_get_profile (AVCodecContext *avctx, VdpDecoderProfile *profile)
 Get a decoder profile that should be used for initializing a VDPAU decoder. More...
 
AVVDPAUContextav_vdpau_alloc_context (void)
 Allocate an AVVDPAUContext. More...
 

Detailed Description

Function Documentation

int ff_vdpau_common_start_frame ( Picture pic,
av_unused const uint8_t buffer,
av_unused uint32_t  size 
)
int ff_vdpau_add_buffer ( Picture pic,
const uint8_t buf,
uint32_t  size 
)
int av_vdpau_get_profile ( AVCodecContext avctx,
VdpDecoderProfile *  profile 
)

Get a decoder profile that should be used for initializing a VDPAU decoder.

Should be called from the AVCodecContext.get_format() callback.

Parameters
avctxthe codec context being used for decoding the stream
profilea pointer into which the result will be written on success. The contents of profile are undefined if this function returns an error.
Returns
0 on success (non-negative), a negative AVERROR on failure.

Definition at line 93 of file vdpau.c.

Referenced by vdpau_init().

AVVDPAUContext* av_vdpau_alloc_context ( void  )

Allocate an AVVDPAUContext.

Returns
Newly-allocated AVVDPAUContext or NULL on failure.

Definition at line 136 of file vdpau.c.

Referenced by vdpau_alloc().