39 CUVIDPICPARAMS *pp = &
ctx->pic_params;
53 *pp = (CUVIDPICPARAMS) {
54 .PicWidthInMbs = (cur_frame->
width + 15) / 16,
55 .FrameHeightInMbs = (cur_frame->
height + 15) / 16,
56 .CurrPicIdx = cf->
idx,
58 .CodecSpecific.vp8 = {
59 .width = cur_frame->
width,
60 .height = cur_frame->
height,
62 .first_partition_size =
h->header_partition_size,
76 h->segmentation.enabled ?
77 h->segmentation.update_feature_data : 0,
Libavcodec external API header.
common internal API header
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size, int supports_444)
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_decode_init(AVCodecContext *avctx)
int ff_nvdec_get_ref_idx(AVFrame *frame)
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
static int nvdec_vp8_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
static int nvdec_vp8_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
static unsigned char safe_get_ref_idx(VP8Frame *frame)
AVHWAccel ff_vp8_nvdec_hwaccel
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
A reference to a data buffer.
uint8_t * data
The data buffer.
main external API structure.
struct AVCodecInternal * internal
Private context used for internal data.
void * hwaccel_priv_data
hwaccel-specific private data
This structure describes decoded (raw) audio or video data.
AVBufferRef * private_ref
AVBufferRef for internal use by a single libav* library.
const char * name
Name of the hardware accelerated codec.
This struct stores per-frame lavc-internal data and is attached to it via private_ref.
void * hwaccel_priv
Per-frame private data for hwaccels.