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 | return 0; | 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 | static float lanczos_kernel(float x) | 196 | static float lanczos_kernel(float x) |
| 204 | { | 197 | { |
| 205 | if (x == 0.0f) { | 198 | if (x == 0.0f) { |
| @@ -536,7 +529,7 @@ const AVFilter ff_vf_lensfun = { · 330 unmodified lines | |||
| 536 | .uninit = uninit, | 529 | .uninit = uninit, |
| 537 | FILTER_INPUTS(lensfun_inputs), | 530 | FILTER_INPUTS(lensfun_inputs), |
| 538 | FILTER_OUTPUTS(lensfun_outputs), | 531 | FILTER_OUTPUTS(lensfun_outputs), |
| 539 | FILTER_QUERY_FUNC(query_formats), | 532 | FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24), |
| 540 | .priv_class = &lensfun_class, | 533 | .priv_class = &lensfun_class, |
| 541 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, | 534 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 542 | }; | 535 | }; |