快速JPEG编码库 [英] Fast JPEG encoding library

查看:143
本文介绍了快速JPEG编码库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道一个免费的开源JPEG编码库,用于C / C ++的?目前我使用ImageMagick的,这是很容易使用,但它是pretty缓慢。我将它比英特尔性能基元的评价和IPP的速度是疯了。不幸的是,还花费200 $,我不需要IPP的99%)。此外,它只能在英特尔工作速度快。

anyone know of a free open-source jpeg encoding library for C/C++? Currently I'm using ImageMagick, which is easy to use, but it's pretty slow. I compared it to an evaluation of Intel Performance Primitives and the speed of IPP is insane. Unfortunately it also costs 200$, and I don't need 99% of the IPP). Also it will only work fast on Intel.

任何人做任何检查吗?任何其他好图书馆外面快于ImageMagick的?

Anyone do any tests? Any other good libraries out there faster than ImageMagick?

编辑:我使用ImageMagick的8位版本,这应该是更快

I was using 8 bit version of ImageMagick which is supposed to be faster.

推荐答案

ImageMagick的使用的libjpeg(a.k.a独立JPEG小组库)。如果你的libjpeg提高的速度,ImageMagick的JPEG速度将会增加。

ImageMagick uses libjpeg (a.k.a Independent JPEG Group library). If you improve the speed of libjpeg, ImageMagick JPEG speed will increase.

有几个选项:


  1. 编译优化的libjpeg。如果你有一个现代的gcc和至少一个奔腾4,你可以尝试 -O3 -msse2 ,看看它是否可以提高你的速度。然后你可以使用 LD_LIBRARY_PATH 或其他一些方式来加载你的libjpeg不是系统之一。

  2. 尝试出的libjpeg-MMX。这是维护了,按说车和安全缺陷,但它可能在你的情况给出一个速度提升。

  1. Compile an optimized libjpeg. If you have a modern gcc and at least a Pentium 4, you can try -O3 -msse2 and see if it can boost your speed. Then you can use LD_LIBRARY_PATH or some other way to load your libjpeg instead of the system one.
  2. Try out libjpeg-mmx. It is unmaintained, and supposedly buggy and with security flaws, but it may give a speed boost in your case.

这篇关于快速JPEG编码库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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