summaryrefslogtreecommitdiffstats
path: root/common/rfb/SMsgWriter.h
diff options
context:
space:
mode:
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;