Hi Bob and Darrell,
Thank you both for your replies about GraphicsMagick and libjpeg-turbo
(respectively).
Yes, per Darrell's reply: When I replaced our old libjpeg v6b with
libjpeg-turbo – In our JPEG I/O codebase, I had to make the modifications for
the new J12SAMPLE, J16SAMPLE, and related bit-specific functions (i.e.,
jpeg12_read_scanlines, jpeg16_read_scanlines, etc.).
Bob: For libtiff, I saw this in the config output when I built tiff with
libjpeg-turbo, which appeared to indicate that the dual mode should be used
with libjpeg-turbo >= 2.2:
Support for external codecs:
ZLIB support: yes
libdeflate support: no
Pixar log-format algorithm: yes
JPEG support: yes
Old JPEG support: yes
JPEG 8/12 bit dual mode: yes (libjpeg turbo >= 2.2 dual mode)
Am I misunderstanding the meaning of dual mode in libtiff?
Thanks!
ellen
________________________________
From: Bob Friesenhahn <[email protected]>
Sent: Tuesday, February 6, 2024 7:42 PM
To: Ellen Johnson <[email protected]>
Cc: Even Rouault <[email protected]>; DRC <[email protected]>;
[email protected] <[email protected]>
Subject: RE: [Tiff] error reading linearRaw subIFD from a TIFF file with
libtiff built with libjpeg-turbo?
On Tue, 6 Feb 2024, Ellen Johnson wrote:
> Hi Bob and Even,
> (I'm copying Even's reply in this thread, and adding Darrell from
> libjpeg-turbo after consulting with him).
> Thank you for confirming libtiff does not support 16-bit JPEG.
> This is very puzzling to me. I think it means that before I built libtiff
> v4.6.0 with libjpeg-turbo v3.0.0, we must have had a patch or modification in
> our libtiff version or our old libjpeg v6b version that allowed us to read
> the 16-bit linearRaw subimage in the TIFF file.
I just noticed this output in the libtiff configure script help
output.
--enable-jpeg12 enable libjpeg 8/12bit dual mode (not to be used
with libjpeg-turbo >= 2.2)
Did you enable the above option, although you are using libjpeg-turbo >= 2.2?
Bob
--
Bob Friesenhahn
[email protected],
http://www.simplesystems.org/users/bfriesen/<http://www.simplesystems.org/users/bfriesen>
GraphicsMagick Maintainer,
http://www.GraphicsMagick.org/<http://www.GraphicsMagick.org>
Public Key,
http://www.simplesystems.org/users/bfriesen/public-key.txt<http://www.simplesystems.org/users/bfriesen/public-key.txt>
_______________________________________________
Tiff mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/tiff