FFmpeg
Functions | Variables
nvdec_av1.c File Reference
#include "avcodec.h"
#include "nvdec.h"
#include "decode.h"
#include "internal.h"
#include "av1dec.h"

Go to the source code of this file.

Functions

static int get_bit_depth_from_seq (const AV1RawSequenceHeader *seq)
 
static int nvdec_av1_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_av1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_av1_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 

Variables

const AVHWAccel ff_av1_nvdec_hwaccel
 

Function Documentation

◆ get_bit_depth_from_seq()

static int get_bit_depth_from_seq ( const AV1RawSequenceHeader seq)
static

Definition at line 30 of file nvdec_av1.c.

Referenced by nvdec_av1_start_frame().

◆ nvdec_av1_start_frame()

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

Definition at line 40 of file nvdec_av1.c.

◆ nvdec_av1_decode_slice()

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

Definition at line 287 of file nvdec_av1.c.

◆ nvdec_av1_frame_params()

static int nvdec_av1_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)
static

Definition at line 334 of file nvdec_av1.c.

Variable Documentation

◆ ff_av1_nvdec_hwaccel

const AVHWAccel ff_av1_nvdec_hwaccel
Initial value:
= {
.name = "av1_nvdec",
.pix_fmt = AV_PIX_FMT_CUDA,
.start_frame = nvdec_av1_start_frame,
.decode_slice = nvdec_av1_decode_slice,
.frame_params = nvdec_av1_frame_params,
.priv_data_size = sizeof(NVDECContext),
}

Definition at line 340 of file nvdec_av1.c.

AV_PIX_FMT_CUDA
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
Definition: pixfmt.h:253
nvdec_av1_frame_params
static int nvdec_av1_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_av1.c:334
ff_nvdec_simple_end_frame
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:666
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:283
ff_nvdec_decode_init
int ff_nvdec_decode_init(AVCodecContext *avctx)
Definition: nvdec.c:331
nvdec_av1_start_frame
static int nvdec_av1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_av1.c:40
nvdec_av1_decode_slice
static int nvdec_av1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_av1.c:287
ff_nvdec_decode_uninit
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:263
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
NVDECContext
Definition: nvdec.h:52