Go to the documentation of this file.
24 #ifndef AVFILTER_QSVVPP_H
25 #define AVFILTER_QSVVPP_H
27 #include <mfx/mfxvideo.h>
31 #define FF_INLINK_IDX(link) ((int)((link)->dstpad - (link)->dst->input_pads))
32 #define FF_OUTLINK_IDX(link) ((int)((link)->srcpad - (link)->src->output_pads))
34 #define QSV_VERSION_ATLEAST(MAJOR, MINOR) \
35 (MFX_VERSION_MAJOR > (MAJOR) || \
36 MFX_VERSION_MAJOR == (MAJOR) && MFX_VERSION_MINOR >= (MINOR))
38 #define QSV_RUNTIME_VERSION_ATLEAST(MFX_VERSION, MAJOR, MINOR) \
39 ((MFX_VERSION.Major > (MAJOR)) || \
40 (MFX_VERSION.Major == (MAJOR) && MFX_VERSION.Minor >= (MINOR)))
75 const char *extra_string);
78 const char *error_string);
81 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)
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)
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
int ff_qsvvpp_print_warning(void *log_ctx, mfxStatus err, const char *warning_string)