FFmpeg
Data Structures | Macros | Functions
dxva2_av1.c File Reference
#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "dxva2_internal.h"
#include "av1dec.h"
#include "hwaccel_internal.h"

Go to the source code of this file.

Data Structures

struct  AV1DXVAContext
 
struct  av1_dxva2_picture_context
 

Macros

#define MAX_TILES   256
 

Functions

static int get_bit_depth_from_seq (const AV1RawSequenceHeader *seq)
 
int ff_dxva2_av1_fill_picture_parameters (const AVCodecContext *avctx, AVDXVAContext *ctx, DXVA_PicParams_AV1 *pp)
 
static int dxva2_av1_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int dxva2_av1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int commit_bitstream_and_slice_buffer (AVCodecContext *avctx, DECODER_BUFFER_DESC *bs, DECODER_BUFFER_DESC *sc)
 
static int dxva2_av1_end_frame (AVCodecContext *avctx)
 
static int dxva2_av1_uninit (AVCodecContext *avctx)
 

Macro Definition Documentation

◆ MAX_TILES

#define MAX_TILES   256

Definition at line 33 of file dxva2_av1.c.

Function Documentation

◆ get_bit_depth_from_seq()

static int get_bit_depth_from_seq ( const AV1RawSequenceHeader seq)
static

Definition at line 50 of file dxva2_av1.c.

Referenced by ff_dxva2_av1_fill_picture_parameters().

◆ ff_dxva2_av1_fill_picture_parameters()

int ff_dxva2_av1_fill_picture_parameters ( const AVCodecContext avctx,
AVDXVAContext ctx,
DXVA_PicParams_AV1 *  pp 
)

Definition at line 60 of file dxva2_av1.c.

Referenced by d3d12va_av1_start_frame(), and dxva2_av1_start_frame().

◆ dxva2_av1_start_frame()

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

Definition at line 274 of file dxva2_av1.c.

◆ dxva2_av1_decode_slice()

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

Definition at line 295 of file dxva2_av1.c.

◆ 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 350 of file dxva2_av1.c.

Referenced by dxva2_av1_end_frame().

◆ dxva2_av1_end_frame()

static int dxva2_av1_end_frame ( AVCodecContext avctx)
static

Definition at line 436 of file dxva2_av1.c.

◆ dxva2_av1_uninit()

static int dxva2_av1_uninit ( AVCodecContext avctx)
static

Definition at line 453 of file dxva2_av1.c.