render/color: add wlr_color_transfer_function_get_default_luminance()

This commit is contained in:
Simon Ser 2025-02-26 08:58:15 +01:00
parent 50537e2e6f
commit 10b8880fc7
3 changed files with 33 additions and 0 deletions

View file

@ -42,6 +42,13 @@ struct wlr_color_primaries {
struct wlr_color_cie1931_xy red, green, blue, white;
};
/**
* Luminance range and reference white luminance level, in cd/m².
*/
struct wlr_color_luminances {
float min, max, reference;
};
/**
* A color transformation formula, which maps a linear color space with
* sRGB primaries to an output color space.