mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-20 20:43:43 +01:00
* noVNC: apply noVNC-v1.2.0-v1.4.0.patch 1. Create the patch by commands git clone -b v1.2.0 https://github.com/novnc/noVNC.git . git checkout v1.4.0 git diff v1.2.0 >noVNC-v1.2.0-v1.4.0.patch 2. Apply the patch by cd systemvm/agent/noVNC patch -p1 <noVNC-v1.2.0-v1.4.0.patch * noVNC: apply noVNC-v1.2.0-v1.4.0.patch part2 fix conflicts * noVNC: svg to png * noVNC: remove systemvm/agent/noVNC/tests/ * noVNC: remove systemvm/agent/noVNC/.github/
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
/*
|
|
* noVNC: HTML5 VNC client
|
|
* Copyright (C) 2019 The noVNC Authors
|
|
* Licensed under MPL 2.0 (see LICENSE.txt)
|
|
*
|
|
* See README.md for usage and integration instructions.
|
|
*/
|
|
|
|
export const encodings = {
|
|
encodingRaw: 0,
|
|
encodingCopyRect: 1,
|
|
encodingRRE: 2,
|
|
encodingHextile: 5,
|
|
encodingTight: 7,
|
|
encodingZRLE: 16,
|
|
encodingTightPNG: -260,
|
|
encodingJPEG: 21,
|
|
|
|
pseudoEncodingQualityLevel9: -23,
|
|
pseudoEncodingQualityLevel0: -32,
|
|
pseudoEncodingDesktopSize: -223,
|
|
pseudoEncodingLastRect: -224,
|
|
pseudoEncodingCursor: -239,
|
|
pseudoEncodingQEMUExtendedKeyEvent: -258,
|
|
pseudoEncodingDesktopName: -307,
|
|
pseudoEncodingExtendedDesktopSize: -308,
|
|
pseudoEncodingXvp: -309,
|
|
pseudoEncodingFence: -312,
|
|
pseudoEncodingContinuousUpdates: -313,
|
|
pseudoEncodingCompressLevel9: -247,
|
|
pseudoEncodingCompressLevel0: -256,
|
|
pseudoEncodingVMwareCursor: 0x574d5664,
|
|
pseudoEncodingExtendedClipboard: 0xc0a1e5ce
|
|
};
|
|
|
|
export function encodingName(num) {
|
|
switch (num) {
|
|
case encodings.encodingRaw: return "Raw";
|
|
case encodings.encodingCopyRect: return "CopyRect";
|
|
case encodings.encodingRRE: return "RRE";
|
|
case encodings.encodingHextile: return "Hextile";
|
|
case encodings.encodingTight: return "Tight";
|
|
case encodings.encodingZRLE: return "ZRLE";
|
|
case encodings.encodingTightPNG: return "TightPNG";
|
|
case encodings.encodingJPEG: return "JPEG";
|
|
default: return "[unknown encoding " + num + "]";
|
|
}
|
|
}
|