For fast and efficient Remote Desktop
Used for Remote Desktop streaming purposes to acheive 60 FPS and above by sending the changed regions (delta’s) that can be represented in a blocks, the block size can be determined by the user.
Block Size | Pixel Size (bytes) | Pixel Format | Internet Speed |
---|---|---|---|
120 | 4 | RGBA | 120 Mbps + |
60 | 4 | RGBA | 80 Mbps |
30 | 4 | RGBA | 60 Mbps |
120 | 3 | RGB | 100 MBps |
60 | 3 | RGB | 60 Mbps |
30 | 3 | RGB | 50 Mbps |
Maximum block size can be up to 200, any more than that it would be redundant.
private Codec.Encoder encoder = new Codec.Encoder();
private Codec.Decoder decoder = new Codec.Decoder();
private void DoStream()
{
PixelFormat BitmapFormat = PixelFormat.Format32bppArgb;
MemoryStream OutStream = new MemoryStream();
while (true)
{
encoder.Encode(OutStream, BitmapExtensions.CaptureScreen(BitmapFormat), BitmapFormat);
StreamBox.Image = decoder.Decode(OutStream);
OutStream.Position = 0;
OutStream.SetLength(0);
}
}