2005.01.28 16:20 "[Tiff] Re: Application transferred too many scanlines. (JPEGLib)", by Bob Friesenhahn
With latest development libtiff and using TIFFReadEncodedStrip() to read a YCbCr JPEG-encoded TIFF (quad-jpeg.tif from the pics-3.7.1 collection), this error is reported:
"Application transferred too many scanlines. (JPEGLib)".
Can anyone tell me the reason for this error, and how it may be avoided?
This bit of code
if (compress_tag == COMPRESSION_JPEG)
TIFFSetField( tiff, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB );
did get me over the hump, but it returns data in YCbCr rather than RGB. Maybe there is no avoiding this since the YCbCr JPEG uses sub-sampling (2, 2)?