You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/vf_dedot: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -56,8 +56,6 @@ typedef struct DedotContext {
|
||||
int (*derainbow)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
|
||||
} DedotContext;
|
||||
|
||||
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,
|
||||
@@ -75,8 +73,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_YUVA422P16, AV_PIX_FMT_YUVA444P16,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
return ff_set_common_formats_from_list(ctx, pixel_fmts);
|
||||
}
|
||||
|
||||
#define DEFINE_DEDOTCRAWL(name, type, div) \
|
||||
static int dedotcrawl##name(AVFilterContext *ctx, void *arg, \
|
||||
@@ -405,6 +401,6 @@ const AVFilter ff_vf_dedot = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(inputs),
|
||||
FILTER_OUTPUTS(outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pixel_fmts),
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
|
||||
};
|
||||
|
Reference in New Issue
Block a user