diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-07-09 16:44:11 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-14 16:03:41 +0200 |
commit | 0c9bd4b0ba28f5aab8b1f3e2eb8d83e01915e2b8 (patch) | |
tree | 500f61ee230d30fa1f8e955214c698e86b69e2f4 /common/rfb/zrleDecode.h | |
parent | 126e56420e47d72cc950d03976ee57d1efda436e (diff) | |
download | tigervnc-0c9bd4b0ba28f5aab8b1f3e2eb8d83e01915e2b8.tar.gz tigervnc-0c9bd4b0ba28f5aab8b1f3e2eb8d83e01915e2b8.zip |
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.
Diffstat (limited to 'common/rfb/zrleDecode.h')
-rw-r--r-- | common/rfb/zrleDecode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/zrleDecode.h b/common/rfb/zrleDecode.h index 4bcbf1f0..42b28b32 100644 --- a/common/rfb/zrleDecode.h +++ b/common/rfb/zrleDecode.h @@ -48,7 +48,7 @@ namespace rfb { void ZRLE_DECODE (const Rect& r, rdr::InStream* is, rdr::ZlibInStream* zis, PIXEL_T* buf, - CMsgHandler* handler) + const PixelFormat& pf, ModifiablePixelBuffer* pb) { int length = is->readU32(); zis->setUnderlying(is, length); @@ -73,7 +73,7 @@ void ZRLE_DECODE (const Rect& r, rdr::InStream* is, if (palSize == 1) { PIXEL_T pix = palette[0]; - handler->fillRect(t, pix); + pb->fillRect(pf, t, pix); continue; } @@ -173,7 +173,7 @@ void ZRLE_DECODE (const Rect& r, rdr::InStream* is, //fprintf(stderr,"copying data to screen %dx%d at %d,%d\n", //t.width(),t.height(),t.tl.x,t.tl.y); - handler->imageRect(t, buf); + pb->imageRect(pf, t, buf); } } |