mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-23 03:16:40 +08:00
perf: 编码器探测测试分辨率由 1080p 调整为 720p
This commit is contained in:
@@ -276,12 +276,12 @@ impl EncoderRegistry {
|
|||||||
|
|
||||||
/// Get the global registry instance
|
/// Get the global registry instance
|
||||||
///
|
///
|
||||||
/// The registry is initialized lazily on first access with 1920x1080 detection.
|
/// The registry is initialized lazily on first access with 1280x720 detection.
|
||||||
pub fn global() -> &'static Self {
|
pub fn global() -> &'static Self {
|
||||||
static INSTANCE: OnceLock<EncoderRegistry> = OnceLock::new();
|
static INSTANCE: OnceLock<EncoderRegistry> = OnceLock::new();
|
||||||
INSTANCE.get_or_init(|| {
|
INSTANCE.get_or_init(|| {
|
||||||
let mut registry = EncoderRegistry::new();
|
let mut registry = EncoderRegistry::new();
|
||||||
registry.detect_encoders(1920, 1080);
|
registry.detect_encoders(1280, 720);
|
||||||
registry
|
registry
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user