Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Ardana:8:CentOS
novnc
novnc-1.0.0-add-encoding-support-for-TightPNG.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File novnc-1.0.0-add-encoding-support-for-TightPNG.patch of Package novnc
From 742f6b705fe1f2f669f5db8df0c7f22461a73c8e Mon Sep 17 00:00:00 2001 From: Leslie Qi Wang <leslie.qiwa@gmail.com> Date: Fri, 23 Feb 2018 10:36:15 -0800 Subject: [PATCH] add encoding support for TightPNG diff --git a/core/encodings.js b/core/encodings.js index a0551d6..f5aa960 100644 --- a/core/encodings.js +++ b/core/encodings.js @@ -12,6 +12,7 @@ export var encodings = { encodingRRE: 2, encodingHextile: 5, encodingTight: 7, + encodingTightPNG: -260, pseudoEncodingQualityLevel9: -23, pseudoEncodingQualityLevel0: -32, @@ -19,7 +20,6 @@ export var encodings = { pseudoEncodingLastRect: -224, pseudoEncodingCursor: -239, pseudoEncodingQEMUExtendedKeyEvent: -258, - pseudoEncodingTightPNG: -260, pseudoEncodingExtendedDesktopSize: -308, pseudoEncodingXvp: -309, pseudoEncodingFence: -312, @@ -35,6 +35,7 @@ export function encodingName(num) { case encodings.encodingRRE: return "RRE"; case encodings.encodingHextile: return "Hextile"; case encodings.encodingTight: return "Tight"; + case encodings.encodingTightPNG: return "Tight"; default: return "[unknown encoding " + num + "]"; } } diff --git a/core/rfb.js b/core/rfb.js index 7c4e0c9..54f0a04 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -170,6 +170,7 @@ export default function RFB(target, url, options) { this._encHandlers[encodings.encodingRRE] = RFB.encodingHandlers.RRE.bind(this); this._encHandlers[encodings.encodingHextile] = RFB.encodingHandlers.HEXTILE.bind(this); this._encHandlers[encodings.encodingTight] = RFB.encodingHandlers.TIGHT.bind(this); + this._encHandlers[encodings.encodingTightPNG] = RFB.encodingHandlers.TIGHT.bind(this); this._encHandlers[encodings.pseudoEncodingDesktopSize] = RFB.encodingHandlers.DesktopSize.bind(this); this._encHandlers[encodings.pseudoEncodingLastRect] = RFB.encodingHandlers.last_rect.bind(this); @@ -1256,13 +1257,13 @@ RFB.prototype = { // Only supported with full depth support if (this._fb_depth == 24) { encs.push(encodings.encodingTight); + encs.push(encodings.encodingTightPNG); encs.push(encodings.encodingHextile); encs.push(encodings.encodingRRE); } encs.push(encodings.encodingRaw); // Psuedo-encoding settings - encs.push(encodings.pseudoEncodingTightPNG); encs.push(encodings.pseudoEncodingQualityLevel0 + 6); encs.push(encodings.pseudoEncodingCompressLevel0 + 2); -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor