diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 16:34:32 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:24 +0200 |
commit | a4722a4aa0b62d92fb0494217898e0306b988322 (patch) | |
tree | 0b2926ec7ab7e2f07bbbececfde43842e971c7df /libavfilter | |
parent | 5237a29d05aac51742588406fbbe791f61cd4630 (diff) | |
download | ffmpeg-a4722a4aa0b62d92fb0494217898e0306b988322.tar.gz |
avfilter/vf_tonemap: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_tonemap.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c index 51f56c7386..363df8034b 100644 --- a/libavfilter/vf_tonemap.c +++ b/libavfilter/vf_tonemap.c @@ -71,17 +71,6 @@ typedef struct TonemapContext { const struct LumaCoefficients *coeffs; } TonemapContext; -static const enum AVPixelFormat pix_fmts[] = { - AV_PIX_FMT_GBRPF32, - AV_PIX_FMT_GBRAPF32, - AV_PIX_FMT_NONE, -}; - -static int query_formats(AVFilterContext *ctx) -{ - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static av_cold int init(AVFilterContext *ctx) { TonemapContext *s = ctx->priv; @@ -341,6 +330,6 @@ const AVFilter ff_vf_tonemap = { .priv_class = &tonemap_class, FILTER_INPUTS(tonemap_inputs), FILTER_OUTPUTS(tonemap_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32), .flags = AVFILTER_FLAG_SLICE_THREADS, }; |