48 *pp = (CUVIDPICPARAMS) {
49 .PicWidthInMbs = (cur_frame->
width + 15) / 16,
50 .FrameHeightInMbs = (cur_frame->
height + 15) / 16,
51 .CurrPicIdx = cf->
idx,
72 #if CONFIG_MJPEG_NVDEC_HWACCEL
74 .
name =
"mjpeg_nvdec",
This structure describes decoded (raw) audio or video data.
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
static int nvdec_mjpeg_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
CUVIDPICPARAMS pic_params
AVBufferRef * private_ref
AVBufferRef for internal use by a single libav* library.
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)
const AVHWAccel ff_mjpeg_nvdec_hwaccel
static int nvdec_mjpeg_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
int ff_nvdec_decode_init(AVCodecContext *avctx)
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size)
const char * name
Name of the hardware accelerated codec.
HW acceleration through CUDA.
Libavcodec external API header.
main external API structure.
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
uint8_t * data
The data buffer.
A reference to a data buffer.
This struct stores per-frame lavc-internal data and is attached to it via private_ref.
common internal api header.
void * hwaccel_priv_data
hwaccel-specific private data
struct AVCodecInternal * internal
Private context used for internal data.
void * hwaccel_priv
Per-frame private data for hwaccels.
static int nvdec_mjpeg_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)