mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-08 10:06:28 -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
|
|
@ -141,6 +141,12 @@ struct wlr_color_transform *wlr_color_transform_init_linear_to_inverse_eotf(
|
|||
struct wlr_color_transform *wlr_color_transform_init_lut_3x1d(size_t dim,
|
||||
const uint16_t *r, const uint16_t *g, const uint16_t *b);
|
||||
|
||||
/**
|
||||
* Initialize a color transformation to apply a 3×3 matrix. Returns NULL on
|
||||
* failure.
|
||||
*/
|
||||
struct wlr_color_transform *wlr_color_transform_init_matrix(const float matrix[static 9]);
|
||||
|
||||
/**
|
||||
* Initialize a color transformation to apply a sequence of color transforms
|
||||
* one after another.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue