AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2011

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2011.01.21 00:51 "Cannot read YCbCr JPEG-compressed images", by Craig Bruce
2011.01.21 12:11 "Re: Cannot read YCbCr JPEG-compressed images", by <jcupitt@gmail.com>
2011.01.23 03:30 "Re: Cannot read YCbCr JPEG-compressed images", by Charles Auer
2011.01.23 16:01 "Re: Cannot read YCbCr JPEG-compressed images", by Bob Friesenhahn
2011.01.25 01:02 "Re: Cannot read YCbCr JPEG-compressed images", by Craig Bruce
2011.01.25 02:00 "Re: Cannot read YCbCr JPEG-compressed images", by Olivier Paquet
2011.01.26 02:40 "Re: Cannot read YCbCr JPEG-compressed images", by Craig Bruce
2011.01.26 04:50 "Re: Cannot read YCbCr JPEG-compressed images", by Bob Friesenhahn

2011.01.21 12:11 "Re: Cannot read YCbCr JPEG-compressed images", by <jcupitt@gmail.com>

Hi Craig,

On 21 January 2011 00:51, Craig Bruce <csbruce@cubewerx.com> wrote:
> The TIFF library runs into an internal problem when I try to use it to read
> YCbCr JPEG-compressed images.  I'm currently using version 4.0.0beta6,
> but 3.9 and 3.7 had the same problem.  Calling TIFFReadTile() inside my
> program for the first tile produces the following error:
>
> JPEGDecodeRaw: application buffer not large enough for all data.

Are you reading the image a scanline at a time? You can't read YCbCr
images this way, since they have sub-sampled chrominance and therefore
don't divide neatly into lines. You need to read a strip or a tile at
a time, see TIFFReadEncodedStrip() and TIFFReadTile().

> I have put a sample image (it's 41 MB) at:
>
> http://csbruce.com/temp/q09050_006_nir.tif

I was able to read your image without problems here.

John