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]