Page 2 of 2

Re: Loading JPEG images in parallel

Posted: 2014-12-16T14:44:36-07:00
by porridge
FTR, the reason there is no thread support on my system turned out to be...

Code: Select all

$ rgrep JPEG_LIB_VERSION /usr/include/
[...]
/usr/include/x86_64-linux-gnu/jconfig.h:#define JPEG_LIB_VERSION 62
$ dpkg -S /usr/include/x86_64-linux-gnu/jconfig.h 
libjpeg62-turbo-dev:amd64: /usr/include/x86_64-linux-gnu/jconfig.h
because in the so called meantime Debian switched to libjpeg-turbo, which exports a smaller JPEG_LIB_VERSION.

So I'm back to square one, trying to determine libjpeg62-turbo's thread safety guarantees are. :?

Re: Loading JPEG images in parallel

Posted: 2014-12-27T14:09:22-07:00
by porridge
I have confirmed that any version of libjpeg-turbo is as thread-safe as libjpeg8.

Given that, how would you feel about changing the following lines in coders/jpeg.c:

Code: Select all

#if JPEG_LIB_VERSION < 80
to something like the following?

Code: Select all

#if JPEG_LIB_VERSION < 80 && !defined(LIBJPEG_TURBO_VERSION)

Re: Loading JPEG images in parallel

Posted: 2014-12-27T15:43:50-07:00
by magick
We'll get your patch into ImageMagick 6.9.0-3 Beta by sometime tomorrow.