render/color: make wlr_color_primaries_from_named public

This commit is contained in:
Félix Poisot 2025-12-05 19:14:49 +00:00
parent c45b3b1f5f
commit a962d58727
2 changed files with 6 additions and 6 deletions

View file

@ -87,12 +87,6 @@ struct wlr_color_transform_inverse_eotf *wlr_color_transform_inverse_eotf_from_b
struct wlr_color_transform_lut_3x1d *color_transform_lut_3x1d_from_base( struct wlr_color_transform_lut_3x1d *color_transform_lut_3x1d_from_base(
struct wlr_color_transform *tr); struct wlr_color_transform *tr);
/**
* Obtain primaries values from a well-known primaries name.
*/
void wlr_color_primaries_from_named(struct wlr_color_primaries *out,
enum wlr_color_named_primaries named);
/** /**
* Compute the matrix to convert RGB color values to CIE 1931 XYZ. * Compute the matrix to convert RGB color values to CIE 1931 XYZ.
*/ */

View file

@ -171,6 +171,12 @@ void wlr_color_transform_unref(struct wlr_color_transform *tr);
void wlr_color_transform_eval(struct wlr_color_transform *tr, void wlr_color_transform_eval(struct wlr_color_transform *tr,
float out[static 3], const float in[static 3]); float out[static 3], const float in[static 3]);
/**
* Obtain primaries values from a well-known primaries name.
*/
void wlr_color_primaries_from_named(struct wlr_color_primaries *out,
enum wlr_color_named_primaries named);
/** /**
* Compute the matrix to convert between two linear RGB color spaces * Compute the matrix to convert between two linear RGB color spaces
*/ */