VDPAU Decoding
[VDPAU Decoder and Renderer]


Data Structures

struct  vdpau_render_state
 This structure is used as a callback between the FFmpeg decoder (vd_) and presentation (vo_) module. More...

Defines

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

Functions

void ff_vdpau_h264_set_reference_frames (MpegEncContext *s)
void ff_vdpau_add_data_chunk (MpegEncContext *s, const uint8_t *buf, int buf_size)
void ff_vdpau_h264_picture_start (MpegEncContext *s)
void ff_vdpau_h264_picture_complete (MpegEncContext *s)
void ff_vdpau_mpeg_picture_complete (MpegEncContext *s, const uint8_t *buf, int buf_size, int slice_count)
void ff_vdpau_vc1_decode_picture (MpegEncContext *s, const uint8_t *buf, int buf_size)
void ff_vdpau_mpeg4_decode_picture (MpegEncContext *s, const uint8_t *buf, int buf_size)
static int vdpau_mpeg2_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
static int vdpau_mpeg2_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
static int vdpau_mpeg2_end_frame (AVCodecContext *avctx)

Variables

AVHWAccel ff_mpeg1_vdpau_hwaccel
AVHWAccel ff_mpeg2_vdpau_hwaccel

Define Documentation

#define FF_VDPAU_STATE_USED_FOR_REFERENCE   2

The videoSurface is needed for reference/prediction.

The codec manipulates this.

Definition at line 56 of file vdpau.h.

#define FF_VDPAU_STATE_USED_FOR_RENDER   1

The videoSurface is used for rendering.

Definition at line 50 of file vdpau.h.


Function Documentation

void ff_vdpau_add_data_chunk ( MpegEncContext s,
const uint8_t *  buf,
int  buf_size 
)

void ff_vdpau_h264_picture_complete ( MpegEncContext s  ) 

Definition at line 149 of file vdpau.c.

Referenced by field_end().

void ff_vdpau_h264_picture_start ( MpegEncContext s  ) 

Definition at line 130 of file vdpau.c.

Referenced by decode_nal_units().

void ff_vdpau_h264_set_reference_frames ( MpegEncContext s  ) 

Definition at line 41 of file vdpau.c.

Referenced by field_end().

void ff_vdpau_mpeg4_decode_picture ( MpegEncContext s,
const uint8_t *  buf,
int  buf_size 
)

Definition at line 319 of file vdpau.c.

Referenced by ff_h263_decode_frame().

void ff_vdpau_mpeg_picture_complete ( MpegEncContext s,
const uint8_t *  buf,
int  buf_size,
int  slice_count 
)

Definition at line 193 of file vdpau.c.

Referenced by decode_chunks().

void ff_vdpau_vc1_decode_picture ( MpegEncContext s,
const uint8_t *  buf,
int  buf_size 
)

Definition at line 250 of file vdpau.c.

Referenced by vc1_decode_frame().

static int vdpau_mpeg2_decode_slice ( AVCodecContext avctx,
const uint8_t *  buffer,
uint32_t  size 
) [static]

Definition at line 379 of file vdpau.c.

static int vdpau_mpeg2_end_frame ( AVCodecContext avctx  )  [static]

Definition at line 384 of file vdpau.c.

static int vdpau_mpeg2_start_frame ( AVCodecContext avctx,
const uint8_t *  buffer,
uint32_t  size 
) [static]

Definition at line 374 of file vdpau.c.


Variable Documentation

Initial value:

 {
    .name           = "mpeg1_vdpau",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_MPEG1VIDEO,
    .pix_fmt        = PIX_FMT_VDPAU_MPEG1,
    .start_frame    = vdpau_mpeg2_start_frame,
    .end_frame      = vdpau_mpeg2_end_frame,
    .decode_slice   = vdpau_mpeg2_decode_slice,
}

Definition at line 389 of file vdpau.c.

Initial value:

 {
    .name           = "mpeg2_vdpau",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_MPEG2VIDEO,
    .pix_fmt        = PIX_FMT_VDPAU_MPEG2,
    .start_frame    = vdpau_mpeg2_start_frame,
    .end_frame      = vdpau_mpeg2_end_frame,
    .decode_slice   = vdpau_mpeg2_decode_slice,
}

Definition at line 399 of file vdpau.c.


Generated on Fri Oct 26 02:38:22 2012 for FFmpeg by  doxygen 1.5.8