【发布时间】:2012-03-05 14:32:12
【问题描述】:
我需要用 C 语言创建一个小型远程桌面软件,它可以在各种平台(linux、freebsd、windows...)上编译我一直在研究各种图像格式,但仍然无法实现想出一个使用它们的好主意,现在,我就是这样做的:
1. Convert All Formats into Windows Bitmap (XImage,...etc)
2. Do a byte-to-byte comparion and replace the identical bytes with zeros
3. Preform a RLE (Run Length Encoding) on the Resulted data.
4. Transmit the Packet to the Server
5. Inverse the Operation on the Server by Reconstructing the Image through the previous image (Comparing Last Image with the New one Discarding Zero Bytes after RLE)
但这往往会很慢,因为位图图像格式已经包含非常大的文件,因为它不包含压缩,并且在 Mac OS X 等平台上,由于非常高的分辨率,位图大小非常大。
有没有更快更好的方式进行桌面流式传输?
【问题讨论】:
-
为什么不使用开源的VNC?
-
没有作业,我编码为 hoppy
标签: c bitmap cross-platform screen-capture