mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-18 05:34:29 -04:00
render: add color encoding and range to wlr_render_texture_options
This commit is contained in:
parent
378a491823
commit
2a87ec8a35
2 changed files with 6 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ struct wlr_render_texture_options {
|
||||||
enum wlr_color_transfer_function transfer_function;
|
enum wlr_color_transfer_function transfer_function;
|
||||||
/* Primaries describing the color volume of the source texture */
|
/* Primaries describing the color volume of the source texture */
|
||||||
const struct wlr_color_primaries *primaries;
|
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.
|
/* Wait for a timeline synchronization point before texturing.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ struct wlr_renderer {
|
||||||
// Capabilities required for the buffer used as a render target (bitmask of
|
// Capabilities required for the buffer used as a render target (bitmask of
|
||||||
// enum wlr_buffer_cap)
|
// enum wlr_buffer_cap)
|
||||||
uint32_t render_buffer_caps;
|
uint32_t render_buffer_caps;
|
||||||
|
// Supported color encodings for YCbCr textures
|
||||||
|
uint32_t color_encodings; // bitmask of enum wlr_color_encoding
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct wl_signal destroy;
|
struct wl_signal destroy;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue