mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-05 04:06:11 -05:00
scene: add support for color encoding and range
This commit is contained in:
parent
e8f9e9eea6
commit
2fbc0b5ac1
2 changed files with 35 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue