Use PixelBuffer objects as the interface for encoders and decoders
This avoid a lot of unnecessary middle men. This also pushes the
responsibility for pixel format conversion into the encoders and
decoders. The new bufferFromBuffer() is used for direct conversion,
rather than PixelTransformer/TransImageGetter.
diff --git a/common/rfb/TightDecoder.h b/common/rfb/TightDecoder.h
index 2ca4ecd..66fa9a0 100644
--- a/common/rfb/TightDecoder.h
+++ b/common/rfb/TightDecoder.h
@@ -30,7 +30,7 @@
public:
TightDecoder(CConnection* conn);
virtual ~TightDecoder();
- virtual void readRect(const Rect& r, CMsgHandler* handler);
+ virtual void readRect(const Rect& r, ModifiablePixelBuffer* pb);
private:
rdr::U32 readCompact(rdr::InStream* is);
@@ -56,7 +56,7 @@
void directFillRect16(const Rect& r, Pixel pix);
void directFillRect32(const Rect& r, Pixel pix);
- CMsgHandler* handler;
+ ModifiablePixelBuffer* pb;
rdr::InStream* is;
rdr::ZlibInStream zis[4];
JpegDecompressor jd;