From ecf046a92db7ccd99d29a08b39ab707ae7cb7d19 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Wed, 3 Dec 2025 09:20:37 +0100 Subject: [PATCH] feat(linux): tone map --- linux/runner/mpv/mpv_player.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux/runner/mpv/mpv_player.cc b/linux/runner/mpv/mpv_player.cc index 7aae6e2a..0c7c994c 100644 --- a/linux/runner/mpv/mpv_player.cc +++ b/linux/runner/mpv/mpv_player.cc @@ -70,6 +70,11 @@ bool MpvPlayer::Initialize(GtkGLArea* gl_area) { mpv_set_option_string(mpv_, "vo", "libmpv"); // Render via mpv_render_context_render() mpv_set_option_string(mpv_, "hwdec", "auto"); mpv_set_option_string(mpv_, "keep-open", "yes"); + + // HDR tone mapping - ensures HDR content is properly converted to SDR + mpv_set_option_string(mpv_, "tone-mapping", "auto"); + mpv_set_option_string(mpv_, "target-colorspace-hint", "no"); + mpv_set_option_string(mpv_, "hdr-compute-peak", "auto"); mpv_set_option_string(mpv_, "idle", "yes"); mpv_set_option_string(mpv_, "input-default-bindings", "no"); mpv_set_option_string(mpv_, "input-vo-keyboard", "no");