FFmpeg
Data Structures | Macros | Functions
dxva2_vc1.c File Reference
#include "config_components.h"
#include "dxva2_internal.h"
#include "hwaccel_internal.h"
#include "mpegutils.h"
#include "mpegvideodec.h"
#include "vc1.h"
#include "vc1data.h"

Go to the source code of this file.

Data Structures

struct  dxva2_picture_context
 

Macros

#define MAX_SLICES   1024
 

Functions

void ff_dxva2_vc1_fill_picture_parameters (AVCodecContext *avctx, AVDXVAContext *ctx, DXVA_PictureParameters *pp)
 
void ff_dxva2_vc1_fill_slice (AVCodecContext *avctx, DXVA_SliceInfo *slice, unsigned position, unsigned size)
 
static int commit_bitstream_and_slice_buffer (AVCodecContext *avctx, DECODER_BUFFER_DESC *bs, DECODER_BUFFER_DESC *sc)
 
static int dxva2_vc1_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int dxva2_vc1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int dxva2_vc1_end_frame (AVCodecContext *avctx)
 

Macro Definition Documentation

◆ MAX_SLICES

#define MAX_SLICES   1024

Definition at line 32 of file dxva2_vc1.c.

Function Documentation

◆ ff_dxva2_vc1_fill_picture_parameters()

void ff_dxva2_vc1_fill_picture_parameters ( AVCodecContext avctx,
AVDXVAContext ctx,
DXVA_PictureParameters *  pp 
)

Definition at line 43 of file dxva2_vc1.c.

Referenced by d3d12va_vc1_start_frame(), and dxva2_vc1_start_frame().

◆ ff_dxva2_vc1_fill_slice()

void ff_dxva2_vc1_fill_slice ( AVCodecContext avctx,
DXVA_SliceInfo *  slice,
unsigned  position,
unsigned  size 
)

Definition at line 167 of file dxva2_vc1.c.

Referenced by d3d12va_vc1_decode_slice(), and dxva2_vc1_decode_slice().

◆ commit_bitstream_and_slice_buffer()

static int commit_bitstream_and_slice_buffer ( AVCodecContext avctx,
DECODER_BUFFER_DESC bs,
DECODER_BUFFER_DESC sc 
)
static

Definition at line 187 of file dxva2_vc1.c.

Referenced by dxva2_vc1_end_frame().

◆ dxva2_vc1_start_frame()

static int dxva2_vc1_start_frame ( AVCodecContext avctx,
av_unused const uint8_t *  buffer,
av_unused uint32_t  size 
)
static

Definition at line 314 of file dxva2_vc1.c.

◆ dxva2_vc1_decode_slice()

static int dxva2_vc1_decode_slice ( AVCodecContext avctx,
const uint8_t *  buffer,
uint32_t  size 
)
static

Definition at line 334 of file dxva2_vc1.c.

◆ dxva2_vc1_end_frame()

static int dxva2_vc1_end_frame ( AVCodecContext avctx)
static

Definition at line 364 of file dxva2_vc1.c.