FFmpeg
Functions | Variables
nvdec_mjpeg.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "mjpegdec.h"
#include "nvdec.h"
#include "decode.h"
#include "hwaccel_internal.h"

Go to the source code of this file.

Functions

static int nvdec_mjpeg_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_mjpeg_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_mjpeg_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 

Variables

const FFHWAccel ff_mjpeg_nvdec_hwaccel
 

Function Documentation

◆ nvdec_mjpeg_start_frame()

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

Definition at line 30 of file nvdec_mjpeg.c.

◆ nvdec_mjpeg_decode_slice()

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

Definition at line 61 of file nvdec_mjpeg.c.

◆ nvdec_mjpeg_frame_params()

static int nvdec_mjpeg_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)
static

Definition at line 66 of file nvdec_mjpeg.c.

Variable Documentation

◆ ff_mjpeg_nvdec_hwaccel

const FFHWAccel ff_mjpeg_nvdec_hwaccel
Initial value:
= {
.p.name = "mjpeg_nvdec",
.p.type = AVMEDIA_TYPE_VIDEO,
.p.pix_fmt = AV_PIX_FMT_CUDA,
.start_frame = nvdec_mjpeg_start_frame,
.decode_slice = nvdec_mjpeg_decode_slice,
.frame_params = nvdec_mjpeg_frame_params,
.priv_data_size = sizeof(NVDECContext),
}

Definition at line 73 of file nvdec_mjpeg.c.

AV_PIX_FMT_CUDA
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
Definition: pixfmt.h:260
nvdec_mjpeg_start_frame
static int nvdec_mjpeg_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_mjpeg.c:30
nvdec_mjpeg_decode_slice
static int nvdec_mjpeg_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_mjpeg.c:61
ff_nvdec_simple_end_frame
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:662
nvdec_mjpeg_frame_params
static int nvdec_mjpeg_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_mjpeg.c:66
ff_nvdec_decode_init
int ff_nvdec_decode_init(AVCodecContext *avctx)
Definition: nvdec.c:326
ff_nvdec_decode_uninit
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:258
AV_CODEC_ID_MJPEG
@ AV_CODEC_ID_MJPEG
Definition: codec_id.h:59
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
NVDECContext
Definition: nvdec.h:52