|
|
@ -175,9 +175,6 @@ export default class TightDecoder {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
data = this._zlibs[streamId].inflate(data, uncompressedSize);
|
|
|
|
data = this._zlibs[streamId].inflate(data, uncompressedSize);
|
|
|
|
if (data.length != uncompressedSize) {
|
|
|
|
|
|
|
|
throw new Error("Incomplete zlib block");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
display.blitRgbImage(x, y, width, height, data, 0, false);
|
|
|
|
display.blitRgbImage(x, y, width, height, data, 0, false);
|
|
|
@ -223,9 +220,6 @@ export default class TightDecoder {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
data = this._zlibs[streamId].inflate(data, uncompressedSize);
|
|
|
|
data = this._zlibs[streamId].inflate(data, uncompressedSize);
|
|
|
|
if (data.length != uncompressedSize) {
|
|
|
|
|
|
|
|
throw new Error("Incomplete zlib block");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Convert indexed (palette based) image data to RGB
|
|
|
|
// Convert indexed (palette based) image data to RGB
|
|
|
|