mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
avfilter/avfilter: Add FFFilter, hide internals of AVFilter
This patch is analogous to 20f9727018:
It hides the internal part of AVFilter by adding a new internal
structure FFFilter (declared in filters.h) that has an AVFilter
as its first member; the internal part of AVFilter is moved to
this new structure.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -451,15 +451,15 @@ static const AVFilterPad outputs[] = {
|
||||
},
|
||||
};
|
||||
|
||||
const AVFilter ff_vf_datascope = {
|
||||
.name = "datascope",
|
||||
.description = NULL_IF_CONFIG_SMALL("Video data analysis."),
|
||||
const FFFilter ff_vf_datascope = {
|
||||
.p.name = "datascope",
|
||||
.p.description = NULL_IF_CONFIG_SMALL("Video data analysis."),
|
||||
.p.priv_class = &datascope_class,
|
||||
.p.flags = AVFILTER_FLAG_SLICE_THREADS,
|
||||
.priv_size = sizeof(DatascopeContext),
|
||||
.priv_class = &datascope_class,
|
||||
FILTER_INPUTS(inputs),
|
||||
FILTER_OUTPUTS(outputs),
|
||||
FILTER_QUERY_FUNC2(query_formats),
|
||||
.flags = AVFILTER_FLAG_SLICE_THREADS,
|
||||
.process_command = process_command,
|
||||
};
|
||||
|
||||
@@ -731,15 +731,15 @@ static const AVFilterPad pixscope_inputs[] = {
|
||||
},
|
||||
};
|
||||
|
||||
const AVFilter ff_vf_pixscope = {
|
||||
.name = "pixscope",
|
||||
.description = NULL_IF_CONFIG_SMALL("Pixel data analysis."),
|
||||
const FFFilter ff_vf_pixscope = {
|
||||
.p.name = "pixscope",
|
||||
.p.description = NULL_IF_CONFIG_SMALL("Pixel data analysis."),
|
||||
.p.priv_class = &pixscope_class,
|
||||
.p.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
.priv_size = sizeof(PixscopeContext),
|
||||
.priv_class = &pixscope_class,
|
||||
FILTER_INPUTS(pixscope_inputs),
|
||||
FILTER_OUTPUTS(ff_video_default_filterpad),
|
||||
FILTER_QUERY_FUNC2(query_formats),
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
.process_command = pixscope_process_command,
|
||||
};
|
||||
|
||||
@@ -1129,15 +1129,15 @@ static const AVFilterPad oscilloscope_inputs[] = {
|
||||
},
|
||||
};
|
||||
|
||||
const AVFilter ff_vf_oscilloscope = {
|
||||
.name = "oscilloscope",
|
||||
.description = NULL_IF_CONFIG_SMALL("2D Video Oscilloscope."),
|
||||
const FFFilter ff_vf_oscilloscope = {
|
||||
.p.name = "oscilloscope",
|
||||
.p.description = NULL_IF_CONFIG_SMALL("2D Video Oscilloscope."),
|
||||
.p.priv_class = &oscilloscope_class,
|
||||
.p.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
.priv_size = sizeof(OscilloscopeContext),
|
||||
.priv_class = &oscilloscope_class,
|
||||
.uninit = oscilloscope_uninit,
|
||||
FILTER_INPUTS(oscilloscope_inputs),
|
||||
FILTER_OUTPUTS(ff_video_default_filterpad),
|
||||
FILTER_QUERY_FUNC2(query_formats),
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
.process_command = oscilloscope_process_command,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user