mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-05 04:06:11 -05:00
render/color: introduce wlr_color_transform_matrix
This is useful to perform color space conversions.
This commit is contained in:
parent
17f3f28865
commit
2995f31102
3 changed files with 31 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue