mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 16:50:41 +01:00
Offer H.265 (RFC 7798) next to H.264 and list H.265 and 4:4:4 decoder caps; the host picks the codec. Depacketize single NAL, AP and FU units with the existing reorder/loss handling and decode with the ffmpeg CLI (-f hevc). UU_VIEWER_CHROMA=444 requests true color via CaptureSettingRequest field 7 and follows CaptureSettingSync; UU_VIEWER_CODEC=h264 keeps H.264 only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
38 lines
928 B
Rust
38 lines
928 B
Rust
//! Opt-in controller session; independent of the host room and peer lifecycle.
|
|
pub mod api;
|
|
pub mod assist;
|
|
pub mod wire;
|
|
pub mod signal;
|
|
pub mod rtc;
|
|
pub mod session;
|
|
#[cfg(test)] mod tests;
|
|
|
|
pub mod media;
|
|
pub mod audio;
|
|
pub mod input;
|
|
pub mod desktop;
|
|
#[cfg(feature="viewer-ffmpeg")] pub mod decoder;
|
|
#[cfg(any(test,feature="viewer-sdl"))] pub mod decoder_cli;
|
|
#[cfg(uu_gtk)] pub mod ui;
|
|
#[cfg(uu_gtk)] pub mod tools_ui;
|
|
#[cfg(feature="viewer-sdl")] pub mod sdl;
|
|
|
|
pub mod tools;
|
|
|
|
pub mod clipboard;
|
|
pub mod power;
|
|
|
|
fn device_label(name:Option<&str>)->&str{
|
|
name.filter(|name|!name.is_empty()).unwrap_or("远端设备")
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod device_label_tests {
|
|
#[test]
|
|
fn device_name_or_fallback(){
|
|
assert_eq!(super::device_label(Some("测试电脑")),"测试电脑");
|
|
assert_eq!(super::device_label(None),"远端设备");
|
|
assert_eq!(super::device_label(Some("")),"远端设备");
|
|
}
|
|
}
|