Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fast JPEG encoding library

Tags:

c++

c

encoding

jpeg

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.

like image 880
Budric Avatar asked May 15 '09 14:05

Budric


3 Answers

Check out libjpeg/SIMD, in the trunk of TigerVNC (http://www.tigervnc.com). We have optimized 64-bit and 32-bit versions which are almost as fast as IPP at compressing/decompressing baseline JPEG:

http://www.mail-archive.com/[email protected]/msg00403.html

like image 126
DRC Avatar answered Oct 22 '22 11:10

DRC


I believe that GIL, which is a library in Boost, contains a way to save image data in JPEG format. I don't know the speed of it, though. Given that the library is sponsored by Adobe, I would expect that it's pretty well done.

like image 3
Kaz Dragon Avatar answered Oct 22 '22 11:10

Kaz Dragon


AMD offers Framewave, an open sourced alternative to IPP.

like image 3
Tobiesque Avatar answered Oct 22 '22 11:10

Tobiesque