scene: add support for color encoding and range

This commit is contained in:
Simon Ser 2025-10-28 20:45:41 +01:00 committed by Simon Zeni
parent e8f9e9eea6
commit 2fbc0b5ac1
2 changed files with 35 additions and 0 deletions

View file

@ -197,6 +197,8 @@ struct wlr_scene_buffer {
pixman_region32_t opaque_region;
enum wlr_color_transfer_function transfer_function;
enum wlr_color_named_primaries primaries;
enum wlr_color_encoding color_encoding;
enum wlr_color_range color_range;
struct {
uint64_t active_outputs;
@ -564,6 +566,12 @@ void wlr_scene_buffer_set_transfer_function(struct wlr_scene_buffer *scene_buffe
void wlr_scene_buffer_set_primaries(struct wlr_scene_buffer *scene_buffer,
enum wlr_color_named_primaries primaries);
void wlr_scene_buffer_set_color_encoding(struct wlr_scene_buffer *scene_buffer,
enum wlr_color_encoding encoding);
void wlr_scene_buffer_set_color_range(struct wlr_scene_buffer *scene_buffer,
enum wlr_color_range range);
/**
* Calls the buffer's frame_done signal.
*/