JPEGLosslessDecoderJS
JPEGLosslessDecoderJS copied to clipboard
performance
I use JPEG Lossless to load some CT data ( 1900 x 2500 x 80). Each frames takes about 600ms to be decoded, so my total loading time is about 600ms x 80 frames, which is huge.
Is there any way to improve performance somehow?
I do the following for each frame:
let byteOutput = bitsAllocated <= 8 ? 1 : 2;
let decoder = new Jpeg.lossless.Decoder();
let decompressedData = decoder.decode(encodedPixelData.buffer, encodedPixelData.byteOffset, encodedPixelData.length, byteOutput);