Go to the documentation of this file.
40 CUVIDPICPARAMS *pp = &
ctx->pic_params;
54 *pp = (CUVIDPICPARAMS) {
55 .PicWidthInMbs = (cur_frame->
width + 15) / 16,
56 .FrameHeightInMbs = (cur_frame->
height + 15) / 16,
57 .CurrPicIdx = cf->
idx,
59 .CodecSpecific.vp8 = {
60 .width = cur_frame->
width,
61 .height = cur_frame->
height,
63 .first_partition_size =
h->header_partition_size,
77 h->segmentation.enabled ?
78 h->segmentation.update_feature_data : 0,
95 .
p.
name =
"vp8_nvdec",
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
uint8_t * data
The data buffer.
int ff_nvdec_get_ref_idx(AVFrame *frame)
AVHWAccel p
The public AVHWAccel.
This struct stores per-frame lavc-internal data and is attached to it via private_ref.
This structure describes decoded (raw) audio or video data.
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)
static int nvdec_vp8_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
int ff_nvdec_decode_init(AVCodecContext *avctx)
struct AVCodecInternal * internal
Private context used for internal data.
void * hwaccel_priv_data
hwaccel-specific private data
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
AVBufferRef * private_ref
AVBufferRef for internal use by a single libav* library.
const char * name
Name of the hardware accelerated codec.
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
static unsigned char safe_get_ref_idx(VP8Frame *frame)
main external API structure.
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
the frame and frame reference mechanism is intended to as much as expensive copies of that data while still allowing the filters to produce correct results The data is stored in buffers represented by AVFrame structures Several references can point to the same frame buffer
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size, int supports_444)
static int nvdec_vp8_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
A reference to a data buffer.
const FFHWAccel ff_vp8_nvdec_hwaccel
void * hwaccel_priv
Per-frame private data for hwaccels.