JPEGLosslessDecoderJS icon indicating copy to clipboard operation
JPEGLosslessDecoderJS copied to clipboard

performance

Open NicolasRannou opened this issue 8 years ago • 0 comments

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);

NicolasRannou avatar Dec 07 '17 17:12 NicolasRannou