Libav
Files | Data Structures | Macros | Functions

VDPAU hardware acceleration has two modules. More...

Files

file  vdpau.h
 Public libavcodec VDPAU header.
 

Data Structures

union  AVVDPAUPictureInfo
 
struct  AVVDPAUContext
 This structure is used to share data between the libavcodec library and the client video application. More...
 
struct  vdpau_render_state
 This structure is used as a callback between the Libav decoder (vd_) and presentation (vo_) module. More...
 

Macros

#define FF_VDPAU_STATE_USED_FOR_RENDER   1
 The videoSurface is used for rendering. More...
 
#define FF_VDPAU_STATE_USED_FOR_REFERENCE   2
 The videoSurface is needed for reference/prediction. More...
 

Functions

AVVDPAUContextav_vdpau_alloc_context (void)
 Allocate an AVVDPAUContext. More...
 
int av_vdpau_get_profile (AVCodecContext *avctx, VdpDecoderProfile *profile)
 Get a decoder profile that should be used for initializing a VDPAU decoder. More...
 

Detailed Description

VDPAU hardware acceleration has two modules.

The VDPAU decoding module parses all headers using Libav parsing mechanisms and uses VDPAU for the actual decoding.

As per the current implementation, the actual decoding and rendering (API calls) are done as part of the VDPAU presentation (vo_vdpau.c) module.

Macro Definition Documentation

#define FF_VDPAU_STATE_USED_FOR_RENDER   1

The videoSurface is used for rendering.

Definition at line 155 of file vdpau.h.

#define FF_VDPAU_STATE_USED_FOR_REFERENCE   2

The videoSurface is needed for reference/prediction.

The codec manipulates this.

Definition at line 161 of file vdpau.h.

Function Documentation

AVVDPAUContext* av_vdpau_alloc_context ( void  )

Allocate an AVVDPAUContext.

Returns
Newly-allocated AVVDPAUContext or NULL on failure.

Definition at line 134 of file vdpau.c.

Referenced by vdpau_alloc().

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 91 of file vdpau.c.

Referenced by vdpau_init().