Go to the documentation of this file.
24 #ifndef AVFILTER_QSVVPP_H
25 #define AVFILTER_QSVVPP_H
27 #include <mfx/mfxvideo.h>
32 #define FF_INLINK_IDX(link) ((int)((link)->dstpad - (link)->dst->input_pads))
33 #define FF_OUTLINK_IDX(link) ((int)((link)->srcpad - (link)->src->output_pads))
35 #define QSV_VERSION_ATLEAST(MAJOR, MINOR) \
36 (MFX_VERSION_MAJOR > (MAJOR) || \
37 MFX_VERSION_MAJOR == (MAJOR) && MFX_VERSION_MINOR >= (MINOR))
39 #define QSV_RUNTIME_VERSION_ATLEAST(MFX_VERSION, MAJOR, MINOR) \
40 ((MFX_VERSION.Major > (MAJOR)) || \
41 (MFX_VERSION.Major == (MAJOR) && MFX_VERSION.Minor >= (MINOR)))
112 const char *extra_string);
115 const char *error_string);
118 const char *warning_string);
AVPixelFormat
Pixel format.
enum AVPixelFormat out_sw_format
int ff_qsvvpp_filter_frame(QSVVPPContext *vpp, AVFilterLink *inlink, AVFrame *frame)
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
This structure describes decoded (raw) audio or video data.
int ff_qsvvpp_free(QSVVPPContext **vpp)
A link between two filters.
int ff_qsvvpp_create(AVFilterContext *avctx, QSVVPPContext **vpp, QSVVPPParam *param)
mfxFrameSurface1 ** surface_ptrs_in
mfxFrameInfo * frame_infos
frame info for each input
enum AVPixelFormat out_sw_format
Real output format.
AVFifoBuffer * async_fifo
order with frame_out, sync
int ff_qsvvpp_print_error(void *log_ctx, mfxStatus err, const char *error_string)
int ff_qsvvpp_print_iopattern(void *log_ctx, int mfx_iopattern, const char *extra_string)
int(* filter_frame)(AVFilterLink *outlink, AVFrame *frame)
callback
int(* filter_frame)(AVFilterLink *outlink, AVFrame *frame)
mfxFrameSurface1 ** surface_ptrs_out
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
mfxExtBuffer ** ext_buffers
int ff_qsvvpp_print_warning(void *log_ctx, mfxStatus err, const char *warning_string)
int in_mem_mode
members related to the input/output surface
QSVFrame * out_frame_list
mfxExtOpaqueSurfaceAlloc opaque_alloc
MFXVPP extern parameters.