mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
Merge branch 'bt709' into 'master'
Consistently use BT.709 encoding for YUV->RGB See merge request wlroots/wlroots!5067
This commit is contained in:
commit
e55bf74acc
6 changed files with 56 additions and 5 deletions
|
|
@ -65,6 +65,18 @@ struct wlr_drm_plane_props {
|
|||
uint32_t hotspot_x;
|
||||
uint32_t hotspot_y;
|
||||
uint32_t in_fence_fd;
|
||||
|
||||
uint32_t color_encoding; // Not guaranteed to exist
|
||||
};
|
||||
|
||||
/*
|
||||
* The encoding and range enums are defined in the kernel but not
|
||||
* exposed in public headers.
|
||||
*/
|
||||
enum drm_color_encoding {
|
||||
DRM_COLOR_YCBCR_BT601,
|
||||
DRM_COLOR_YCBCR_BT709,
|
||||
DRM_COLOR_YCBCR_BT2020,
|
||||
};
|
||||
|
||||
bool get_drm_connector_props(int fd, uint32_t id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue