Files
qemu/ui
Gerd Hoffmann b5ba361d8f Revert "vnc: allow fall back to RAW encoding"
This reverts commit de3f7de7f4.

Remove VNC optimization to reencode framebuffer update as raw if it's
smaller than the default encoding.

QEMU's implementation was naive and didn't account for the ZLIB z_stream
mutating with each compression.  Because of the mutation, simply
resetting the output buffer's offset wasn't sufficient to "rewind" the
operation.  The mutated z_stream would generate future zlib blocks which
referred to symbols in past blocks which weren't sent.  This would lead
to artifacting.

Considering that ZRLE is never larger than raw and even though ZLIB can
occasionally be fractionally larger than raw, the overhead of
implementing this optimization correctly isn't worth it.

Signed-off-by: Cameron Esfahani <dirty@apple.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 0780ec7be8)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2020-06-22 12:46:27 -05:00
..
2017-10-17 10:25:42 +02:00
2019-07-03 10:57:12 +02:00
2019-03-11 08:39:02 +01:00
2019-09-17 13:42:02 +02:00
2019-09-17 13:42:02 +02:00
2019-11-21 09:42:30 +01:00
2019-08-16 13:31:52 +02:00
2017-07-27 14:23:09 +02:00
2019-08-16 13:31:52 +02:00
2016-02-04 17:01:04 +00:00
2019-02-05 16:50:18 +01:00
2019-09-17 13:45:10 +02:00