I have recently made a program that converted bmp images into JPEG2000 lossless images using JAI and RC1.0.
The images are 640x480. They seem to compress reasonably fast (~1 second per image) however when i then load them back into another program i created it takes ~15-20 seconds to read the image. Is this normal? I find it hard to believe that is the case as normally compression takes longer than decompression for most algorithms…
I slightly modified my code, by compressing using png instead of JPEG2000 and leaving the rest of my code as it is. The decompression speeds was much faster <1 second per frame. This leads me to believe that it is something internal to the JAI JPEG2000 codec which is slowing down.
I do need JPEG2000 as the images i am wanting to compress are “natural”.
Any suggestions as to why it is so slow? and ways to speed it up?