MCPcopy Create free account
hub / github.com/apache/cloudstack / _jpegRect

Method _jpegRect

systemvm/agent/noVNC/core/decoders/tight.js:85–94  ·  view source on GitHub ↗
(x, y, width, height, sock, display, depth)

Source from the content-addressed store, hash-verified

83 }
84
85 _jpegRect(x, y, width, height, sock, display, depth) {
86 let data = this._readData(sock);
87 if (data === null) {
88 return false;
89 }
90
91 display.imageRect(x, y, width, height, "image/jpeg", data);
92
93 return true;
94 }
95
96 _pngRect(x, y, width, height, sock, display, depth) {
97 throw new Error("PNG received in standard Tight rect");

Callers 1

decodeRectMethod · 0.95

Calls 2

_readDataMethod · 0.95
imageRectMethod · 0.80

Tested by

no test coverage detected