AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.09.26 04:45 "[Tiff] Tiffcrop beta available for testing", by Richard Nolde
2006.09.26 04:55 "Re: [Tiff] Tiffcrop beta available for testing", by Bob Friesenhahn
2006.09.26 05:17 "Re: [Tiff] Tiffcrop beta available for testing", by Joris Van Damme
2006.09.26 05:43 "Re: [Tiff] Tiffcrop beta available for testing", by Joris Van Damme
2006.09.27 04:21 "[Tiff] YCbCr data in tiffcrop", by Richard Nolde
2006.09.27 12:50 "Re: [Tiff] YCbCr data in tiffcrop", by Joris Van Damme

2006.09.26 05:43 "Re: [Tiff] Tiffcrop beta available for testing", by Joris Van Damme

This applies to all forms of subsampled YCbCr, uncompressed, LZW compressed, flate compressed, whatever. Unfortunately, the LibJpeg library returns another

> organisation, and a convertion needs to be made...

I meant, a convertion needs to be made inside tif_jpeg.c, that may not have been clear. The purpose of this conversion is to take data organisation as returned by LibJpeg, and reformat it into the compression-independent organisation that is assumed by the rest of the library, thus making all subsampled YCbCr organisation uniform.

I think there's currently a bug left in exactly this part of tif_jpeg.c, presumably, seeing the output of some image, but I've not yet had the time to investigate properly. This may additionally make it hard for Richard to add subsampled YCbCr support inside tiffcrop, unless he chooses to work from uncompressed subsampled YCbCr testimages and drops the use of JPEGCOLORMODE_RGB if he's using it right now, which I'd recommend anyway since that is the single shortest path to full compression-independent support for subsampled YCbCr.

Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html