aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/TightDecoder.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-11-13 10:47:28 +0100
committerPierre Ossman <ossman@cendio.se>2015-11-27 11:10:41 +0100
commite6ad4456230799c1eac59010b5eaad83005fc0df (patch)
tree4a34e878bde74c979318a71761ef4e24f3fc60ab /common/rfb/TightDecoder.h
parenta862add9b5a35fd628db40c7ecc873dfa7608aeb (diff)
downloadtigervnc-e6ad4456230799c1eac59010b5eaad83005fc0df.tar.gz
tigervnc-e6ad4456230799c1eac59010b5eaad83005fc0df.zip
Allow conditional dependencies between rects when decoding
Some encodings only cause dependencies between rects some of the time. Make sure we can allow parallel decoding of those rect that aren't dependent on each other.
Diffstat (limited to 'common/rfb/TightDecoder.h')
-rw-r--r--common/rfb/TightDecoder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/rfb/TightDecoder.h b/common/rfb/TightDecoder.h
index 18497d41..a98788f6 100644
--- a/common/rfb/TightDecoder.h
+++ b/common/rfb/TightDecoder.h
@@ -33,6 +33,13 @@ namespace rfb {
virtual ~TightDecoder();
virtual void readRect(const Rect& r, rdr::InStream* is,
const ConnParams& cp, rdr::OutStream* os);
+ virtual bool doRectsConflict(const Rect& rectA,
+ const void* bufferA,
+ size_t buflenA,
+ const Rect& rectB,
+ const void* bufferB,
+ size_t buflenB,
+ const ConnParams& cp);
virtual void decodeRect(const Rect& r, const void* buffer,
size_t buflen, const ConnParams& cp,
ModifiablePixelBuffer* pb);