mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 02:20:13 +01:00
Implement media white point scaling according to ICC.1:2022 (profile v4.4), section 6.3.2.2 "Translation between media-relative colorimetric data and ICC-absolute colorimetric data". This is a lot of code for something that, under the current circumstances, is a no-change. However, realizing that chromatic adaptation and media white point scaling are two separate adjustments was a revelation to me. I want to document in code how they work, even if the net result is no-op. The PCS white point is taken from ICC, it does not matter what non-zero point it is, the result will be the same. I did skip a bit the media white point scaling. One should first scale from in to PCS, and then from PCS to out. The code is mathematically equivalent. If some new operation needs to be done in between, this step than be split in two, just like I split the chromatic adaptation step in two in this patch. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> |
||
|---|---|---|
| .. | ||
| color-curve-segments.c | ||
| color-curve-segments.h | ||
| color-lcms.c | ||
| color-lcms.h | ||
| color-profile.c | ||
| color-transform.c | ||
| meson.build | ||