FFmpeg
Data Structures | Macros | Functions
dxva2_av1.c File Reference
#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "dxva2_internal.h"
#include "av1dec.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)
 
static int fill_picture_parameters (const AVCodecContext *avctx, AVDXVAContext *ctx, const AV1DecContext *h, 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 31 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 48 of file dxva2_av1.c.

Referenced by fill_picture_parameters().

◆ fill_picture_parameters()

static int fill_picture_parameters ( const AVCodecContext avctx,
AVDXVAContext ctx,
const AV1DecContext h,
DXVA_PicParams_AV1 *  pp 
)
static

Definition at line 58 of file dxva2_av1.c.

Referenced by 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 270 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 291 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 346 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 432 of file dxva2_av1.c.

◆ dxva2_av1_uninit()

static int dxva2_av1_uninit ( AVCodecContext avctx)
static

Definition at line 449 of file dxva2_av1.c.