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-encoding-tight.h | |
parent | f58ae59c028b75b8fd9116e9012d30e30d4fc677 (diff) |
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-encoding-tight.h')
-rw-r--r-- | vnc-encoding-tight.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vnc-encoding-tight.h b/vnc-encoding-tight.h index 64d10625fe..9b0910c79a 100644 --- a/vnc-encoding-tight.h +++ b/vnc-encoding-tight.h @@ -173,4 +173,9 @@ #define VNC_TIGHT_MIN_SOLID_SUBRECT_SIZE 2048 #define VNC_TIGHT_MAX_SPLIT_TILE_SIZE 16 +#define VNC_TIGHT_JPEG_MIN_RECT_SIZE 4096 +#define VNC_TIGHT_DETECT_SUBROW_WIDTH 7 +#define VNC_TIGHT_DETECT_MIN_WIDTH 8 +#define VNC_TIGHT_DETECT_MIN_HEIGHT 8 + #endif /* VNC_ENCODING_TIGHT_H */ |