FFmpeg
Functions | Variables
vdpau_av1.c File Reference
#include <vdpau/vdpau.h>
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
#include "av1dec.h"
#include "hwaccel_internal.h"
#include "vdpau.h"
#include "vdpau_internal.h"

Go to the source code of this file.

Functions

static int get_bit_depth_from_seq (const AV1RawSequenceHeader *seq)
 
static int vdpau_av1_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_av1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_av1_end_frame (AVCodecContext *avctx)
 
static int vdpau_av1_init (AVCodecContext *avctx)
 

Variables

const FFHWAccel ff_av1_vdpau_hwaccel
 

Function Documentation

◆ get_bit_depth_from_seq()

static int get_bit_depth_from_seq ( const AV1RawSequenceHeader seq)
static

Definition at line 32 of file vdpau_av1.c.

Referenced by vdpau_av1_start_frame().

◆ vdpau_av1_start_frame()

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

Definition at line 43 of file vdpau_av1.c.

◆ vdpau_av1_decode_slice()

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

Definition at line 275 of file vdpau_av1.c.

◆ vdpau_av1_end_frame()

static int vdpau_av1_end_frame ( AVCodecContext avctx)
static

Definition at line 320 of file vdpau_av1.c.

◆ vdpau_av1_init()

static int vdpau_av1_init ( AVCodecContext avctx)
static

Definition at line 334 of file vdpau_av1.c.

Variable Documentation

◆ ff_av1_vdpau_hwaccel

const FFHWAccel ff_av1_vdpau_hwaccel
Initial value:
= {
.p.name = "av1_vdpau",
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_AV1,
.p.pix_fmt = AV_PIX_FMT_VDPAU,
.start_frame = vdpau_av1_start_frame,
.end_frame = vdpau_av1_end_frame,
.decode_slice = vdpau_av1_decode_slice,
.frame_priv_data_size = sizeof(struct vdpau_picture_context),
.priv_data_size = sizeof(VDPAUContext),
.caps_internal = HWACCEL_CAP_ASYNC_SAFE,
}

Definition at line 356 of file vdpau_av1.c.

vdpau_av1_start_frame
static int vdpau_av1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vdpau_av1.c:43
ff_vdpau_common_frame_params
int ff_vdpau_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: vdpau.c:125
vdpau_av1_end_frame
static int vdpau_av1_end_frame(AVCodecContext *avctx)
Definition: vdpau_av1.c:320
vdpau_picture_context
Definition: vdpau_internal.h:98
vdpau_av1_init
static int vdpau_av1_init(AVCodecContext *avctx)
Definition: vdpau_av1.c:334
HWACCEL_CAP_ASYNC_SAFE
#define HWACCEL_CAP_ASYNC_SAFE
Header providing the internals of AVHWAccel.
Definition: hwaccel_internal.h:31
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:280
ff_vdpau_common_uninit
int ff_vdpau_common_uninit(AVCodecContext *avctx)
Definition: vdpau.c:295
VDPAUContext
Definition: vdpau_internal.h:73
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
AV_PIX_FMT_VDPAU
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:194
vdpau_av1_decode_slice
static int vdpau_av1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vdpau_av1.c:275
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201