kwin/src/colors
Xaver Hugl bea4d1064c core: add transfer function minimum and maximum luminance values
This redefines the transfer functions to have a custom luminance at encoded
value zero, and a custom luminance at encoded value 1, neither of which are
tied to the reference luminance, even for relative transfer functions.

The goal of that is that we can use a gamma 2.2 transfer function for the shadow
buffer, with the reference luminance being much lower than the maximum luminance.
For example, on an HDR screen you might have the reference luminance of 600 nits,
while the maximum luminance is 1000 nits. By representing this in gamma 2.2, we
can use a much smaller amount of bits per color to store the values than if we
used a linear transfer function. An additional benefit is that this way the values
in the buffer can be scaled by arbitrary amounts, for example to limit the range of
values to [0, 1], which can be represented in a normalized buffer
2024-08-09 15:10:45 +02:00
..
colordevice.cpp core: add transfer function minimum and maximum luminance values 2024-08-09 15:10:45 +02:00
colordevice.h colors/colordevice: remove brightness factor 2024-07-17 16:08:18 +00:00
colormanager.cpp There's no QVector anymore, QList is the QVector in Qt6 2023-10-19 13:43:53 +00:00
colormanager.h libkwineffects/ -> effect/ 2023-11-20 11:32:43 +00:00