summaryrefslogtreecommitdiff
path: root/libavfilter/vf_perspective.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:16:03 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:26 +0200
commit39e06e403ab4e0c59bbc5911e4b1ef8e379c9562 (patch)
treeefeef783340623ab08092a99482252d55d5ba78f /libavfilter/vf_perspective.c
parent38712d340df07dfa490790a8a29f729623ea7d54 (diff)
avfilter/vf_perspective: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_perspective.c')
-rw-r--r--libavfilter/vf_perspective.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_perspective.c b/libavfilter/vf_perspective.c
index 216674d0d6..40a10185b2 100644
--- a/libavfilter/vf_perspective.c
+++ b/libavfilter/vf_perspective.c
@@ -94,8 +94,6 @@ static const AVOption perspective_options[] = {
AVFILTER_DEFINE_CLASS(perspective);
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUVA422P, AV_PIX_FMT_YUVA420P,
AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, AV_PIX_FMT_YUVJ422P,AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ411P,
@@ -103,9 +101,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static inline double get_coeff(double d)
{
double coeff, A = -0.60;
@@ -515,7 +510,7 @@ const AVFilter ff_vf_perspective = {
.uninit = uninit,
FILTER_INPUTS(perspective_inputs),
FILTER_OUTPUTS(perspective_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &perspective_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
};