mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-05-18 11:01:50 +00:00
Player: switch to gpu-next defaults
Some checks are pending
Continuous integration / test (push) Waiting to run
Some checks are pending
Continuous integration / test (push) Waiting to run
This commit is contained in:
parent
bbbe882faf
commit
3d5bf9795c
1 changed files with 13 additions and 1 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue