From 4c24eae220d906dab7fb2189bcc80a55620af7dd Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 15 Oct 2024 13:36:04 -0500 Subject: [PATCH] wayland: map BT.1886 to BT.709 for color-management protocol Fixes #14592 as long as the compositor supports it. --- video/out/wayland_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 998fc9ea26..65037e890c 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1292,6 +1292,9 @@ static void supported_tf_named(void *data, struct xx_color_manager_v4 *color_man struct vo_wayland_state *wl = data; switch (tf) { + case XX_COLOR_MANAGER_V4_TRANSFER_FUNCTION_BT709: + wl->transfer_map[PL_COLOR_TRC_BT_1886] = XX_COLOR_MANAGER_V4_TRANSFER_FUNCTION_BT709; + break; case XX_COLOR_MANAGER_V4_TRANSFER_FUNCTION_SRGB: wl->transfer_map[PL_COLOR_TRC_SRGB] = XX_COLOR_MANAGER_V4_TRANSFER_FUNCTION_SRGB; break;