render/color: Add wlr_color_transform_create_from_gamma_lut

This commit is contained in:
Alexander Orzechowski 2024-08-24 18:52:17 -04:00
parent 3a5dd80d20
commit d4b4a3e57e
2 changed files with 37 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#define WLR_RENDER_COLOR_H
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
/**
@ -52,4 +53,10 @@ struct wlr_color_transform *wlr_color_transform_ref(struct wlr_color_transform *
*/
void wlr_color_transform_unref(struct wlr_color_transform *tr);
/**
* Creates a color transform based on a gamma ramp.
*/
struct wlr_color_transform *wlr_color_transform_create_from_gamma_lut(
size_t ramp_size, const uint16_t *r, const uint16_t *g, const uint16_t *b);
#endif