2010.12.14 17:55 "[Tiff] patch to tif_jpeg.c", by Dwight Kelly

2011.01.26 02:40 "Re: [Tiff] Cannot read YCbCr JPEG-compressed images", by Craig Bruce

I suspect the different results we're seeing between people here might have something to do with the libjpeg involved. Mine is libjpeg.so.8.0.1. Oh and for what it's worth, I get the segfault no matter how large I make the buffer in your test program.

Whatever the cause, I was able to get my application to work using the TIFFReadRGBATile() and TIFFReadRGBAStrip() calls. I don't know why these work when the other calls blow up, but they also save me the trouble of decoding the YCbCr samples to RGB.

Dr. Craig S. Bruce        | Ph 819-771-8303 x205 |             CubeWerx Inc.
Senior Software Developer |   Fax 819-771-8388   |  Gatineau, Québec, Canada
csbruce@cubewerx.com      |  http://csbruce.com/ |  http://www.cubewerx.com/

                "I don't suffer from stress. I'm a carrier."