From cce65c722c797650df1bfe16ff42249a4d9fab48 Mon Sep 17 00:00:00 2001 From: llyyr Date: Wed, 27 May 2026 06:53:08 +0530 Subject: [PATCH] wayland: map ICtCp coefficients to BT.2100 HLG as well H.273 defines a single ICtCp matrix coefficients for both BT.2100 PQ and HLG. --- video/out/wayland_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 6eadcd4188..f60f9dad18 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2434,6 +2434,8 @@ static void supported_coefficients_and_ranges(void *data, struct wp_color_repres case WP_COLOR_REPRESENTATION_SURFACE_V1_COEFFICIENTS_ICTCP: wl->coefficients_map[PL_COLOR_SYSTEM_BT_2100_PQ] = WP_COLOR_REPRESENTATION_SURFACE_V1_COEFFICIENTS_ICTCP; wl->range_map[PL_COLOR_SYSTEM_BT_2100_PQ + offset] = range; + wl->coefficients_map[PL_COLOR_SYSTEM_BT_2100_HLG] = WP_COLOR_REPRESENTATION_SURFACE_V1_COEFFICIENTS_ICTCP; + wl->range_map[PL_COLOR_SYSTEM_BT_2100_HLG + offset] = range; break; } }