AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.10.20 18:40 "[Tiff] the BitsPerSymbol tag", by Sachin Garg
2004.10.20 19:51 "Re: [Tiff] the BitsPerSymbol tag", by Frank Warmerdam
2004.10.28 12:03 "[Tiff] why does tiffcp::cpSeparateBufToContigBuf takes BYTES_per_sample as parameter?", by Sachin Garg
2004.10.28 14:05 "Re: [Tiff] why does tiffcp::cpSeparateBufToContigBuf takes BYTES_per_sample as parameter?", by Bob Friesenhahn
2004.11.04 11:33 "[Tiff] Support for DNG tags", by Sachin Garg
[...]

2004.10.28 12:03 "[Tiff] why does tiffcp::cpSeparateBufToContigBuf takes BYTES_per_sample as parameter?", by Sachin Garg

I am a bit confused about why cpSeparateBufToContigBuf (and cpContigBufToSeparateBuf) take bytes_per_sample as parameter instead of a bits_per_sample.

#. Is it because libtiff doesnt supports tiffs for which bits_per_sample is not a mulitple of 8?

#. Or is it because tools/tiffcp doesnt supports images for which bits_per_sample is not a mulitple of 8?

#. If its not either of the above two cases, then how are these routines (cpSeparateBufToContigBuf and cpContigBufToSeparateBuf) able to handle such images (for which bits_per_sample is not a mulitple of 8)?

Also, is it that in a tiff, bits_per_sample can take only some valid values, or can any value be assigned/expected for this tag? (4, 8, 16, 24, 32 seem to be popular ones but are these the only valid values, or can I expect other values like 3, 6, 19 etc... too)

--
Sachin Garg [India]

http://www.geocities.com/schngrg