FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
nvdec_mpeg4.c File Reference
#include "avcodec.h"
#include "mpeg4video.h"
#include "nvdec.h"
#include "decode.h"

Go to the source code of this file.

Functions

static int nvdec_mpeg4_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_mpeg4_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_mpeg4_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 

Variables

const AVHWAccel ff_mpeg4_nvdec_hwaccel
 

Function Documentation

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

Definition at line 28 of file nvdec_mpeg4.c.

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

Definition at line 97 of file nvdec_mpeg4.c.

static int nvdec_mpeg4_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)
static

Definition at line 102 of file nvdec_mpeg4.c.

Variable Documentation

const AVHWAccel ff_mpeg4_nvdec_hwaccel
Initial value:
= {
.name = "mpeg4_nvdec",
.pix_fmt = AV_PIX_FMT_CUDA,
.start_frame = nvdec_mpeg4_start_frame,
.decode_slice = nvdec_mpeg4_decode_slice,
.frame_params = nvdec_mpeg4_frame_params,
.priv_data_size = sizeof(NVDECContext),
}
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:494
static int nvdec_mpeg4_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_mpeg4.c:102
static int nvdec_mpeg4_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_mpeg4.c:28
int ff_nvdec_decode_init(AVCodecContext *avctx)
Definition: nvdec.c:264
static int nvdec_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_mpeg4.c:97
HW acceleration through CUDA.
Definition: pixfmt.h:231
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:246

Definition at line 109 of file nvdec_mpeg4.c.