2004.04.16 04:36 "[Tiff] TIFFGetField TIFFSetField when samplesperpixel>1", by Lynn Quam

2004.04.19 07:30 "Re: [Tiff] TIFFGetField TIFFSetField when samplesperpixel>1", by Andrey Kiselev

Why is it that the TIFF6.0 spec says that TIFFTAG_BITSPERSAMPLE, TIFFTAG_SAMPLEFORMAT, and some other tags are specified on a per component basis, but TIFFGetField and TIFFSetField only get and set a single scalar value?

Are you sure your libtiff sets a single value for those tags? Probably you have an old outdated library? Recent libtiff works exactly as it is declared in specification (use tiffdump to ensure that tag filled with the all required values).

On other hand different bit depths and sample formats for different components are not supported currently, that why the single value always returned by the TIFFGetField().


Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517