aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/ZRLEDecoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/ZRLEDecoder.h')
-rw-r--r--common/rfb/ZRLEDecoder.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/rfb/ZRLEDecoder.h b/common/rfb/ZRLEDecoder.h
index 115f8fb8..3885124a 100644
--- a/common/rfb/ZRLEDecoder.h
+++ b/common/rfb/ZRLEDecoder.h
@@ -1,4 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright 2014-2022 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,6 +24,8 @@
namespace rfb {
+ class PixelFormat;
+
class ZRLEDecoder : public Decoder {
public:
ZRLEDecoder();
@@ -32,6 +35,13 @@ namespace rfb {
virtual void decodeRect(const Rect& r, const void* buffer,
size_t buflen, const ServerParams& server,
ModifiablePixelBuffer* pb);
+
+ private:
+ template<class T>
+ void zrleDecode(const Rect& r, rdr::InStream* is,
+ rdr::ZlibInStream* zis,
+ const PixelFormat& pf, ModifiablePixelBuffer* pb);
+
private:
rdr::ZlibInStream zis;
};