libavcodec/vaapi_vc1.c File Reference

#include "vaapi_internal.h"
#include "vc1.h"
#include "vc1data.h"

Go to the source code of this file.

Functions

static int get_VAMvModeVC1 (enum MVModes mv_mode)
 Translate FFmpeg MV modes to VA API.
static int vc1_has_MVTYPEMB_bitplane (VC1Context *v)
 Check whether the MVTYPEMB bitplane is present.
static int vc1_has_SKIPMB_bitplane (VC1Context *v)
 Check whether the SKIPMB bitplane is present.
static int vc1_has_DIRECTMB_bitplane (VC1Context *v)
 Check whether the DIRECTMB bitplane is present.
static int vc1_has_ACPRED_bitplane (VC1Context *v)
 Check whether the ACPRED bitplane is present.
static int vc1_has_OVERFLAGS_bitplane (VC1Context *v)
 Check whether the OVERFLAGS bitplane is present.
static int vc1_get_PTYPE (VC1Context *v)
 Reconstruct bitstream PTYPE (7.1.1.4, index into Table-35).
static VAMvModeVC1 vc1_get_MVMODE (VC1Context *v)
 Reconstruct bitstream MVMODE (7.1.1.32).
static VAMvModeVC1 vc1_get_MVMODE2 (VC1Context *v)
 Reconstruct bitstream MVMODE2 (7.1.1.33).
static int vc1_get_TTFRM (VC1Context *v)
 Reconstruct bitstream TTFRM (7.1.1.41, Table-53).
static void vc1_pack_bitplanes (uint8_t *bitplane, int n, const uint8_t *ff_bp[3], int x, int y, int stride)
 Pack FFmpeg bitplanes into a VABitPlaneBuffer element.
static int vaapi_vc1_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
static int vaapi_vc1_end_frame (AVCodecContext *avctx)
static int vaapi_vc1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)

Variables

AVHWAccel ff_vc1_vaapi_hwaccel


Function Documentation

static int get_VAMvModeVC1 ( enum MVModes  mv_mode  )  [static]

Translate FFmpeg MV modes to VA API.

Definition at line 28 of file vaapi_vc1.c.

Referenced by vc1_get_MVMODE(), and vc1_get_MVMODE2().

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

Definition at line 320 of file vaapi_vc1.c.

static int vaapi_vc1_end_frame ( AVCodecContext avctx  )  [static]

Definition at line 313 of file vaapi_vc1.c.

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

Definition at line 146 of file vaapi_vc1.c.

static VAMvModeVC1 vc1_get_MVMODE ( VC1Context v  )  [inline, static]

Reconstruct bitstream MVMODE (7.1.1.32).

Definition at line 103 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static VAMvModeVC1 vc1_get_MVMODE2 ( VC1Context v  )  [inline, static]

Reconstruct bitstream MVMODE2 (7.1.1.33).

Definition at line 112 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_get_PTYPE ( VC1Context v  )  [static]

Reconstruct bitstream PTYPE (7.1.1.4, index into Table-35).

Definition at line 91 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_get_TTFRM ( VC1Context v  )  [inline, static]

Reconstruct bitstream TTFRM (7.1.1.41, Table-53).

Definition at line 120 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_has_ACPRED_bitplane ( VC1Context v  )  [inline, static]

Check whether the ACPRED bitplane is present.

Definition at line 69 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_has_DIRECTMB_bitplane ( VC1Context v  )  [inline, static]

Check whether the DIRECTMB bitplane is present.

Definition at line 61 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_has_MVTYPEMB_bitplane ( VC1Context v  )  [inline, static]

Check whether the MVTYPEMB bitplane is present.

Definition at line 41 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_has_OVERFLAGS_bitplane ( VC1Context v  )  [inline, static]

Check whether the OVERFLAGS bitplane is present.

Definition at line 79 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static int vc1_has_SKIPMB_bitplane ( VC1Context v  )  [inline, static]

Check whether the SKIPMB bitplane is present.

Definition at line 52 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().

static void vc1_pack_bitplanes ( uint8_t *  bitplane,
int  n,
const uint8_t *  ff_bp[3],
int  x,
int  y,
int  stride 
) [inline, static]

Pack FFmpeg bitplanes into a VABitPlaneBuffer element.

Definition at line 132 of file vaapi_vc1.c.

Referenced by vaapi_vc1_start_frame().


Variable Documentation

Initial value:

 {
    .name           = "vc1_vaapi",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_VC1,
    .pix_fmt        = PIX_FMT_VAAPI_VLD,
    .start_frame    = vaapi_vc1_start_frame,
    .end_frame      = vaapi_vc1_end_frame,
    .decode_slice   = vaapi_vc1_decode_slice,
}

Definition at line 355 of file vaapi_vc1.c.


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