mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 16:30:48 +08:00
perf(video): 优化 MJPEG 传输和 JPEG 编码
按 HTTP 消费进度读取最新帧并合并积压通知,复用帧缓冲区所有权,减少 MJPEG 传输和截图的数据复制。 在 JPEG 数据后立即发送下一帧的完整 multipart 头,减少静态画面的浏览器显示等待,并保留保活和客户端释放逻辑。 缓存相同原始帧的 JPEG 编码结果,在输入或画质变化时重新编码;按像素格式分配转换缓冲区,减少闲置内存。 补充缓冲区寿命、慢客户端、序列号重置、编码缓存和保活回归测试。
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
//! MJPEG multipart streaming and WebSocket HID (for MJPEG mode).
|
||||
|
||||
pub mod mjpeg;
|
||||
pub(crate) mod mjpeg_http;
|
||||
#[cfg(feature = "desktop")]
|
||||
pub mod ws_hid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user