summaryrefslogtreecommitdiffstats
path: root/common/rfb/SMsgWriter.h
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2007-08-31 21:31:34 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2007-08-31 21:31:34 +0000
commit46ba45a257cf8746228b5ec7fce996ece81f70c4 (patch)
treed8aa095829bdd54f6cef1e745ea28a700e7db667 /common/rfb/SMsgWriter.h
parentfe0db841ffca2b8cd8d72702097e8dd5cfd2c98d (diff)
downloadtigervnc-46ba45a257cf8746228b5ec7fce996ece81f70c4.tar.gz
tigervnc-46ba45a257cf8746228b5ec7fce996ece81f70c4.zip
In SMsgWriter, added the ability to send a video rectangle via JpegEncoder.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2329 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SMsgWriter.h')
-rw-r--r--common/rfb/SMsgWriter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/rfb/SMsgWriter.h b/common/rfb/SMsgWriter.h
index 17e3481f..490d556c 100644
--- a/common/rfb/SMsgWriter.h
+++ b/common/rfb/SMsgWriter.h
@@ -25,6 +25,7 @@
#include <rdr/types.h>
#include <rfb/encodings.h>
#include <rfb/Encoder.h>
+#include <rfb/PixelBuffer.h>
namespace rdr { class OutStream; }
@@ -36,6 +37,7 @@ namespace rfb {
class ColourMap;
class Region;
class UpdateInfo;
+ class JpegEncoder;
class WriteSetCursorCallback {
public:
@@ -129,6 +131,8 @@ namespace rfb {
virtual void writeCopyRect(const Rect& r, int srcX, int srcY);
+ virtual void writeVideoRect(PixelBuffer *pb, const Rect& r);
+
virtual void startRect(const Rect& r, unsigned int enc)=0;
virtual void endRect()=0;
@@ -154,12 +158,14 @@ namespace rfb {
rdr::OutStream* os;
Encoder* encoders[encodingMax+1];
+ JpegEncoder* jpegEncoder;
int lenBeforeRect;
unsigned int currentEncoding;
int updatesSent;
int bytesSent[encodingMax+1];
int rectsSent[encodingMax+1];
int rawBytesEquivalent;
+ // FIXME: Gather statistics for JpegEncoder as well.
rdr::U8* imageBuf;
int imageBufSize;