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.
Anyone do any tests? Any other good libraries out there faster than ImageMagick?
Edit: I was using 8 bit version of ImageMagick which is supposed to be faster.
ImageMagick uses libjpeg (a.k.a Independent JPEG Group library). If you improve the speed of libjpeg, ImageMagick JPEG speed will increase.
There are a few options:
-O3 -msse2and see if it can boost your speed. Then you can useLD_LIBRARY_PATHor some other way to load your libjpeg instead of the system one.