summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorEddie James <eajames@us.ibm.com>2018-06-18 16:17:41 -0500
committerEddie James <eajames@us.ibm.com>2018-06-20 14:35:50 -0500
commitdd873fce451e4b7d7cc69056a62e107aae7c8e7a (patch)
tree866a64b37a34bb2dd547db597109fc6b486ee9bc /rfb
parenta67e22dd1f139fd8025fae370ad33d861bb657ef (diff)
downloadlibtdevnc-dd873fce451e4b7d7cc69056a62e107aae7c8e7a.tar.gz
libtdevnc-dd873fce451e4b7d7cc69056a62e107aae7c8e7a.zip
Tight: export SendCompressedData and SendTightHeader functions
These functions can be used to send already compressed jpegs to a client, circumventing the usual rect/region update methods which operate on a raw rgb framebuffer. Rename the functions with the usual rfb prefix and add the prototypes in rfb.h. Signed-off-by: Eddie James <eajames@us.ibm.com>
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index f982b40..6401e78 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -895,6 +895,8 @@ extern rfbBool rfbTightDisableGradient;
extern int rfbNumCodedRectsTight(rfbClientPtr cl, int x,int y,int w,int h);
extern rfbBool rfbSendRectEncodingTight(rfbClientPtr cl, int x,int y,int w,int h);
+extern rfbBool rfbSendTightHeader(rfbClientPtr cl, int x, int y, int w, int h);
+extern rfbBool rfbSendCompressedDataTight(rfbClientPtr cl, char *buf, int compressedLen);
#if defined(LIBVNCSERVER_HAVE_LIBPNG)
extern rfbBool rfbSendRectEncodingTightPng(rfbClientPtr cl, int x,int y,int w,int h);