render: add color encoding and range to wlr_render_texture_options

This commit is contained in:
Simon Ser 2025-10-28 20:44:00 +01:00 committed by Simon Zeni
parent 378a491823
commit 2a87ec8a35
2 changed files with 6 additions and 0 deletions

View file

@ -107,6 +107,10 @@ struct wlr_render_texture_options {
enum wlr_color_transfer_function transfer_function;
/* Primaries describing the color volume of the source texture */
const struct wlr_color_primaries *primaries;
/* Color encoding of the source texture for YCbCr conversion to RGB */
enum wlr_color_encoding color_encoding;
/* Color range of the source texture */
enum wlr_color_range color_range;
/* Wait for a timeline synchronization point before texturing.
*

View file

@ -29,6 +29,8 @@ struct wlr_renderer {
// Capabilities required for the buffer used as a render target (bitmask of
// enum wlr_buffer_cap)
uint32_t render_buffer_caps;
// Supported color encodings for YCbCr textures
uint32_t color_encodings; // bitmask of enum wlr_color_encoding
struct {
struct wl_signal destroy;