[FFmpeg-devel] [PATCH 07/25] vf_scale: use colorspace negotiation API
Anton Khirnov
anton at khirnov.net
Thu Dec 7 18:02:34 EET 2023
Quoting Niklas Haas (2023-11-09 13:19:39)
> From: Niklas Haas <git at haasn.dev>
>
> This filter will always accept any input format, even if the user sets
> a specific in_range/in_color_matrix. This is to preserve status quo with
> current behavior, where passing a specific in_color_matrix merely
> overrides the incoming frames' attributes. (Use `vf_format` to force
> a specific input range)
>
> Because changing colorspace and color_range now requires reconfiguring
> the link, we can lift sws_setColorspaceDetails out of scale_frame and
> into config_props. (This will also get re-called if the input frame
> properties change)
> ---
> libavfilter/vf_scale.c | 188 ++++++++++++++++++++++-------------------
> 1 file changed, 103 insertions(+), 85 deletions(-)
Can't say I understand all the code in detail, but looks generally
reasonable.
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list