From 0c9bd4b0ba28f5aab8b1f3e2eb8d83e01915e2b8 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 9 Jul 2014 16:44:11 +0200 Subject: 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. --- common/rfb/ZRLEDecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/rfb/ZRLEDecoder.h') diff --git a/common/rfb/ZRLEDecoder.h b/common/rfb/ZRLEDecoder.h index e7e2b8cb..492597e3 100644 --- a/common/rfb/ZRLEDecoder.h +++ b/common/rfb/ZRLEDecoder.h @@ -27,7 +27,7 @@ namespace rfb { public: ZRLEDecoder(CConnection* conn); virtual ~ZRLEDecoder(); - virtual void readRect(const Rect& r, CMsgHandler* handler); + virtual void readRect(const Rect& r, ModifiablePixelBuffer* pb); private: rdr::ZlibInStream zis; }; -- cgit v1.2.3