Files
proton-stream/crates/pstr-app/Cargo.toml
nvrl 6e87051bbd perf(desktop): give mpv the display so VAAPI can hand frames to GL
mpv's render API needs the windowing system's display connection to set
up hardware decoding that hands frames to GL on Intel and AMD
(render_gl.h: MPV_RENDER_PARAM_WL_DISPLAY / X11_DISPLAY). The render
context was created with neither, so hwdec=auto-safe fell back to
software decoding or copied every frame back to system memory.

The display under eframe's window is now passed through VideoSurface
into VideoRenderer, and the decoder in use is logged once per file as
hwdec-current.

B76.
2026-11-28 19:25:03 +01:00

56 lines
1.6 KiB
TOML

[package]
name = "pstr-app"
description = "The proton-stream desktop application."
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
authors.workspace = true
[[bin]]
name = "proton-stream"
path = "src/main.rs"
[dependencies]
pstr-core.workspace = true
pstr-meta.workspace = true
pstr-stream.workspace = true
pstr-player.workspace = true
tokio.workspace = true
futures.workspace = true
anyhow.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
eframe.workspace = true
# The display connection under eframe's window: mpv needs it on Linux for
# hardware decoding that hands frames to GL, and SMTC needs the window on Windows.
raw-window-handle = "0.6"
egui.workspace = true
egui-phosphor.workspace = true
# The parser egui reads fonts with, to check a system font before handing it over.
skrifa.workspace = true
image.workspace = true
sha2.workspace = true
parking_lot.workspace = true
serde.workspace = true
serde_json.workspace = true
directories.workspace = true
chrono.workspace = true
souvlaki.workspace = true
wry.workspace = true
tao.workspace = true
[build-dependencies]
embed-resource.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
dbus.workspace = true
[target.'cfg(windows)'.dependencies]
# Named pipes, for handing a second launch's request to the open window.
tokio = { workspace = true, features = ["net"] }
windows-sys = { workspace = true, features = ["Win32_System_Power", "Win32_System_Registry"] }
tauri-winrt-notification.workspace = true