Go to the documentation of this file.
23 #ifndef AVCODEC_NVDEC_H
24 #define AVCODEC_NVDEC_H
35 #if defined(NVDECAPI_MAJOR_VERSION) && defined(NVDECAPI_MINOR_VERSION)
36 # define NVDECAPI_CHECK_VERSION(major, minor) \
37 ((major) < NVDECAPI_MAJOR_VERSION || ((major) == NVDECAPI_MAJOR_VERSION && (minor) <= NVDECAPI_MINOR_VERSION))
40 # define NVDECAPI_CHECK_VERSION(major, minor) \
41 ((major) < 8 || ((major) == 8 && (minor) <= 0))
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)
This structure describes decoded (raw) audio or video data.
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
CUVIDPICPARAMS pic_params
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size, int supports_444)
int ff_nvdec_get_ref_idx(AVFrame *frame)
unsigned int bitstream_allocated
AVBufferPool * decoder_pool
int ff_nvdec_decode_init(AVCodecContext *avctx)
int ff_nvdec_start_frame_sep_ref(AVCodecContext *avctx, AVFrame *frame, int has_sep_ref)
int ff_nvdec_end_frame(AVCodecContext *avctx)
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
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
main external API structure.
AVBufferRef * decoder_ref
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
A reference to a data buffer.
uint8_t * bitstream_internal
unsigned int slice_offsets_allocated
AVBufferRef * ref_idx_ref
AVBufferRef * decoder_ref