开发者

Fast way to decode JPEG image

开发者 https://www.devze.com 2023-04-12 08:31 出处:网络
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 Bitm

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.


Try Libjpeg Turbo: http://libjpeg-turbo.virtualgl.org/

0

精彩评论

暂无评论...
验证码 换一张
取 消