From afa9fae0248650cb358463c37756c3560da4b57a Mon Sep 17 00:00:00 2001 From: steven_carr Date: Tue, 2 May 2006 20:53:25 +0000 Subject: Ultra Encoding added. Tested against UltraVNC V1.01 --- rfb/rfb.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'rfb/rfb.h') diff --git a/rfb/rfb.h b/rfb/rfb.h index ffba2cd..06ffa8f 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -484,6 +484,12 @@ typedef struct _rfbClientRec { int tightQualityLevel; #endif #endif + + /* Ultra Encoding support */ + rfbBool compStreamInitedLZO; + char *lzoWrkMem; + + int lastKeyboardLedState; /* keep track of last value so we can send *change* events */ rfbBool enableKeyboardLedState; /* client supports KeyboardState encoding */ rfbBool enableLastRectEncoding; /* client supports LastRect encoding */ @@ -658,6 +664,17 @@ extern rfbBool rfbSendRectEncodingCoRRE(rfbClientPtr cl, int x,int y,int w,int h extern rfbBool rfbSendRectEncodingHextile(rfbClientPtr cl, int x, int y, int w, int h); +/* ultra.c */ + +/* Set maximum ultra rectangle size in pixels. Always allow at least + * two scan lines. + */ +#define ULTRA_MAX_RECT_SIZE (128*256) +#define ULTRA_MAX_SIZE(min) ((( min * 2 ) > ULTRA_MAX_RECT_SIZE ) ? \ + ( min * 2 ) : ULTRA_MAX_RECT_SIZE ) + +extern rfbBool rfbSendRectEncodingUltra(rfbClientPtr cl, int x,int y,int w,int h); + #ifdef LIBVNCSERVER_HAVE_LIBZ /* zlib.c */ -- cgit v1.2.1