#71 libjpeg-turbo for Linux

open
nobody
None
5
2012-10-31
2011-08-11
No

I've attached a modified Makefile.gnu to compile FreeImage against libjpeg-turbo instead of libjpeg. The Makefile is rough and doesn't support concurrent builds yet. You may see it as proof of concept.

Build instruction:

  • install nasm assembler
  • remove Sources/LibJPEG
  • download libjpeg-turbo from http://www.libjpeg-turbo.org/
  • unpack the sources to Sources/LibJPEG
  • run "sh gensrclist.sh" (you may have to use fromdos or dos2unix first)
  • replace Makefile.gnu with my modified version
  • run "make" (don't use -j2 !)

The modified Makefile runs the autoconf script of libjpeg-turbo first in order to generate the Makefile and jconfig.h.

Discussion

  • Christian Heimes

     
  • Christian Heimes

    Herve, you should really consider libjpeg-turbo for future releases of FreeImage. I've done some simple benchmarks. FreeImage with libjpeg-turbo convers a 1618x1136 image with 24bpp to jpeg up to three times faster.

    TIFF image with h:1618, w:1136, bpp:24
    ....................................................................................................
    time: 10529.378 msec for 100 loops with freeimage
    TIFF image with h:1618, w:1136, bpp:24
    ....................................................................................................
    time: 3327.438 msec for 100 loops with freeimageturbo

    gcc -std=gnu99 -lrt -lfreeimage -DLI="freeimage" -DNDEBUG -O3 -Wall -Wstrict-prototypes testturbo.c -o testplain
    gcc -std=gnu99 -lrt -lfreeimageturbo -DLI="freeimageturbo" -DNDEBUG -O3 -Wall -Wstrict-prototypes testturbo.c -o testturbo

     
  • Christian Heimes

    my benchmark script

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks