Skip to content

Commit

Permalink
Merge pull request novnc#893 from CendioOssman/amt
Browse files Browse the repository at this point in the history
Basic support for Intel AMT
  • Loading branch information
samhed authored Oct 5, 2017
2 parents b1e26cf + 5a5f5ad commit 4a818a7
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 218 deletions.
40 changes: 40 additions & 0 deletions core/encodings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2017 Pierre Ossman for Cendio AB
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
*/

export var encodings = {
encodingRaw: 0,
encodingCopyRect: 1,
encodingRRE: 2,
encodingHextile: 5,
encodingTight: 7,

pseudoEncodingQualityLevel9: -23,
pseudoEncodingQualityLevel0: -32,
pseudoEncodingDesktopSize: -223,
pseudoEncodingLastRect: -224,
pseudoEncodingCursor: -239,
pseudoEncodingQEMUExtendedKeyEvent: -258,
pseudoEncodingTightPNG: -260,
pseudoEncodingExtendedDesktopSize: -308,
pseudoEncodingXvp: -309,
pseudoEncodingFence: -312,
pseudoEncodingContinuousUpdates: -313,
pseudoEncodingCompressLevel9: -247,
pseudoEncodingCompressLevel0: -256,
}

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";
default: return "[unknown encoding " + num + "]";
}
}
Loading

0 comments on commit 4a818a7

Please sign in to comment.