From 8a9c0fe05d5ca2fdcd9d3342e6dcdf362434115b Mon Sep 17 00:00:00 2001 From: llyyr Date: Mon, 6 Oct 2025 11:00:30 +0530 Subject: [PATCH] wayland: log color-representation information as well --- video/out/wayland_common.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 0c7be07cba..d03319ea80 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -3551,14 +3551,23 @@ static void set_color_representation(struct vo_wayland_state *wl) wl->range_map[repr.sys + PL_COLOR_SYSTEM_COUNT]; int chroma_location = map_supported_chroma_location(wl->target_params.chroma_location); - if (coefficients && range) + MP_VERBOSE(wl, "Setting color representation:\n"); + if (coefficients && range) { + MP_VERBOSE(wl, " Coefficients: %s, Range: %s\n", + m_opt_choice_str(pl_csp_names, repr.sys), + m_opt_choice_str(pl_csp_levels_names, repr.levels)); wp_color_representation_surface_v1_set_coefficients_and_range(wl->color_representation_surface, coefficients, range); + } - if (alpha) + if (alpha) { + MP_VERBOSE(wl, " Alpha mode: %s\n", m_opt_choice_str(pl_alpha_names, repr.alpha)); wp_color_representation_surface_v1_set_alpha_mode(wl->color_representation_surface, alpha); + } - if (chroma_location) + if (chroma_location) { + MP_VERBOSE(wl, " Chroma location: %s\n", m_opt_choice_str(pl_chroma_names, wl->target_params.chroma_location)); wp_color_representation_surface_v1_set_chroma_location(wl->color_representation_surface, chroma_location); + } #endif }