render/color: introduce wlr_color_transform_matrix

This is useful to perform color space conversions.
This commit is contained in:
Simon Ser 2025-10-28 18:37:37 +01:00
parent 17f3f28865
commit 2995f31102
3 changed files with 31 additions and 1 deletions

View file

@ -9,6 +9,7 @@ enum wlr_color_transform_type {
COLOR_TRANSFORM_INVERSE_EOTF,
COLOR_TRANSFORM_LCMS2,
COLOR_TRANSFORM_LUT_3X1D,
COLOR_TRANSFORM_MATRIX,
COLOR_TRANSFORM_PIPELINE,
};
@ -40,6 +41,12 @@ struct wlr_color_transform_lut_3x1d {
size_t dim;
};
struct wlr_color_transform_matrix {
struct wlr_color_transform base;
float matrix[9];
};
struct wlr_color_transform_pipeline {
struct wlr_color_transform base;