Player: switch to gpu-next defaults
Some checks are pending
Continuous integration / test (push) Waiting to run

This commit is contained in:
Timothy Z. 2026-05-11 01:43:19 +03:00
parent bbbe882faf
commit 3d5bf9795c

View file

@ -76,7 +76,19 @@ fn create_shareable_mpv(window_handle: HWND) -> Arc<Mpv> {
set_property!("msg-level", "all=no");
set_property!("quiet", "yes");
set_property!("hwdec", "auto");
// set_property!("vo", "gpu-next,");
// gpu-next: libplacebo VO with modern HDR tone-mapping; gpu, is the fallback.
set_property!("vo", "gpu-next,gpu,");
for (name, value) in [
("tone-mapping", "bt.2390"),
("dither-depth", "auto"),
("deband", "yes"),
("scale", "spline36"),
("cscale", "spline36"),
] {
if let Err(error) = initializer.set_property(name, value) {
eprintln!("mpv: cannot set {name}={value}: {error:?}");
}
}
Ok(())
});
Arc::new(mpv.expect("cannot build MPV"))