weston/libweston/color-lcms
Pekka Paalanen 7c13c4a476 color-lcms: use sRGB EOTF
Initialize LittleCMS and use it to generate the sRGB EOTF and inverse
curves. Use these curves to define the blending color space as optical
(linear) sRGB by assuming that both content and output color spaces are
sRGB.

As a consequence, this causes Weston to do "gamma correct blending", as
in, blend in light linear space which should avoid distorting colors in
alpha gradients, when color-lcms is active.

This makes use of the 3x1D LUT support added in gl-renderer earlier, and
shows how the color manager is responsible for re-using existing color
transformation objects.

Co-authored-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2021-06-21 14:36:33 +00:00
..
color-lcms.c color-lcms: use sRGB EOTF 2021-06-21 14:36:33 +00:00
color-lcms.h color-lcms: use sRGB EOTF 2021-06-21 14:36:33 +00:00
color-transform.c color-lcms: use sRGB EOTF 2021-06-21 14:36:33 +00:00
meson.build color-lcms: use sRGB EOTF 2021-06-21 14:36:33 +00:00