FFmpeg
Functions | Variables
videotoolbox_av1.c File Reference
#include "libavutil/mem.h"
#include "av1dec.h"
#include "hwaccel_internal.h"
#include "internal.h"
#include "vt_internal.h"

Go to the source code of this file.

Functions

CFDataRef ff_videotoolbox_av1c_extradata_create (AVCodecContext *avctx)
 
static int videotoolbox_av1_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int videotoolbox_av1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int videotoolbox_av1_end_frame (AVCodecContext *avctx)
 

Variables

const FFHWAccel ff_av1_videotoolbox_hwaccel
 

Function Documentation

◆ ff_videotoolbox_av1c_extradata_create()

CFDataRef ff_videotoolbox_av1c_extradata_create ( AVCodecContext avctx)

Definition at line 31 of file videotoolbox_av1.c.

◆ videotoolbox_av1_start_frame()

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

Definition at line 65 of file videotoolbox_av1.c.

◆ videotoolbox_av1_decode_slice()

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

Definition at line 72 of file videotoolbox_av1.c.

◆ videotoolbox_av1_end_frame()

static int videotoolbox_av1_end_frame ( AVCodecContext avctx)
static

Definition at line 79 of file videotoolbox_av1.c.

Variable Documentation

◆ ff_av1_videotoolbox_hwaccel

const FFHWAccel ff_av1_videotoolbox_hwaccel
Initial value:
= {
.p.name = "av1_videotoolbox",
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_AV1,
.priv_data_size = sizeof(VTContext),
}

Definition at line 92 of file videotoolbox_av1.c.

ff_videotoolbox_uninit
int ff_videotoolbox_uninit(AVCodecContext *avctx)
videotoolbox_av1_start_frame
static int videotoolbox_av1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: videotoolbox_av1.c:65
ff_videotoolbox_common_init
int ff_videotoolbox_common_init(AVCodecContext *avctx)
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:284
ff_videotoolbox_frame_params
int ff_videotoolbox_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
videotoolbox_av1_decode_slice
static int videotoolbox_av1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: videotoolbox_av1.c:72
VTContext
Definition: vt_internal.h:25
AV_PIX_FMT_VIDEOTOOLBOX
@ AV_PIX_FMT_VIDEOTOOLBOX
hardware decoding through Videotoolbox
Definition: pixfmt.h:305
ff_videotoolbox_alloc_frame
int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame)
Definition: videotoolbox.c:150
videotoolbox_av1_end_frame
static int videotoolbox_av1_end_frame(AVCodecContext *avctx)
Definition: videotoolbox_av1.c:79
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201