Go to the documentation of this file.
24 #ifndef AVFILTER_QSVVPP_H
25 #define AVFILTER_QSVVPP_H
34 #define FF_INLINK_IDX(link) ((int)((link)->dstpad - (link)->dst->input_pads))
35 #define FF_OUTLINK_IDX(link) ((int)((link)->srcpad - (link)->src->output_pads))
37 #define QSV_VERSION_ATLEAST(MAJOR, MINOR) \
38 (MFX_VERSION_MAJOR > (MAJOR) || \
39 MFX_VERSION_MAJOR == (MAJOR) && MFX_VERSION_MINOR >= (MINOR))
41 #define QSV_RUNTIME_VERSION_ATLEAST(MFX_VERSION, MAJOR, MINOR) \
42 ((MFX_VERSION.Major > (MAJOR)) || \
43 (MFX_VERSION.Major == (MAJOR) && MFX_VERSION.Minor >= (MINOR)))
45 #define QSV_ONEVPL QSV_VERSION_ATLEAST(2, 0)
46 #define QSV_HAVE_OPAQUE !QSV_ONEVPL
119 const char *extra_string);
122 const char *error_string);
125 const char *warning_string);
128 mfxVersion *pver, mfxSession *psession);
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.
A link between two filters.
mfxFrameSurface1 ** surface_ptrs_in
mfxFrameInfo * frame_infos
frame info for each input
enum AVPixelFormat out_sw_format
Real output format.
AVFifo * async_fifo
order with frame_out, sync
int ff_qsvvpp_create_mfx_session(void *ctx, void *loader, mfxIMPL implementation, mfxVersion *pver, mfxSession *psession)
Describe the class of an AVClass context structure.
AVFrame * ff_qsvvpp_get_video_buffer(AVFilterLink *inlink, int w, int h)
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 ff_qsvvpp_close(AVFilterContext *avctx)
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 ff_qsvvpp_init(AVFilterContext *avctx, QSVVPPParam *param)
int in_mem_mode
members related to the input/output surface
QSVFrame * out_frame_list
mfxExtOpaqueSurfaceAlloc opaque_alloc
MFXVPP extern parameters.