summaryrefslogtreecommitdiff
path: root/libavfilter/vf_bm3d.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 23:32:27 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:29 +0200
commit5f2e8fc4c8e831fc2fa231ed145ea3bcbaa6239e (patch)
tree6ce02dae10c67cdba7f97eacd3f2fc53ff3541e9 /libavfilter/vf_bm3d.c
parent78f5f8a20f842eb6843986653d31aae84a58c8f2 (diff)
avfilter/vf_bm3d: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_bm3d.c')
-rw-r--r--libavfilter/vf_bm3d.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c
index 46f4c65676..5db53c68d8 100644
--- a/libavfilter/vf_bm3d.c
+++ b/libavfilter/vf_bm3d.c
@@ -160,8 +160,6 @@ static const AVOption bm3d_options[] = {
AVFILTER_DEFINE_CLASS(bm3d);
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10,
AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16,
@@ -188,9 +186,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int do_search_boundary(int pos, int plane_boundary, int search_range, int search_step)
{
int search_boundary;
@@ -1055,7 +1050,7 @@ const AVFilter ff_vf_bm3d = {
.activate = activate,
.inputs = NULL,
FILTER_OUTPUTS(bm3d_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &bm3d_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_DYNAMIC_INPUTS |