FFmpeg
Data Structures | Macros | Functions
d3d12va_av1.c File Reference
#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/hwcontext_d3d12va_internal.h"
#include "av1dec.h"
#include "dxva2_internal.h"
#include "d3d12va_decode.h"

Go to the source code of this file.

Data Structures

struct  D3D12AV1DecodeContext
 
struct  AV1DecodePictureContext
 

Macros

#define MAX_TILES   256
 
#define D3D12_AV1_DECODE_CONTEXT(avctx)   ((D3D12AV1DecodeContext *)D3D12VA_DECODE_CONTEXT(avctx))
 

Functions

static int d3d12va_av1_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int d3d12va_av1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int update_input_arguments (AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *input_args, ID3D12Resource *buffer)
 
static int d3d12va_av1_end_frame (AVCodecContext *avctx)
 
static int d3d12va_av1_decode_init (AVCodecContext *avctx)
 
static int d3d12va_av1_decode_uninit (AVCodecContext *avctx)
 

Macro Definition Documentation

◆ MAX_TILES

#define MAX_TILES   256

Definition at line 30 of file d3d12va_av1.c.

◆ D3D12_AV1_DECODE_CONTEXT

#define D3D12_AV1_DECODE_CONTEXT (   avctx)    ((D3D12AV1DecodeContext *)D3D12VA_DECODE_CONTEXT(avctx))

Definition at line 37 of file d3d12va_av1.c.

Function Documentation

◆ d3d12va_av1_start_frame()

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

Definition at line 47 of file d3d12va_av1.c.

◆ d3d12va_av1_decode_slice()

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

Definition at line 69 of file d3d12va_av1.c.

◆ update_input_arguments()

static int update_input_arguments ( AVCodecContext avctx,
D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *  input_args,
ID3D12Resource *  buffer 
)
static

Definition at line 109 of file d3d12va_av1.c.

Referenced by d3d12va_av1_end_frame(), and ff_d3d12va_common_end_frame().

◆ d3d12va_av1_end_frame()

static int d3d12va_av1_end_frame ( AVCodecContext avctx)
static

Definition at line 138 of file d3d12va_av1.c.

◆ d3d12va_av1_decode_init()

static int d3d12va_av1_decode_init ( AVCodecContext avctx)
static

Definition at line 153 of file d3d12va_av1.c.

◆ d3d12va_av1_decode_uninit()

static int d3d12va_av1_decode_uninit ( AVCodecContext avctx)
static

Definition at line 181 of file d3d12va_av1.c.