Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -193,13 +193,6 @@ static av_cold int init(AVFilterContext *ctx) · 192 unmodified lines | ||
| 193 | 193 | return 0; |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | −static int query_formats(AVFilterContext *ctx) | |
| 197 | −{ | |
| 198 | − // Some of the functions provided by lensfun require pixels in RGB format | |
| 199 | − static const enum AVPixelFormat fmts[] = {AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE}; | |
| 200 | − return ff_set_common_formats_from_list(ctx, fmts); | |
| 201 | −} | |
| 202 | − | |
| 203 | 196 | static float lanczos_kernel(float x) |
| 204 | 197 | { |
| 205 | 198 | if (x == 0.0f) { |
| @@ -536,7 +529,7 @@ const AVFilter ff_vf_lensfun = { · 330 unmodified lines | ||
| 536 | 529 | .uninit = uninit, |
| 537 | 530 | FILTER_INPUTS(lensfun_inputs), |
| 538 | 531 | FILTER_OUTPUTS(lensfun_outputs), |
| 539 | − FILTER_QUERY_FUNC(query_formats), | |
| 532 | + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24), | |
| 540 | 533 | .priv_class = &lensfun_class, |
| 541 | 534 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 542 | 535 | }; |