firefox playing hdr youtube renders the desktop in linear scrgb, and capturing it as bgra8 clamps the >1.0 highlights to pure white. capture in r16g16b16a16_float instead and run a hable filmic + bt709 pixel shader directly on the captured d3d11 texture (which windows-capture already exposes via frame.as_raw_texture), then read back bgra8 so the ffmpeg pipe stays unchanged from the sdr path. the shader is compiled offline with fxc at build time and embedded. the fullscreen-triangle draw needs an explicit cull-none rasterizer state since the default back-face cull silently drops it.
47 lines
1.7 KiB
TOML
47 lines
1.7 KiB
TOML
[package]
|
|
name = "bytesize"
|
|
version = "0.1.0"
|
|
description = "Portable Windows screen-to-clip recorder"
|
|
authors = ["lashman <lashman@robotbrush.com>"]
|
|
edition = "2021"
|
|
rust-version = "1.94"
|
|
|
|
[lib]
|
|
name = "bytesize_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2.11", features = ["protocol-asset"] }
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-global-shortcut = "2"
|
|
windows-capture = "2.0"
|
|
windows = { version = "0.62", features = ["Win32_UI_WindowsAndMessaging", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_HiDpi", "Win32_Foundation", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common", "Win32_System_SystemInformation", "Win32_Media_Audio", "Win32_Media_Multimedia", "Win32_System_Com", "Win32_System_Com_StructuredStorage", "Win32_System_Threading", "Win32_System_Variant"] }
|
|
tokio = { version = "1.47", features = ["rt-multi-thread", "macros"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
toml = "0.9"
|
|
anyhow = "1.0"
|
|
reqwest = { version = "0.13", default-features = false, features = ["native-tls", "stream"] }
|
|
futures-util = "0.3"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
sevenz-rust2 = "0.21"
|
|
zip = { version = "2", default-features = false, features = ["deflate"] }
|
|
|
|
[features]
|
|
default = ["custom-protocol"]
|
|
custom-protocol = ["tauri/custom-protocol"]
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = "s"
|
|
strip = true
|