summaryrefslogtreecommitdiffstats
path: root/rfb/rfb.h
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2012-04-25 12:55:03 +0200
committerChristian Beier <dontmind@freeshell.org>2012-04-25 12:55:03 +0200
commit413ca0dfef83b98f7b230e0596ac086d42eaad4e (patch)
treeb36ca82ac24402f3f0f5a7085f0561757e7b56f5 /rfb/rfb.h
parent2524573678fbdb195cbc9ba2f92e0f58c205ad10 (diff)
parent1df6bffd9e7ff5106ffb5f3bc1938a14ea1f72cf (diff)
downloadlibtdevnc-413ca0dfef83b98f7b230e0596ac086d42eaad4e.tar.gz
libtdevnc-413ca0dfef83b98f7b230e0596ac086d42eaad4e.zip
Merge branch 'turbovnc'
Conflicts, resolved manually: AUTHORS
Diffstat (limited to 'rfb/rfb.h')
-rw-r--r--rfb/rfb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index bf4e011..a265746 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -681,6 +681,11 @@ typedef struct _rfbClientRec {
int afterEncBufLen;
#if defined(LIBVNCSERVER_HAVE_LIBZ) || defined(LIBVNCSERVER_HAVE_LIBPNG)
uint32_t tightEncoding; /* rfbEncodingTight or rfbEncodingTightPng */
+#ifdef LIBVNCSERVER_HAVE_LIBJPEG
+ /* TurboVNC Encoding support (extends TightVNC) */
+ int turboSubsampLevel;
+ int turboQualityLevel; // 1-100 scale
+#endif
#endif
#ifdef LIBVNCSERVER_WITH_WEBSOCKETS
@@ -880,6 +885,10 @@ extern rfbBool rfbSendRectEncodingZlib(rfbClientPtr cl, int x, int y, int w,
#define TIGHT_DEFAULT_COMPRESSION 6
+#ifdef LIBVNCSERVER_HAVE_LIBJPEG
+#define TURBO_DEFAULT_SUBSAMP 0
+#endif
+
extern rfbBool rfbTightDisableGradient;
extern int rfbNumCodedRectsTight(rfbClientPtr cl, int x,int y,int w,int h);