Fast way to decode JPEG image

徘徊边缘 提交于 2020-01-03 08:52:33

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/7743511/fast-way-to-decode-jpeg-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!