* [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs
@ 2023-11-01 8:34 Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 02/11] avfilter/f_drawgraph: Deduplicate outputs Andreas Rheinhardt
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:34 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
swb_offset_960_48 and swb_offset_960_32 coincide.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavcodec/aactab.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/libavcodec/aactab.c b/libavcodec/aactab.c
index d20ac56a3f..63a478f33f 100644
--- a/libavcodec/aactab.c
+++ b/libavcodec/aactab.c
@@ -1331,14 +1331,7 @@ static const uint16_t swb_offset_960_48[] =
672, 704, 736, 768, 800, 832, 864, 896, 928, 960
};
-static const uint16_t swb_offset_960_32[] =
-{
- 0, 4, 8, 12, 16, 20, 24, 28, 32, 36,
- 40, 48, 56, 64, 72, 80, 88, 96, 108, 120,
- 132, 144, 160, 176, 196, 216, 240, 264, 292, 320,
- 352, 384, 416, 448, 480, 512, 544, 576, 608, 640,
- 672, 704, 736, 768, 800, 832, 864, 896, 928, 960
-};
+#define swb_offset_960_32 swb_offset_960_48
static const uint16_t swb_offset_960_24[] =
{
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 02/11] avfilter/f_drawgraph: Deduplicate outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 03/11] avfilter/f_graphmonitor: " Andreas Rheinhardt
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/f_drawgraph.c | 25 ++++++++-----------------
1 file changed, 8 insertions(+), 17 deletions(-)
diff --git a/libavfilter/f_drawgraph.c b/libavfilter/f_drawgraph.c
index d29a7fb60a..d53598ee15 100644
--- a/libavfilter/f_drawgraph.c
+++ b/libavfilter/f_drawgraph.c
@@ -454,22 +454,22 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->values[3]);
}
-#if CONFIG_DRAWGRAPH_FILTER
-
-static const AVFilterPad drawgraph_inputs[] = {
+static const AVFilterPad drawgraph_outputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
- .filter_frame = filter_frame,
+ .config_props = config_output,
+ .request_frame = request_frame,
},
};
-static const AVFilterPad drawgraph_outputs[] = {
+#if CONFIG_DRAWGRAPH_FILTER
+
+static const AVFilterPad drawgraph_inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- .request_frame = request_frame,
+ .filter_frame = filter_frame,
},
};
@@ -497,15 +497,6 @@ static const AVFilterPad adrawgraph_inputs[] = {
},
};
-static const AVFilterPad adrawgraph_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- .request_frame = request_frame,
- },
-};
-
const AVFilter ff_avf_adrawgraph = {
.name = "adrawgraph",
.description = NULL_IF_CONFIG_SMALL("Draw a graph using input audio metadata."),
@@ -514,7 +505,7 @@ const AVFilter ff_avf_adrawgraph = {
.init = init,
.uninit = uninit,
FILTER_INPUTS(adrawgraph_inputs),
- FILTER_OUTPUTS(adrawgraph_outputs),
+ FILTER_OUTPUTS(drawgraph_outputs),
FILTER_QUERY_FUNC(query_formats),
};
#endif // CONFIG_ADRAWGRAPH_FILTER
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 03/11] avfilter/f_graphmonitor: Deduplicate outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 02/11] avfilter/f_drawgraph: Deduplicate outputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 04/11] avfilter/vf_aspect: Deduplicate inputs Andreas Rheinhardt
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/f_graphmonitor.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c
index ce4153fc79..d2c0ae81bf 100644
--- a/libavfilter/f_graphmonitor.c
+++ b/libavfilter/f_graphmonitor.c
@@ -568,8 +568,6 @@ static av_cold void uninit(AVFilterContext *ctx)
AVFILTER_DEFINE_CLASS_EXT(graphmonitor, "(a)graphmonitor", graphmonitor_options);
-#if CONFIG_GRAPHMONITOR_FILTER
-
static const AVFilterPad graphmonitor_outputs[] = {
{
.name = "default",
@@ -578,6 +576,8 @@ static const AVFilterPad graphmonitor_outputs[] = {
},
};
+#if CONFIG_GRAPHMONITOR_FILTER
+
const AVFilter ff_vf_graphmonitor = {
.name = "graphmonitor",
.description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
@@ -596,14 +596,6 @@ const AVFilter ff_vf_graphmonitor = {
#if CONFIG_AGRAPHMONITOR_FILTER
-static const AVFilterPad agraphmonitor_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
-
const AVFilter ff_avf_agraphmonitor = {
.name = "agraphmonitor",
.description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
@@ -613,7 +605,7 @@ const AVFilter ff_avf_agraphmonitor = {
.uninit = uninit,
.activate = activate,
FILTER_INPUTS(ff_audio_default_filterpad),
- FILTER_OUTPUTS(agraphmonitor_outputs),
+ FILTER_OUTPUTS(graphmonitor_outputs),
FILTER_QUERY_FUNC(query_formats),
.process_command = ff_filter_process_command,
};
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 04/11] avfilter/vf_aspect: Deduplicate inputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 02/11] avfilter/f_drawgraph: Deduplicate outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 03/11] avfilter/f_graphmonitor: " Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 05/11] avfilter/vf_blend: Deduplicate outputs Andreas Rheinhardt
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Also avoid using the avfilter-prefix for static objects.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_aspect.c | 28 ++++++++++------------------
1 file changed, 10 insertions(+), 18 deletions(-)
diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index b453de70c5..129ae19d6d 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -127,6 +127,14 @@ static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio)
return 0;
}
+static const AVFilterPad aspect_inputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .filter_frame = filter_frame,
+ },
+};
+
#if CONFIG_SETDAR_FILTER
static int setdar_config_props(AVFilterLink *outlink)
@@ -171,14 +179,6 @@ static const AVOption setdar_options[] = {
AVFILTER_DEFINE_CLASS(setdar);
-static const AVFilterPad avfilter_vf_setdar_inputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .filter_frame = filter_frame,
- },
-};
-
static const AVFilterPad avfilter_vf_setdar_outputs[] = {
{
.name = "default",
@@ -193,7 +193,7 @@ const AVFilter ff_vf_setdar = {
.priv_size = sizeof(AspectContext),
.priv_class = &setdar_class,
.flags = AVFILTER_FLAG_METADATA_ONLY,
- FILTER_INPUTS(avfilter_vf_setdar_inputs),
+ FILTER_INPUTS(aspect_inputs),
FILTER_OUTPUTS(avfilter_vf_setdar_outputs),
};
@@ -234,14 +234,6 @@ static const AVOption setsar_options[] = {
AVFILTER_DEFINE_CLASS(setsar);
-static const AVFilterPad avfilter_vf_setsar_inputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .filter_frame = filter_frame,
- },
-};
-
static const AVFilterPad avfilter_vf_setsar_outputs[] = {
{
.name = "default",
@@ -256,7 +248,7 @@ const AVFilter ff_vf_setsar = {
.priv_size = sizeof(AspectContext),
.priv_class = &setsar_class,
.flags = AVFILTER_FLAG_METADATA_ONLY,
- FILTER_INPUTS(avfilter_vf_setsar_inputs),
+ FILTER_INPUTS(aspect_inputs),
FILTER_OUTPUTS(avfilter_vf_setsar_outputs),
};
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 05/11] avfilter/vf_blend: Deduplicate outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (2 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 04/11] avfilter/vf_aspect: Deduplicate inputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 06/11] avfilter/vf_chromakey: Deduplicate inputs and outputs Andreas Rheinhardt
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_blend.c | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c
index 7100d9f372..ecabb78e61 100644
--- a/libavfilter/vf_blend.c
+++ b/libavfilter/vf_blend.c
@@ -378,6 +378,14 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
return config_params(ctx);
}
+static const AVFilterPad blend_outputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .config_props = config_output,
+ },
+};
+
#if CONFIG_BLEND_FILTER
static int activate(AVFilterContext *ctx)
@@ -396,14 +404,6 @@ static const AVFilterPad blend_inputs[] = {
},
};
-static const AVFilterPad blend_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
-
const AVFilter ff_vf_blend = {
.name = "blend",
.description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."),
@@ -455,14 +455,6 @@ static const AVFilterPad tblend_inputs[] = {
},
};
-static const AVFilterPad tblend_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
-
const AVFilter ff_vf_tblend = {
.name = "tblend",
.description = NULL_IF_CONFIG_SMALL("Blend successive frames."),
@@ -471,7 +463,7 @@ const AVFilter ff_vf_tblend = {
.init = init,
.uninit = uninit,
FILTER_INPUTS(tblend_inputs),
- FILTER_OUTPUTS(tblend_outputs),
+ FILTER_OUTPUTS(blend_outputs),
FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 06/11] avfilter/vf_chromakey: Deduplicate inputs and outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (3 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 05/11] avfilter/vf_blend: Deduplicate outputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 07/11] avfilter/vf_convolve: Deduplicate outputs Andreas Rheinhardt
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_chromakey.c | 30 ++++++------------------------
1 file changed, 6 insertions(+), 24 deletions(-)
diff --git a/libavfilter/vf_chromakey.c b/libavfilter/vf_chromakey.c
index c204a58328..9c0918bb4d 100644
--- a/libavfilter/vf_chromakey.c
+++ b/libavfilter/vf_chromakey.c
@@ -323,7 +323,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
return config_output(ctx->outputs[0]);
}
-static const AVFilterPad chromakey_inputs[] = {
+static const AVFilterPad inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
@@ -333,7 +333,7 @@ static const AVFilterPad chromakey_inputs[] = {
},
};
-static const AVFilterPad chromakey_outputs[] = {
+static const AVFilterPad outputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
@@ -370,8 +370,8 @@ const AVFilter ff_vf_chromakey = {
.description = NULL_IF_CONFIG_SMALL("Turns a certain color into transparency. Operates on YUV colors."),
.priv_size = sizeof(ChromakeyContext),
.priv_class = &chromakey_class,
- FILTER_INPUTS(chromakey_inputs),
- FILTER_OUTPUTS(chromakey_outputs),
+ FILTER_INPUTS(inputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(chromakey_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,
@@ -385,24 +385,6 @@ static const AVOption chromahold_options[] = {
{ NULL }
};
-static const AVFilterPad chromahold_inputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .flags = AVFILTERPAD_FLAG_NEEDS_WRITABLE,
- .filter_frame = filter_frame,
- .config_props = config_input,
- },
-};
-
-static const AVFilterPad chromahold_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
-
static const enum AVPixelFormat hold_pixel_fmts[] = {
AV_PIX_FMT_YUV420P,
AV_PIX_FMT_YUV422P,
@@ -429,8 +411,8 @@ const AVFilter ff_vf_chromahold = {
.description = NULL_IF_CONFIG_SMALL("Turns a certain color range into gray."),
.priv_size = sizeof(ChromakeyContext),
.priv_class = &chromahold_class,
- FILTER_INPUTS(chromahold_inputs),
- FILTER_OUTPUTS(chromahold_outputs),
+ FILTER_INPUTS(inputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(hold_pixel_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 07/11] avfilter/vf_convolve: Deduplicate outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (4 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 06/11] avfilter/vf_chromakey: Deduplicate inputs and outputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 08/11] avfilter/vf_hsvkey: Deduplicate inputs and outputs Andreas Rheinhardt
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_convolve.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/libavfilter/vf_convolve.c b/libavfilter/vf_convolve.c
index 3246868888..25dc92e988 100644
--- a/libavfilter/vf_convolve.c
+++ b/libavfilter/vf_convolve.c
@@ -955,13 +955,7 @@ static const AVFilterPad xcorrelate_inputs[] = {
},
};
-static const AVFilterPad xcorrelate_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
+#define xcorrelate_outputs convolve_outputs
const AVFilter ff_vf_xcorrelate = {
.name = "xcorrelate",
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 08/11] avfilter/vf_hsvkey: Deduplicate inputs and outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (5 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 07/11] avfilter/vf_convolve: Deduplicate outputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 09/11] avfilter/vf_xmedian: Deduplicate outputs Andreas Rheinhardt
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_hsvkey.c | 30 ++++++------------------------
1 file changed, 6 insertions(+), 24 deletions(-)
diff --git a/libavfilter/vf_hsvkey.c b/libavfilter/vf_hsvkey.c
index 542ac1f3b2..0bd8cace37 100644
--- a/libavfilter/vf_hsvkey.c
+++ b/libavfilter/vf_hsvkey.c
@@ -265,7 +265,7 @@ static const enum AVPixelFormat key_pixel_fmts[] = {
AV_PIX_FMT_NONE
};
-static const AVFilterPad hsvkey_inputs[] = {
+static const AVFilterPad inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
@@ -275,7 +275,7 @@ static const AVFilterPad hsvkey_inputs[] = {
},
};
-static const AVFilterPad hsvkey_outputs[] = {
+static const AVFilterPad outputs[] = {
{
.name = "default",
.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."),
.priv_size = sizeof(HSVKeyContext),
.priv_class = &hsvkey_class,
- FILTER_INPUTS(hsvkey_inputs),
- FILTER_OUTPUTS(hsvkey_outputs),
+ FILTER_INPUTS(inputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(key_pixel_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = ff_filter_process_command,
@@ -337,24 +337,6 @@ static const AVOption hsvhold_options[] = {
{ 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);
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."),
.priv_size = sizeof(HSVKeyContext),
.priv_class = &hsvhold_class,
- FILTER_INPUTS(hsvhold_inputs),
- FILTER_OUTPUTS(hsvhold_outputs),
+ FILTER_INPUTS(inputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(hold_pixel_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = ff_filter_process_command,
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 09/11] avfilter/vf_xmedian: Deduplicate outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (6 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 08/11] avfilter/vf_hsvkey: Deduplicate inputs and outputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 10/11] avfilter/vsrc_testsrc: " Andreas Rheinhardt
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_xmedian.c | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/libavfilter/vf_xmedian.c b/libavfilter/vf_xmedian.c
index 0a02ca065e..ebcbea97ed 100644
--- a/libavfilter/vf_xmedian.c
+++ b/libavfilter/vf_xmedian.c
@@ -327,6 +327,14 @@ static int activate(AVFilterContext *ctx)
return ff_framesync_activate(&s->fs);
}
+static const AVFilterPad outputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .config_props = config_output,
+ },
+};
+
#if CONFIG_XMEDIAN_FILTER
static av_cold int xmedian_init(AVFilterContext *ctx)
{
@@ -363,14 +371,6 @@ static const AVOption xmedian_options[] = {
{ NULL },
};
-static const AVFilterPad outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
-
FRAMESYNC_DEFINE_CLASS(xmedian, XMedianContext, fs);
const AVFilter ff_vf_xmedian = {
@@ -448,14 +448,6 @@ static const AVFilterPad tmedian_inputs[] = {
},
};
-static const AVFilterPad tmedian_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output,
- },
-};
-
AVFILTER_DEFINE_CLASS(tmedian);
const AVFilter ff_vf_tmedian = {
@@ -464,7 +456,7 @@ const AVFilter ff_vf_tmedian = {
.priv_size = sizeof(XMedianContext),
.priv_class = &tmedian_class,
FILTER_INPUTS(tmedian_inputs),
- FILTER_OUTPUTS(tmedian_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(pixel_fmts),
.init = init,
.uninit = uninit,
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 10/11] avfilter/vsrc_testsrc: Deduplicate outputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (7 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 09/11] avfilter/vf_xmedian: Deduplicate outputs Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 11/11] avfilter/vf_format: Deduplicate inputs Andreas Rheinhardt
2023-11-03 11:11 ` [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vsrc_testsrc.c | 64 ++++++++++----------------------------
1 file changed, 16 insertions(+), 48 deletions(-)
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 9081b55f1c..da17e950d8 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -160,6 +160,14 @@ static int config_props(AVFilterLink *outlink)
return 0;
}
+static const AVFilterPad outputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .config_props = config_props,
+ },
+};
+
static int activate(AVFilterContext *ctx)
{
AVFilterLink *outlink = ctx->outputs[0];
@@ -465,14 +473,6 @@ static av_cold int nullsrc_init(AVFilterContext *ctx)
return init(ctx);
}
-static const AVFilterPad nullsrc_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_props,
- },
-};
-
const AVFilter ff_vsrc_nullsrc = {
.name = "nullsrc",
.description = NULL_IF_CONFIG_SMALL("Null video source, return unprocessed video frames."),
@@ -482,7 +482,7 @@ const AVFilter ff_vsrc_nullsrc = {
.activate = activate,
.priv_size = sizeof(TestSourceContext),
.inputs = NULL,
- FILTER_OUTPUTS(nullsrc_outputs),
+ FILTER_OUTPUTS(outputs),
};
#endif /* CONFIG_NULLSRC_FILTER */
@@ -688,14 +688,6 @@ static av_cold int test_init(AVFilterContext *ctx)
return init(ctx);
}
-static const AVFilterPad avfilter_vsrc_testsrc_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_props,
- },
-};
-
const AVFilter ff_vsrc_testsrc = {
.name = "testsrc",
.description = NULL_IF_CONFIG_SMALL("Generate test pattern."),
@@ -705,7 +697,7 @@ const AVFilter ff_vsrc_testsrc = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(avfilter_vsrc_testsrc_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24),
};
@@ -1424,14 +1416,6 @@ static const enum AVPixelFormat smptebars_pix_fmts[] = {
AV_PIX_FMT_NONE,
};
-static const AVFilterPad smptebars_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_props,
- },
-};
-
AVFILTER_DEFINE_CLASS_EXT(palbars, "pal(75|100)bars", options);
#if CONFIG_PAL75BARS_FILTER
@@ -1474,7 +1458,7 @@ const AVFilter ff_vsrc_pal75bars = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(smptebars_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(smptebars_pix_fmts),
};
@@ -1518,7 +1502,7 @@ const AVFilter ff_vsrc_pal100bars = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(smptebars_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(smptebars_pix_fmts),
};
@@ -1585,7 +1569,7 @@ const AVFilter ff_vsrc_smptebars = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(smptebars_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(smptebars_pix_fmts),
};
@@ -1688,7 +1672,7 @@ const AVFilter ff_vsrc_smptehdbars = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(smptebars_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS_ARRAY(smptebars_pix_fmts),
};
@@ -1735,14 +1719,6 @@ static av_cold int allyuv_init(AVFilterContext *ctx)
return init(ctx);
}
-static const AVFilterPad avfilter_vsrc_allyuv_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_props,
- },
-};
-
const AVFilter ff_vsrc_allyuv = {
.name = "allyuv",
.description = NULL_IF_CONFIG_SMALL("Generate all yuv colors."),
@@ -1752,7 +1728,7 @@ const AVFilter ff_vsrc_allyuv = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(avfilter_vsrc_allyuv_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_PIXFMTS(AV_PIX_FMT_YUV444P, AV_PIX_FMT_GBRP),
};
@@ -1885,14 +1861,6 @@ static av_cold int colorspectrum_init(AVFilterContext *ctx)
return init(ctx);
}
-static const AVFilterPad avfilter_vsrc_colorspectrum_outputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_props,
- },
-};
-
const AVFilter ff_vsrc_colorspectrum = {
.name = "colorspectrum",
.description = NULL_IF_CONFIG_SMALL("Generate colors spectrum."),
@@ -1902,7 +1870,7 @@ const AVFilter ff_vsrc_colorspectrum = {
.uninit = uninit,
.activate = activate,
.inputs = NULL,
- FILTER_OUTPUTS(avfilter_vsrc_colorspectrum_outputs),
+ FILTER_OUTPUTS(outputs),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRPF32),
};
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [FFmpeg-devel] [PATCH 11/11] avfilter/vf_format: Deduplicate inputs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (8 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 10/11] avfilter/vsrc_testsrc: " Andreas Rheinhardt
@ 2023-11-01 8:35 ` Andreas Rheinhardt
2023-11-03 11:11 ` [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-01 8:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/vf_format.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c
index 04c265f59f..1189bd61c2 100644
--- a/libavfilter/vf_format.c
+++ b/libavfilter/vf_format.c
@@ -144,9 +144,7 @@ static const AVOption options[] = {
AVFILTER_DEFINE_CLASS_EXT(format, "(no)format", options);
-#if CONFIG_FORMAT_FILTER
-
-static const AVFilterPad avfilter_vf_format_inputs[] = {
+static const AVFilterPad inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
@@ -154,6 +152,7 @@ static const AVFilterPad avfilter_vf_format_inputs[] = {
},
};
+#if CONFIG_FORMAT_FILTER
const AVFilter ff_vf_format = {
.name = "format",
.description = NULL_IF_CONFIG_SMALL("Convert the input video to one of the specified pixel formats."),
@@ -166,7 +165,7 @@ const AVFilter ff_vf_format = {
.flags = AVFILTER_FLAG_METADATA_ONLY,
- FILTER_INPUTS(avfilter_vf_format_inputs),
+ FILTER_INPUTS(inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_QUERY_FUNC(query_formats),
@@ -174,15 +173,6 @@ const AVFilter ff_vf_format = {
#endif /* CONFIG_FORMAT_FILTER */
#if CONFIG_NOFORMAT_FILTER
-
-static const AVFilterPad avfilter_vf_noformat_inputs[] = {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .get_buffer.video = ff_null_get_video_buffer,
- },
-};
-
const AVFilter ff_vf_noformat = {
.name = "noformat",
.description = NULL_IF_CONFIG_SMALL("Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
@@ -195,7 +185,7 @@ const AVFilter ff_vf_noformat = {
.flags = AVFILTER_FLAG_METADATA_ONLY,
- FILTER_INPUTS(avfilter_vf_noformat_inputs),
+ FILTER_INPUTS(inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_QUERY_FUNC(query_formats),
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
` (9 preceding siblings ...)
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 11/11] avfilter/vf_format: Deduplicate inputs Andreas Rheinhardt
@ 2023-11-03 11:11 ` Andreas Rheinhardt
10 siblings, 0 replies; 12+ messages in thread
From: Andreas Rheinhardt @ 2023-11-03 11:11 UTC (permalink / raw)
To: ffmpeg-devel
Andreas Rheinhardt:
> swb_offset_960_48 and swb_offset_960_32 coincide.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> libavcodec/aactab.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/libavcodec/aactab.c b/libavcodec/aactab.c
> index d20ac56a3f..63a478f33f 100644
> --- a/libavcodec/aactab.c
> +++ b/libavcodec/aactab.c
> @@ -1331,14 +1331,7 @@ static const uint16_t swb_offset_960_48[] =
> 672, 704, 736, 768, 800, 832, 864, 896, 928, 960
> };
>
> -static const uint16_t swb_offset_960_32[] =
> -{
> - 0, 4, 8, 12, 16, 20, 24, 28, 32, 36,
> - 40, 48, 56, 64, 72, 80, 88, 96, 108, 120,
> - 132, 144, 160, 176, 196, 216, 240, 264, 292, 320,
> - 352, 384, 416, 448, 480, 512, 544, 576, 608, 640,
> - 672, 704, 736, 768, 800, 832, 864, 896, 928, 960
> -};
> +#define swb_offset_960_32 swb_offset_960_48
>
> static const uint16_t swb_offset_960_24[] =
> {
Will apply this patchset tomorrow unless there are objections.
- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-11-03 11:10 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01 8:34 [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 02/11] avfilter/f_drawgraph: Deduplicate outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 03/11] avfilter/f_graphmonitor: " Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 04/11] avfilter/vf_aspect: Deduplicate inputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 05/11] avfilter/vf_blend: Deduplicate outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 06/11] avfilter/vf_chromakey: Deduplicate inputs and outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 07/11] avfilter/vf_convolve: Deduplicate outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 08/11] avfilter/vf_hsvkey: Deduplicate inputs and outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 09/11] avfilter/vf_xmedian: Deduplicate outputs Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 10/11] avfilter/vsrc_testsrc: " Andreas Rheinhardt
2023-11-01 8:35 ` [FFmpeg-devel] [PATCH 11/11] avfilter/vf_format: Deduplicate inputs Andreas Rheinhardt
2023-11-03 11:11 ` [FFmpeg-devel] [PATCH 01/11] avcodec/aactab: Deduplicate swb_offset_960 tabs Andreas Rheinhardt
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git