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

Go to the source code of this file.

Functions

static unsigned char safe_get_ref_idx (VP8Frame *frame)
 
static int nvdec_vp8_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_vp8_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 

Variables

AVHWAccel ff_vp8_nvdec_hwaccel
 

Function Documentation

◆ safe_get_ref_idx()

static unsigned char safe_get_ref_idx ( VP8Frame frame)
static

Definition at line 29 of file nvdec_vp8.c.

Referenced by nvdec_vp8_start_frame().

◆ nvdec_vp8_start_frame()

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

Definition at line 34 of file nvdec_vp8.c.

◆ nvdec_vp8_frame_params()

static int nvdec_vp8_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)
static

Definition at line 86 of file nvdec_vp8.c.

Variable Documentation

◆ ff_vp8_nvdec_hwaccel

AVHWAccel ff_vp8_nvdec_hwaccel
Initial value:
= {
.name = "vp8_nvdec",
.pix_fmt = AV_PIX_FMT_CUDA,
.start_frame = nvdec_vp8_start_frame,
.frame_params = nvdec_vp8_frame_params,
.priv_data_size = sizeof(NVDECContext),
}

Definition at line 93 of file nvdec_vp8.c.

AV_PIX_FMT_CUDA
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
Definition: pixfmt.h:225
nvdec_vp8_frame_params
static int nvdec_vp8_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_vp8.c:86
ff_nvdec_simple_end_frame
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:665
ff_nvdec_decode_init
int ff_nvdec_decode_init(AVCodecContext *avctx)
Definition: nvdec.c:330
ff_nvdec_decode_uninit
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:262
ff_nvdec_simple_decode_slice
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec.c:673
nvdec_vp8_start_frame
static int nvdec_vp8_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_vp8.c:34
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_ID_VP8
@ AV_CODEC_ID_VP8
Definition: codec_id.h:190
NVDECContext
Definition: nvdec.h:52