weston/libweston/color-lcms
Leandro Ribeiro e05b1e210c color-lcms: properly map power-law curves to tf
Before checking if our LittleCMS curve matches any of our known tf, we
need to map it to one of our well-known LINPOW or POWLIN.

We were doing that, but setting only the g param of the curve. a, b, c,
and d were not being set, resulting in a mismatch when comparing the
curve parameters with the ones in our tf's. As we were not finding any
match, we were always mapping the LittleCMS power-law to the parametric
power-law tf, even if the exponent was 2.2 or 2.4 (which have their own
tf's).

Now we properly set all the parameters before doing the check.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2026-05-13 10:21:33 +03:00
..
color-curve-segments.c color-lcms: optimize linear TRCs 2026-04-09 13:00:26 +00:00
color-curve-segments.h color-lcms: optimize linear TRCs 2026-04-09 13:00:26 +00:00
color-lcms.c color-lcms: extract HDR static metadata from profile 2026-04-16 13:46:22 +00:00
color-lcms.h color-lcms: switch default sRGB profile to parametric 2026-04-09 13:00:26 +00:00
color-profile.c color-lcms: switch default sRGB profile to parametric 2026-04-09 13:00:26 +00:00
color-transform.c color-lcms: properly map power-law curves to tf 2026-05-13 10:21:33 +03:00
color-transformer.c color-lcms: debug print the color transformer 2026-02-19 14:38:10 +02:00
meson.build color-lcms: add cmlcms_color_transformer 2026-02-19 14:38:10 +02:00