FFmpeg
Data Structures | Macros | Functions
nvdec.h File Reference
#include "compat/cuda/dynlink_loader.h"
#include <stdint.h>
#include "libavutil/buffer.h"
#include "libavutil/frame.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  NVDECFrame
 
struct  NVDECContext
 

Macros

#define NVDECAPI_CHECK_VERSION(major, minor)   ((major) < 8 || ((major) == 8 && (minor) <= 0))
 

Functions

int ff_nvdec_decode_init (AVCodecContext *avctx)
 
int ff_nvdec_decode_uninit (AVCodecContext *avctx)
 
int ff_nvdec_start_frame (AVCodecContext *avctx, AVFrame *frame)
 
int ff_nvdec_start_frame_sep_ref (AVCodecContext *avctx, AVFrame *frame, int has_sep_ref)
 
int ff_nvdec_end_frame (AVCodecContext *avctx)
 
int ff_nvdec_simple_end_frame (AVCodecContext *avctx)
 
int ff_nvdec_simple_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
int ff_nvdec_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size, int supports_444)
 
int ff_nvdec_get_ref_idx (AVFrame *frame)
 

Macro Definition Documentation

◆ NVDECAPI_CHECK_VERSION

#define NVDECAPI_CHECK_VERSION (   major,
  minor 
)    ((major) < 8 || ((major) == 8 && (minor) <= 0))

Definition at line 40 of file nvdec.h.

Function Documentation

◆ ff_nvdec_decode_init()

int ff_nvdec_decode_init ( AVCodecContext avctx)

Definition at line 325 of file nvdec.c.

Referenced by nvdec_hevc_decode_init().

◆ ff_nvdec_decode_uninit()

int ff_nvdec_decode_uninit ( AVCodecContext avctx)

Definition at line 257 of file nvdec.c.

Referenced by ff_nvdec_decode_init().

◆ ff_nvdec_start_frame()

int ff_nvdec_start_frame ( AVCodecContext avctx,
AVFrame frame 
)

◆ ff_nvdec_start_frame_sep_ref()

int ff_nvdec_start_frame_sep_ref ( AVCodecContext avctx,
AVFrame frame,
int  has_sep_ref 
)

Definition at line 599 of file nvdec.c.

Referenced by nvdec_av1_start_frame().

◆ ff_nvdec_end_frame()

int ff_nvdec_end_frame ( AVCodecContext avctx)

Definition at line 633 of file nvdec.c.

Referenced by ff_nvdec_simple_end_frame().

◆ ff_nvdec_simple_end_frame()

int ff_nvdec_simple_end_frame ( AVCodecContext avctx)

Definition at line 663 of file nvdec.c.

◆ ff_nvdec_simple_decode_slice()

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

Definition at line 673 of file nvdec.c.

Referenced by nvdec_mjpeg_start_frame(), and nvdec_mpeg4_start_frame().

◆ ff_nvdec_frame_params()

int ff_nvdec_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx,
int  dpb_size,
int  supports_444 
)

◆ ff_nvdec_get_ref_idx()

int ff_nvdec_get_ref_idx ( AVFrame frame)