Go to the documentation of this file.
19 #ifndef AVCODEC_VT_INTERNAL_H
20 #define AVCODEC_VT_INTERNAL_H
int ff_videotoolbox_common_end_frame(AVCodecContext *avctx, AVFrame *frame)
int ff_videotoolbox_uninit(AVCodecContext *avctx)
int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
This structure describes decoded (raw) audio or video data.
This struct holds all the information that needs to be passed between the caller and libavcodec for i...
int ff_videotoolbox_h264_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
int ff_videotoolbox_common_init(AVCodecContext *avctx)
CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx)
int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame)
CFDataRef ff_videotoolbox_hvcc_extradata_create(AVCodecContext *avctx)
CFDataRef ff_videotoolbox_vpcc_extradata_create(AVCodecContext *avctx)
int ff_videotoolbox_buffer_append(VTContext *vtctx, const uint8_t *buffer, uint32_t size)
int ff_videotoolbox_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
CFDataRef ff_videotoolbox_av1c_extradata_create(AVCodecContext *avctx)
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.
struct AVVideotoolboxContext * vt_ctx
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
struct AVBufferRef * cached_hw_frames_ctx
A reference to a data buffer.
int ff_videotoolbox_buffer_copy(VTContext *vtctx, const uint8_t *buffer, uint32_t size)