FFmpeg
Functions | Variables
nvdec_hevc.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavutil/mem.h"
#include "avcodec.h"
#include "nvdec.h"
#include "decode.h"
#include "internal.h"
#include "hevc/hevcdec.h"
#include "hevc/data.h"
#include "hwaccel_internal.h"

Go to the source code of this file.

Functions

static void dpb_add (CUVIDHEVCPICPARAMS *pp, int idx, const HEVCFrame *src)
 
static void fill_scaling_lists (CUVIDHEVCPICPARAMS *ppc, const HEVCContext *s)
 
static int nvdec_hevc_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_hevc_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_hevc_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 
static int nvdec_hevc_decode_init (AVCodecContext *avctx)
 

Variables

const FFHWAccel ff_hevc_nvdec_hwaccel
 

Function Documentation

◆ dpb_add()

static void dpb_add ( CUVIDHEVCPICPARAMS *  pp,
int  idx,
const HEVCFrame src 
)
static

Definition at line 35 of file nvdec_hevc.c.

Referenced by nvdec_hevc_start_frame().

◆ fill_scaling_lists()

static void fill_scaling_lists ( CUVIDHEVCPICPARAMS *  ppc,
const HEVCContext s 
)
static

Definition at line 45 of file nvdec_hevc.c.

Referenced by nvdec_hevc_start_frame().

◆ nvdec_hevc_start_frame()

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

Definition at line 72 of file nvdec_hevc.c.

◆ nvdec_hevc_decode_slice()

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

Definition at line 273 of file nvdec_hevc.c.

◆ nvdec_hevc_frame_params()

static int nvdec_hevc_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)
static

Definition at line 300 of file nvdec_hevc.c.

◆ nvdec_hevc_decode_init()

static int nvdec_hevc_decode_init ( AVCodecContext avctx)
static

Definition at line 308 of file nvdec_hevc.c.

Variable Documentation

◆ ff_hevc_nvdec_hwaccel

const FFHWAccel ff_hevc_nvdec_hwaccel
Initial value:
= {
.p.name = "hevc_nvdec",
.p.type = AVMEDIA_TYPE_VIDEO,
.p.pix_fmt = AV_PIX_FMT_CUDA,
.start_frame = nvdec_hevc_start_frame,
.end_frame = ff_nvdec_end_frame,
.decode_slice = nvdec_hevc_decode_slice,
.frame_params = nvdec_hevc_frame_params,
.priv_data_size = sizeof(NVDECContext),
}

Definition at line 323 of file nvdec_hevc.c.

AV_PIX_FMT_CUDA
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
Definition: pixfmt.h:260
nvdec_hevc_frame_params
static int nvdec_hevc_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_hevc.c:300
nvdec_hevc_decode_init
static int nvdec_hevc_decode_init(AVCodecContext *avctx)
Definition: nvdec_hevc.c:308
nvdec_hevc_decode_slice
static int nvdec_hevc_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_hevc.c:273
ff_nvdec_decode_uninit
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:259
nvdec_hevc_start_frame
static int nvdec_hevc_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_hevc.c:72
ff_nvdec_end_frame
int ff_nvdec_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:633
AV_CODEC_ID_HEVC
@ AV_CODEC_ID_HEVC
Definition: codec_id.h:228
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
NVDECContext
Definition: nvdec.h:52