[FFmpeg-devel] [PATCH v2 06/16] swscale/utils: add helper function to infer colorspace metadata
Michael Niedermayer
michael at niedermayer.cc
Wed Dec 11 02:55:44 EET 2024
Hi
On Fri, Dec 06, 2024 at 03:32:05PM +0100, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
>
> Logic is loosely on equivalent decisions in libplacebo. The basic idea is to try
> and be a bit conservative by treating AVCOL_*_UNSPECIFIED as a no-op, unless the
> other primaries set are non-standard / wide-gamut or HDR. This helps avoid
> unintended or unexpected colorspace conversions, while forcing it in cases where
> we are almost certain it is needed. The major departure from libplacebo semantics
> is that we no default to a 1000:1 contrast ration for SDR displays, instead modelling
> them as idealized devices with an infinite contrast ratio.
>
> In either case, setting SWS_STRICT overrides this behavior in favor of always
> requiring explicit colorspace metadata.
> ---
> libswscale/utils.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++
> libswscale/utils.h | 3 +++
> 2 files changed, 69 insertions(+)
should be ok
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241211/44fb6f6b/attachment.sig>
More information about the ffmpeg-devel
mailing list