wayland: map BT.1886 to BT.709 for color-management protocol

Fixes #14592 as long as the compositor supports it.
This commit is contained in:
Dudemanguy 2024-10-15 13:36:04 -05:00
parent f33b89ca29
commit 4c24eae220
1 changed files with 3 additions and 0 deletions

View File

@ -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;