diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-03-13 15:08:36 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:08 +0200 |
commit | 4bca9119848fbafd15dd9dae715ad65162addec5 (patch) | |
tree | bb4fad42f0cd540e0671c2c6f957458adf3ea7a9 /common/rfb/ZRLEEncoder.h | |
parent | b8349b73af604448a05d7c0587d862d3e7bd9c8a (diff) | |
download | tigervnc-4bca9119848fbafd15dd9dae715ad65162addec5.tar.gz tigervnc-4bca9119848fbafd15dd9dae715ad65162addec5.zip |
Get rid of unused things in the ZRLE encoder
Get rid of unused shared MemOutStream and variable max length
functionality in the ZRLE encoder.
Diffstat (limited to 'common/rfb/ZRLEEncoder.h')
-rw-r--r-- | common/rfb/ZRLEEncoder.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/common/rfb/ZRLEEncoder.h b/common/rfb/ZRLEEncoder.h index 3a0f52a9..61ff6fb0 100644 --- a/common/rfb/ZRLEEncoder.h +++ b/common/rfb/ZRLEEncoder.h @@ -30,25 +30,11 @@ namespace rfb { virtual bool writeRect(const Rect& r, TransImageGetter* ig, Rect* actual); virtual ~ZRLEEncoder(); - // setMaxLen() sets the maximum size in bytes of any ZRLE rectangle. This - // can be used to stop the MemOutStream from growing too large. The value - // must be large enough to allow for at least one row of ZRLE tiles. So - // for example for a screen width of 2048 32-bit pixels this is 2K*4*64 = - // 512Kbytes plus a bit of overhead (the overhead is about 1/16 of the - // width, in this example about 128 bytes). - static void setMaxLen(int m) { maxLen = m; } - - // setSharedMos() sets a MemOutStream to be shared amongst all - // ZRLEEncoders. Should be called before any ZRLEEncoders are created. - static void setSharedMos(rdr::MemOutStream* mos_) { sharedMos = mos_; } - private: ZRLEEncoder(SMsgWriter* writer); SMsgWriter* writer; rdr::ZlibOutStream zos; - rdr::MemOutStream* mos; - static rdr::MemOutStream* sharedMos; - static int maxLen; + rdr::MemOutStream mos; }; } #endif |