Unified · Split
| @@ -56,8 +56,6 @@ typedef struct DedotContext { · 55 unmodified lines | ||
| 56 | 56 | int (*derainbow)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); |
| 57 | 57 | } DedotContext; |
| 58 | 58 | |
| 59 | −static int query_formats(AVFilterContext *ctx) | |
| 60 | −{ | |
| 61 | 59 | static const enum AVPixelFormat pixel_fmts[] = { |
| 62 | 60 | AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, |
| 63 | 61 | AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, |
| @@ -75,8 +73,6 @@ static int query_formats(AVFilterContext *ctx) · 11 unmodified lines | ||
| 75 | 73 | AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_YUVA422P16, AV_PIX_FMT_YUVA444P16, |
| 76 | 74 | AV_PIX_FMT_NONE |
| 77 | 75 | }; |
| 78 | − return ff_set_common_formats_from_list(ctx, pixel_fmts); | |
| 79 | −} | |
| 80 | 76 | |
| 81 | 77 | #define DEFINE_DEDOTCRAWL(name, type, div) \ |
| 82 | 78 | static int dedotcrawl##name(AVFilterContext *ctx, void *arg, \ |
| @@ -405,6 +401,6 @@ const AVFilter ff_vf_dedot = { · 322 unmodified lines | ||
| 405 | 401 | .uninit = uninit, |
| 406 | 402 | FILTER_INPUTS(inputs), |
| 407 | 403 | FILTER_OUTPUTS(outputs), |
| 408 | − FILTER_QUERY_FUNC(query_formats), | |
| 404 | + FILTER_PIXFMTS_ARRAY(pixel_fmts), | |
| 409 | 405 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |
| 410 | 406 | }; |