FFmpeg
Functions | Variables
vdpau_vp9.c File Reference
#include <vdpau/vdpau.h>
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
#include "vp9data.h"
#include "vp9dec.h"
#include "hwconfig.h"
#include "vdpau.h"
#include "vdpau_internal.h"

Go to the source code of this file.

Functions

static int vdpau_vp9_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_vp9_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_vp9_end_frame (AVCodecContext *avctx)
 
static int vdpau_vp9_init (AVCodecContext *avctx)
 

Variables

static const uint8_t start_code_prefix [3] = { 0x00, 0x00, 0x01 }
 
const AVHWAccel ff_vp9_vdpau_hwaccel
 

Function Documentation

◆ vdpau_vp9_start_frame()

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

Definition at line 33 of file vdpau_vp9.c.

◆ vdpau_vp9_decode_slice()

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

Definition at line 167 of file vdpau_vp9.c.

◆ vdpau_vp9_end_frame()

static int vdpau_vp9_end_frame ( AVCodecContext avctx)
static

Definition at line 187 of file vdpau_vp9.c.

◆ vdpau_vp9_init()

static int vdpau_vp9_init ( AVCodecContext avctx)
static

Definition at line 202 of file vdpau_vp9.c.

Variable Documentation

◆ start_code_prefix

const uint8_t start_code_prefix[3] = { 0x00, 0x00, 0x01 }
static

Definition at line 165 of file vdpau_vp9.c.

Referenced by vdpau_vp9_decode_slice().

◆ ff_vp9_vdpau_hwaccel

const AVHWAccel ff_vp9_vdpau_hwaccel
Initial value:
= {
.name = "vp9_vdpau",
.pix_fmt = AV_PIX_FMT_VDPAU,
.start_frame = vdpau_vp9_start_frame,
.end_frame = vdpau_vp9_end_frame,
.decode_slice = vdpau_vp9_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 227 of file vdpau_vp9.c.

ff_vdpau_common_frame_params
int ff_vdpau_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: vdpau.c:118
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
vdpau_vp9_end_frame
static int vdpau_vp9_end_frame(AVCodecContext *avctx)
Definition: vdpau_vp9.c:187
vdpau_vp9_init
static int vdpau_vp9_init(AVCodecContext *avctx)
Definition: vdpau_vp9.c:202
vdpau_picture_context
Definition: vdpau_internal.h:95
AV_CODEC_ID_VP9
@ AV_CODEC_ID_VP9
Definition: codec_id.h:217
ff_vdpau_common_uninit
int ff_vdpau_common_uninit(AVCodecContext *avctx)
Definition: vdpau.c:288
VDPAUContext
Definition: vdpau_internal.h:70
AV_PIX_FMT_VDPAU
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:197
HWACCEL_CAP_ASYNC_SAFE
#define HWACCEL_CAP_ASYNC_SAFE
Definition: hwconfig.h:26
vdpau_vp9_start_frame
static int vdpau_vp9_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vdpau_vp9.c:33
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
vdpau_vp9_decode_slice
static int vdpau_vp9_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vdpau_vp9.c:167