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
April 2005

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

2005.04.29 22:52 "Color TIFF/JPEG compression questions", by Jason Frank
2005.04.29 23:16 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.04.30 15:51 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.04.30 07:08 "Re: Color TIFF/JPEG compression questions", by Andrey Kiselev
2005.05.02 13:44 "Re: Color TIFF/JPEG compression questions", by Ed Grissom
2005.05.02 14:16 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.05.02 16:12 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 16:29 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 17:55 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.05.02 18:17 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 18:43 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.05.02 18:48 "Re: Color TIFF/JPEG compression questions", by Bob Friesenhahn
2005.05.02 18:48 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 19:11 "Re: Color TIFF/JPEG compression questions", by Andrey Kiselev
2005.05.03 05:46 "Re: Color TIFF/JPEG compression questions", by Andrey Kiselev

2005.05.02 18:17 "Re: Color TIFF/JPEG compression questions", by Jason Frank

Thanks for the schooling.  That shiny new JPEG compression scheme is
really quite clever.  I've taken a look at the code for tif_print.c, and
it looks correct.  It goes like this:

        if (TIFFFieldSet(tif,FIELD_YCBCRSUBSAMPLING))
        {
            /*
             * For hacky reasons (see tif_jpeg.c -
JPEGFixupTestSubsampling),
             * we need to fetch this rather than trust what is in our
             * structures.
             */
            uint16 subsampling[2];

            TIFFGetField( tif, TIFFTAG_YCBCRSUBSAMPLING,
                          subsampling + 0, subsampling + 1 );
                fprintf(fd, "  YCbCr Subsampling: %u, %u\n",
                        subsampling[0], subsampling[1] );
        }

I didn't find any redefinitions of TIFFTAG_YCBCRSUBSAMPLING, and I
didn't see any suspicious TiffSetFields in tiffinfo.c either.  I did
notice that tiffdump said:

YCbCrSubsampling (530) SHORT (3) 2<2 2>

On the very last line.

So, I think that tiffinfo might be playing correctly here (since it
agrees with tiffdump, and I don't see any obvious problems with the
code.)

Jason