libavcodec/dxva2_mpeg2.c File Reference

#include "dxva2_internal.h"

Go to the source code of this file.

Data Structures

struct  dxva2_picture_context

Defines

#define MAX_SLICES   (SLICE_MAX_START_CODE - SLICE_MIN_START_CODE + 1)

Functions

static void fill_picture_parameters (AVCodecContext *avctx, struct dxva_context *ctx, const struct MpegEncContext *s, DXVA_PictureParameters *pp)
static void fill_quantization_matrices (AVCodecContext *avctx, struct dxva_context *ctx, const struct MpegEncContext *s, DXVA_QmatrixData *qm)
static void fill_slice (AVCodecContext *avctx, const struct MpegEncContext *s, DXVA_SliceInfo *slice, unsigned position, const uint8_t *buffer, unsigned size)
static int commit_bitstream_and_slice_buffer (AVCodecContext *avctx, DXVA2_DecodeBufferDesc *bs, DXVA2_DecodeBufferDesc *sc)
static int start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
static int decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
static int end_frame (AVCodecContext *avctx)

Variables

AVHWAccel ff_mpeg2_dxva2_hwaccel


Define Documentation

#define MAX_SLICES   (SLICE_MAX_START_CODE - SLICE_MIN_START_CODE + 1)

Definition at line 25 of file dxva2_mpeg2.c.

Referenced by decode_slice(), decode_slice_header(), fill_filter_caches(), and read_header().


Function Documentation

static int commit_bitstream_and_slice_buffer ( AVCodecContext avctx,
DXVA2_DecodeBufferDesc *  bs,
DXVA2_DecodeBufferDesc *  sc 
) [static]

Definition at line 147 of file dxva2_mpeg2.c.

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

Definition at line 228 of file dxva2_mpeg2.c.

static int end_frame ( AVCodecContext avctx  )  [static]

Definition at line 249 of file dxva2_mpeg2.c.

static void fill_picture_parameters ( AVCodecContext avctx,
struct dxva_context ctx,
const struct MpegEncContext s,
DXVA_PictureParameters *  pp 
) [static]

Definition at line 36 of file dxva2_mpeg2.c.

static void fill_quantization_matrices ( AVCodecContext avctx,
struct dxva_context ctx,
const struct MpegEncContext s,
DXVA_QmatrixData *  qm 
) [static]

Definition at line 102 of file dxva2_mpeg2.c.

Referenced by start_frame().

static void fill_slice ( AVCodecContext avctx,
const struct MpegEncContext s,
DXVA_SliceInfo *  slice,
unsigned  position,
const uint8_t *  buffer,
unsigned  size 
) [static]

Definition at line 119 of file dxva2_mpeg2.c.

Referenced by decode_slice().

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

Definition at line 206 of file dxva2_mpeg2.c.


Variable Documentation

Initial value:

 {
    .name           = "mpeg2_dxva2",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_MPEG2VIDEO,
    .pix_fmt        = PIX_FMT_DXVA2_VLD,
    .capabilities   = 0,
    .start_frame    = start_frame,
    .decode_slice   = decode_slice,
    .end_frame      = end_frame,
    .priv_data_size = sizeof(struct dxva2_picture_context),
}

Definition at line 263 of file dxva2_mpeg2.c.


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