diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2021-07-12 17:30:06 +0300 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2022-05-02 12:19:24 +0000 |
commit | 1d17e4991f37feb67e63fbde67b5e02a44058f16 (patch) | |
tree | 04b351b13031c08d288bb16bd4febf6499f86d29 /libweston/color.h | |
parent | 6914064066b95cd65883c2c987c5f80f0a48b910 (diff) |
backend-drm: check for HDR_OUTPUT_METADATA
Check whether HDR_OUTPUT_METADATA property exists on a KMS connector. If
yes, pretend that EDID claims support for all EOTF modes and update the
head supported EOTFs mask accordingly. If not, then only SDR is
possible.
Parsing EDID to take monitor capabilities into account is left for
later.
HDR mode cannot be set without HDR_OUTPUT_METADATA.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Diffstat (limited to 'libweston/color.h')
-rw-r--r-- | libweston/color.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libweston/color.h b/libweston/color.h index 4db42e71..7c1335fa 100644 --- a/libweston/color.h +++ b/libweston/color.h @@ -382,4 +382,7 @@ weston_color_manager_create(struct weston_compositor *compositor); const char * weston_eotf_mode_to_str(enum weston_eotf_mode e); +char * +weston_eotf_mask_to_str(uint32_t eotf_mask); + #endif /* WESTON_COLOR_H */ |