mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_hsvkey: Deduplicate inputs and outputs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
50d3c5bd8c
commit
93abb9b560
@ -265,7 +265,7 @@ static const enum AVPixelFormat key_pixel_fmts[] = {
|
|||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVFilterPad hsvkey_inputs[] = {
|
static const AVFilterPad inputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
@ -275,7 +275,7 @@ static const AVFilterPad hsvkey_inputs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVFilterPad hsvkey_outputs[] = {
|
static const AVFilterPad outputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
@ -302,8 +302,8 @@ const AVFilter ff_vf_hsvkey = {
|
|||||||
.description = NULL_IF_CONFIG_SMALL("Turns a certain HSV range into transparency. Operates on YUV colors."),
|
.description = NULL_IF_CONFIG_SMALL("Turns a certain HSV range into transparency. Operates on YUV colors."),
|
||||||
.priv_size = sizeof(HSVKeyContext),
|
.priv_size = sizeof(HSVKeyContext),
|
||||||
.priv_class = &hsvkey_class,
|
.priv_class = &hsvkey_class,
|
||||||
FILTER_INPUTS(hsvkey_inputs),
|
FILTER_INPUTS(inputs),
|
||||||
FILTER_OUTPUTS(hsvkey_outputs),
|
FILTER_OUTPUTS(outputs),
|
||||||
FILTER_PIXFMTS_ARRAY(key_pixel_fmts),
|
FILTER_PIXFMTS_ARRAY(key_pixel_fmts),
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
||||||
.process_command = ff_filter_process_command,
|
.process_command = ff_filter_process_command,
|
||||||
@ -337,24 +337,6 @@ static const AVOption hsvhold_options[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVFilterPad hsvhold_inputs[] = {
|
|
||||||
{
|
|
||||||
.name = "default",
|
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
|
||||||
.flags = AVFILTERPAD_FLAG_NEEDS_WRITABLE,
|
|
||||||
.filter_frame = filter_frame,
|
|
||||||
.config_props = config_input,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
static const AVFilterPad hsvhold_outputs[] = {
|
|
||||||
{
|
|
||||||
.name = "default",
|
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
|
||||||
.config_props = config_output,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
AVFILTER_DEFINE_CLASS(hsvhold);
|
AVFILTER_DEFINE_CLASS(hsvhold);
|
||||||
|
|
||||||
const AVFilter ff_vf_hsvhold = {
|
const AVFilter ff_vf_hsvhold = {
|
||||||
@ -362,8 +344,8 @@ const AVFilter ff_vf_hsvhold = {
|
|||||||
.description = NULL_IF_CONFIG_SMALL("Turns a certain HSV range into gray."),
|
.description = NULL_IF_CONFIG_SMALL("Turns a certain HSV range into gray."),
|
||||||
.priv_size = sizeof(HSVKeyContext),
|
.priv_size = sizeof(HSVKeyContext),
|
||||||
.priv_class = &hsvhold_class,
|
.priv_class = &hsvhold_class,
|
||||||
FILTER_INPUTS(hsvhold_inputs),
|
FILTER_INPUTS(inputs),
|
||||||
FILTER_OUTPUTS(hsvhold_outputs),
|
FILTER_OUTPUTS(outputs),
|
||||||
FILTER_PIXFMTS_ARRAY(hold_pixel_fmts),
|
FILTER_PIXFMTS_ARRAY(hold_pixel_fmts),
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
||||||
.process_command = ff_filter_process_command,
|
.process_command = ff_filter_process_command,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user