diff options
author | Paul Dumais <paul@itmanager.net> | 2021-10-05 12:04:34 -0400 |
---|---|---|
committer | Paul Dumais <paul@dumaison.com> | 2021-11-23 12:02:42 -0500 |
commit | d4c887e23f13ea5c1da4de877ac2ddb406de3852 (patch) | |
tree | 5628818c66b38a18ce1ef558c8c959af5a29b6e0 /core/rfb.js | |
parent | a85c85fb5f34a47c0f79865252ef9dad8f257441 (diff) | |
download | novnc-d4c887e23f13ea5c1da4de877ac2ddb406de3852.tar.gz |
Added support for ZRLE encoding
Fixed eslint warnings
Improved memory usage of zrle decoding. Added unit tests for zrle decoding.
Added support for ZRLE encoding
Fixed eslint warnings
Reverted allowIncomplete changes to Inflator
Fixed failing tests for zrle decoder.
Diffstat (limited to 'core/rfb.js')
-rw-r--r-- | core/rfb.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/rfb.js b/core/rfb.js index ea3bf58..0be2fa6 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -32,6 +32,7 @@ import RREDecoder from "./decoders/rre.js"; import HextileDecoder from "./decoders/hextile.js"; import TightDecoder from "./decoders/tight.js"; import TightPNGDecoder from "./decoders/tightpng.js"; +import ZRLEDecoder from "./decoders/zrle.js"; // How many seconds to wait for a disconnect to finish const DISCONNECT_TIMEOUT = 3; @@ -218,6 +219,7 @@ export default class RFB extends EventTargetMixin { this._decoders[encodings.encodingHextile] = new HextileDecoder(); this._decoders[encodings.encodingTight] = new TightDecoder(); this._decoders[encodings.encodingTightPNG] = new TightPNGDecoder(); + this._decoders[encodings.encodingZRLE] = new ZRLEDecoder(); // NB: nothing that needs explicit teardown should be done // before this point, since this can throw an exception @@ -1772,6 +1774,7 @@ export default class RFB extends EventTargetMixin { if (this._fbDepth == 24) { encs.push(encodings.encodingTight); encs.push(encodings.encodingTightPNG); + encs.push(encodings.encodingZRLE); encs.push(encodings.encodingHextile); encs.push(encodings.encodingRRE); } |