diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:12:52 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | 5715c64435a3be155f42bf12432c8caadea0b5b5 (patch) | |
tree | 8c1c6eb38845f3798451711217ceb85332c47b22 | |
parent | 2d8a434db52bcaf3a8a084b0fd88686e2a3ad2cd (diff) |
avfilter/vf_deblock: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_deblock.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_deblock.c b/libavfilter/vf_deblock.c index 809e004ae9..275d916270 100644 --- a/libavfilter/vf_deblock.c +++ b/libavfilter/vf_deblock.c @@ -61,8 +61,6 @@ typedef struct DeblockContext { int ath, int bth, int gth, int dth, int max); } DeblockContext; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, @@ -84,8 +82,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} #define WEAK_HFILTER(name, type, ldiv) \ static void deblockh##name##_weak(uint8_t *dstp, ptrdiff_t dst_linesize, int block, \ @@ -417,7 +413,7 @@ const AVFilter ff_vf_deblock = { .priv_class = &deblock_class, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .process_command = process_command, }; |