Fast way to decode JPEG image

Violet Giraffe picture Violet Giraffe · Oct 12, 2011 · Viewed 7.4k times · Source

I need to decode (unpack into bitmap) pretty small (about 1200 * 1200) JPEG. The problem is I need to do it quickly. I have tried libjpeg, and it's quite slow. I have also tried BitmapFactory.decodeByteArray - it's a bit faster, but still not fast enough. What are another options? A native (C++) library is much preferred.

P.S. My JPEGs are created directly in memory.

P.P.S. I wonder how come libjpeg is slower than BitmapFactory.decodeByteArray.

Answer

rossb83 picture rossb83 · Oct 12, 2011