mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_scale: Deduplicate AVClasses
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4906a45ada
commit
403d8c0188
@ -967,7 +967,7 @@ static const AVOption scale_options[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const AVClass scale_class = {
|
static const AVClass scale_class = {
|
||||||
.class_name = "scale",
|
.class_name = "scale(2ref)",
|
||||||
.item_name = av_default_item_name,
|
.item_name = av_default_item_name,
|
||||||
.option = scale_options,
|
.option = scale_options,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
@ -1004,15 +1004,6 @@ const AVFilter ff_vf_scale = {
|
|||||||
.process_command = process_command,
|
.process_command = process_command,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVClass scale2ref_class = {
|
|
||||||
.class_name = "scale2ref",
|
|
||||||
.item_name = av_default_item_name,
|
|
||||||
.option = scale_options,
|
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
|
||||||
.category = AV_CLASS_CATEGORY_FILTER,
|
|
||||||
.child_class_iterate = child_class_iterate,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const AVFilterPad avfilter_vf_scale2ref_inputs[] = {
|
static const AVFilterPad avfilter_vf_scale2ref_inputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
@ -1048,7 +1039,7 @@ const AVFilter ff_vf_scale2ref = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.query_formats = query_formats,
|
.query_formats = query_formats,
|
||||||
.priv_size = sizeof(ScaleContext),
|
.priv_size = sizeof(ScaleContext),
|
||||||
.priv_class = &scale2ref_class,
|
.priv_class = &scale_class,
|
||||||
FILTER_INPUTS(avfilter_vf_scale2ref_inputs),
|
FILTER_INPUTS(avfilter_vf_scale2ref_inputs),
|
||||||
FILTER_OUTPUTS(avfilter_vf_scale2ref_outputs),
|
FILTER_OUTPUTS(avfilter_vf_scale2ref_outputs),
|
||||||
.process_command = process_command,
|
.process_command = process_command,
|
||||||
|
Loading…
Reference in New Issue
Block a user