Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -66,8 +66,6 @@ static const AVOption bilateral_options[] = { · 65 unmodified lines | ||
| 66 | 66 | |
| 67 | 67 | AVFILTER_DEFINE_CLASS(bilateral); |
| 68 | 68 | |
| 69 | −static int query_formats(AVFilterContext *ctx) | |
| 70 | −{ | |
| 71 | 69 | static const enum AVPixelFormat pix_fmts[] = { |
| 72 | 70 | AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, |
| 73 | 71 | AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, |
| @@ -89,9 +87,6 @@ static int query_formats(AVFilterContext *ctx) · 15 unmodified lines | ||
| 89 | 87 | AV_PIX_FMT_NONE |
| 90 | 88 | }; |
| 91 | 89 | |
| 92 | − return ff_set_common_formats_from_list(ctx, pix_fmts); | |
| 93 | −} | |
| 94 | − | |
| 95 | 90 | static int config_params(AVFilterContext *ctx) |
| 96 | 91 | { |
| 97 | 92 | BilateralContext *s = ctx->priv; |
| @@ -385,7 +380,7 @@ const AVFilter ff_vf_bilateral = { · 287 unmodified lines | ||
| 385 | 380 | .uninit = uninit, |
| 386 | 381 | FILTER_INPUTS(bilateral_inputs), |
| 387 | 382 | FILTER_OUTPUTS(bilateral_outputs), |
| 388 | − FILTER_QUERY_FUNC(query_formats), | |
| 383 | + FILTER_PIXFMTS_ARRAY(pix_fmts), | |
| 389 | 384 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 390 | 385 | .process_command = process_command, |
| 391 | 386 | }; |