diff options
| author | Corentin Chary <corentincj@iksaif.net> | 2010-07-07 20:57:49 +0200 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-26 17:23:53 -0500 |
| commit | 2f6f5c7a00e2fbe4f680d6c1efa12a9cbb0ee40a (patch) | |
| tree | 25d7a63a40a256674d05978468039b8091315a65 /vnc.h | |
| parent | f58ae59c028b75b8fd9116e9012d30e30d4fc677 (diff) | |
| download | focaccia-qemu-2f6f5c7a00e2fbe4f680d6c1efa12a9cbb0ee40a.tar.gz focaccia-qemu-2f6f5c7a00e2fbe4f680d6c1efa12a9cbb0ee40a.zip | |
vnc: tight: add JPEG and gradient subencoding with smooth image detection
Add gradient filter and JPEG compression with an heuristic to detect how lossy the comppression will be. This code has been adapted from libvncserver/tight.c. JPEG support can be enabled/disabled at compile time with --enable-vnc-jpeg and --disable-vnc-jpeg. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc.h')
| -rw-r--r-- | vnc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vnc.h b/vnc.h index 7b64cf730b..2a9024d1cc 100644 --- a/vnc.h +++ b/vnc.h @@ -176,6 +176,10 @@ struct VncState Buffer tight; Buffer tight_tmp; Buffer tight_zlib; + Buffer tight_gradient; +#ifdef CONFIG_VNC_JPEG + Buffer tight_jpeg; +#endif int tight_levels[4]; z_stream tight_stream[4]; |