mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-21 05:34:09 -04:00
backend/drm: Add color_range/encoding properties
Add the following optional DRM properties, for use by the color-representation-v1 protocol: - COLOR_ENCODING - COLOR_RANGE
This commit is contained in:
parent
80bcef908b
commit
dca0703dac
2 changed files with 18 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ static const struct prop_info crtc_info[] = {
|
|||
|
||||
static const struct prop_info plane_info[] = {
|
||||
#define INDEX(name) (offsetof(struct wlr_drm_plane_props, name) / sizeof(uint32_t))
|
||||
{ "COLOR_ENCODING", INDEX(color_encoding) },
|
||||
{ "COLOR_RANGE", INDEX(color_range) },
|
||||
{ "CRTC_H", INDEX(crtc_h) },
|
||||
{ "CRTC_ID", INDEX(crtc_id) },
|
||||
{ "CRTC_W", INDEX(crtc_w) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue