Is there any free or commercal jpeg decode which is really fast [closed]

醉酒当歌 提交于 2019-12-06 05:13:41

问题


I am using c++, libjpeg for decoding jpeg file. I find it is not fast enough, is there any method to make it faster by setting some compile parameter? or are there any other lib can open jpeg files more faster?

now it takes about 750ms to open a 4368 * 2912 4m jpeg image. I wish this can be reduced to 150ms. Many thanks!

Added: IJL seems faster than libjpeg:)


回答1:


The fastest way is not to decode it at all. Usually you can use a low-res preview first; that requires only the low frequencies. For a 546 x 289 pixel preview, you in fact only need the (0,0) (DC) component.




回答2:


There's the Intel Performance Primitives which contains JPEG coding/decoding implementations




回答3:


Also see http://sourceforge.net/projects/libjpeg-turbo/ for a drop-in replacement of libjpeg that uses SIMD instructions for a significant performance boost.




回答4:


I use libjpeg from ijg. It's documented how to modify for your purposes, like coding/decoding in memory.




回答5:


I think DirectX and libSDL can decode jpegs - although libSDL might use libjpeg for decoding.



来源:https://stackoverflow.com/questions/1594319/is-there-any-free-or-commercal-jpeg-decode-which-is-really-fast

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