mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-10 04:27:51 -05:00
render/color: introduce wlr_color_transform_matrix
This is useful to perform color space conversions.
This commit is contained in:
parent
2984b011b6
commit
92ba6ffdf8
4 changed files with 33 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