diff options
author | Niklas Haas <git@haasn.dev> | 2024-11-28 13:49:23 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-12-23 12:33:43 +0100 |
commit | 1f0c5007840932b30c162982219750f8c9ed89c7 (patch) | |
tree | a34475d39aac1009c6337afeb987fc9b741c102f /doc/APIchanges | |
parent | 9084d581e8e5196b661d2841b45a9e773a1378a4 (diff) | |
download | ffmpeg-1f0c5007840932b30c162982219750f8c9ed89c7.tar.gz |
swscale/utils: add helper function to infer colorspace metadata
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.
Diffstat (limited to 'doc/APIchanges')
0 files changed, 0 insertions, 0 deletions