2004.10.28 15:43 "Re: [Tiff] why does tiffcp::cpSeparateBufToContigBuf takesBYTES_per_sample as parameter?", by Gerben Vos
But I am confused (as mentioned in my original post) how tiffcp routines (cpSeparateBufToContigBuf and cpContigBufToSeparateBuf) handle all bit-depths, they seem to be byte oriented.
As far as I can see, they are indeed byte-oriented. This doesn't make any difference when PlanarConfiguration=contiguous, but I guess it will cause problems when PlanarConfig=separate AND bits per sample is not a multiple of eight. If that combination is really important to you, you should write your own code (that's going to be a lot of bit-shifting).