是否有任何自由或商业jpeg解码是真的很快 [英] Is there any free or commercal jpeg decode which is really fast

查看:158
本文介绍了是否有任何自由或商业jpeg解码是真的很快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用c ++,libjpeg解码jpeg文件。
我发现它不够快,有没有任何方法,通过设置一些编译参数使它更快?
或者有什么其他的lib可以打开jpeg文件更快?

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?

现在需要大约750ms打开一个4368 * 2912 4m jpeg图像。
我希望这可以减少到150ms。
非常感谢!

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

添加:
IJL看起来比libjpeg更快)

Added: IJL seems faster than libjpeg:)

推荐答案

最快的方法是不解码它。通常您可以先使用低分辨率预览;只需要低频。对于546 x 289像素预览,您实际上只需要(0,0)(DC)组件。

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.

这篇关于是否有任何自由或商业jpeg解码是真的很快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆