render/color: add wlr_color_primaries_transform_absolute_colorimetric

This commit is contained in:
Félix Poisot 2025-11-01 15:15:51 +00:00 committed by Simon Ser
parent 9b9d7d845d
commit 17f3f28865
3 changed files with 22 additions and 16 deletions

View file

@ -165,4 +165,11 @@ void wlr_color_transform_unref(struct wlr_color_transform *tr);
void wlr_color_transform_eval(struct wlr_color_transform *tr,
float out[static 3], const float in[static 3]);
/**
* Compute the matrix to convert between two linear RGB color spaces
*/
void wlr_color_primaries_transform_absolute_colorimetric(
const struct wlr_color_primaries *source,
const struct wlr_color_primaries *destination, float matrix[static 9]);
#endif