VA API Decoding
[VDPAU Decoder and Renderer]


Data Structures

struct  vaapi_context
 This structure is used to share data between the FFmpeg library and the client video application. More...

Functions

static void destroy_buffers (VADisplay display, VABufferID *buffers, unsigned int n_buffers)
static int render_picture (struct vaapi_context *vactx, VASurfaceID surface)
static int commit_slices (struct vaapi_context *vactx)
static void * alloc_buffer (struct vaapi_context *vactx, int type, unsigned int size, uint32_t *buf_id)
void * ff_vaapi_alloc_pic_param (struct vaapi_context *vactx, unsigned int size)
 Allocate a new picture parameter buffer.
void * ff_vaapi_alloc_iq_matrix (struct vaapi_context *vactx, unsigned int size)
 Allocate a new IQ matrix buffer.
uint8_t * ff_vaapi_alloc_bitplane (struct vaapi_context *vactx, uint32_t size)
 Allocate a new bit-plane buffer.
VASliceParameterBufferBase * ff_vaapi_alloc_slice (struct vaapi_context *vactx, const uint8_t *buffer, uint32_t size)
 Allocate a new slice descriptor for the input slice.
int ff_vaapi_common_end_frame (MpegEncContext *s)
 Common AVHWAccel.end_frame() implementation.
static VASurfaceID ff_vaapi_get_surface_id (Picture *pic)
 Extract VASurfaceID from a Picture.

Function Documentation

static void* alloc_buffer ( struct vaapi_context vactx,
int  type,
unsigned int  size,
uint32_t *  buf_id 
) [static]

Definition at line 120 of file vaapi.c.

static int commit_slices ( struct vaapi_context vactx  )  [static]

Definition at line 80 of file vaapi.c.

Referenced by ff_vaapi_alloc_slice(), and ff_vaapi_common_end_frame().

static void destroy_buffers ( VADisplay  display,
VABufferID *  buffers,
unsigned int  n_buffers 
) [static]

Definition at line 32 of file vaapi.c.

Referenced by ff_vaapi_common_end_frame().

uint8_t * ff_vaapi_alloc_bitplane ( struct vaapi_context vactx,
uint32_t  size 
)

Allocate a new bit-plane buffer.

Definition at line 142 of file vaapi.c.

Referenced by vaapi_vc1_start_frame().

void * ff_vaapi_alloc_iq_matrix ( struct vaapi_context vactx,
unsigned int  size 
)

Allocate a new IQ matrix buffer.

Definition at line 137 of file vaapi.c.

Referenced by start_frame(), vaapi_mpeg2_start_frame(), and vaapi_mpeg4_start_frame().

void * ff_vaapi_alloc_pic_param ( struct vaapi_context vactx,
unsigned int  size 
)

Allocate a new picture parameter buffer.

Definition at line 132 of file vaapi.c.

Referenced by start_frame(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), and vaapi_vc1_start_frame().

VASliceParameterBufferBase * ff_vaapi_alloc_slice ( struct vaapi_context vactx,
const uint8_t *  buffer,
uint32_t  size 
)

Allocate a new slice descriptor for the input slice.

Parameters:
vactx the VA API context
buffer the slice data buffer base
size the size of the slice in bytes
Returns:
the newly allocated slice parameter

Definition at line 147 of file vaapi.c.

Referenced by decode_slice(), vaapi_mpeg2_decode_slice(), vaapi_mpeg4_decode_slice(), and vaapi_vc1_decode_slice().

int ff_vaapi_common_end_frame ( MpegEncContext s  ) 

Common AVHWAccel.end_frame() implementation.

Definition at line 178 of file vaapi.c.

Referenced by end_frame(), vaapi_mpeg2_end_frame(), vaapi_mpeg4_end_frame(), and vaapi_vc1_end_frame().

static VASurfaceID ff_vaapi_get_surface_id ( Picture pic  )  [inline, static]

static int render_picture ( struct vaapi_context vactx,
VASurfaceID  surface 
) [static]

Definition at line 43 of file vaapi.c.

Referenced by ff_vaapi_common_end_frame().


Generated on Fri Oct 26 02:46:14 2012 for FFmpeg by  doxygen 1.5.8