FFmpeg  4.0
Functions | Variables
nvdec_vp9.c File Reference
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "nvdec.h"
#include "decode.h"
#include "internal.h"
#include "vp9shared.h"

Go to the source code of this file.

Functions

static int nvdec_vp9_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_vp9_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 

Variables

const AVHWAccel ff_vp9_nvdec_hwaccel
 

Function Documentation

◆ nvdec_vp9_start_frame()

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

Definition at line 31 of file nvdec_vp9.c.

◆ nvdec_vp9_frame_params()

static int nvdec_vp9_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)
static

Definition at line 165 of file nvdec_vp9.c.

Variable Documentation

◆ ff_vp9_nvdec_hwaccel

const AVHWAccel ff_vp9_nvdec_hwaccel
Initial value:
= {
.name = "vp9_nvdec",
.pix_fmt = AV_PIX_FMT_CUDA,
.start_frame = nvdec_vp9_start_frame,
.frame_params = nvdec_vp9_frame_params,
.priv_data_size = sizeof(NVDECContext),
}
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:494
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec.c:502
int ff_nvdec_decode_init(AVCodecContext *avctx)
Definition: nvdec.c:264
HW acceleration through CUDA.
Definition: pixfmt.h:231
static int nvdec_vp9_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_vp9.c:165
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:246
static int nvdec_vp9_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_vp9.c:31

Definition at line 172 of file nvdec_vp9.c.