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/RREDecoder.h b/common/rfb/RREDecoder.h
index 7b6cc45..b33bc55 100644
--- a/common/rfb/RREDecoder.h
+++ b/common/rfb/RREDecoder.h
@@ -26,7 +26,7 @@
public:
RREDecoder(CConnection* conn);
virtual ~RREDecoder();
- virtual void readRect(const Rect& r, CMsgHandler* handler);
+ virtual void readRect(const Rect& r, ModifiablePixelBuffer* pb);
};
}
#endif