AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.08.29 16:15 "[Tiff] libtiff on Windows", by MichaelJJohnson
2004.09.01 14:10 "Re: [Tiff] libtiff on Windows", by Bob Friesenhahn
2004.09.01 17:01 "Re: [Tiff] libtiff on Windows", by Andrey Kiselev
2004.09.03 20:08 "Re: [Tiff] libtiff on Windows", by Sachin Garg
2004.10.18 13:22 "[Tiff] How can I manually set the StripOffsets and StripCounts fields?", by Sachin Garg
2004.10.18 13:25 "[Tiff] Fwd: How can I manually set the StripOffsets and StripCounts fields?", by Sachin Garg
2004.10.18 13:31 "Re: [Tiff] Fwd: How can I manually set the StripOffsets and StripCounts fields?", by Frank Warmerdam
2004.10.18 14:16 "Re: [Tiff] Fwd: How can I manually set the StripOffsets and StripCounts fields?", by Sachin Garg
2004.10.20 08:07 "[Tiff] The format of buffer returned by routines in tiffcp", by Sachin Garg
2004.10.20 10:16 "Re: [Tiff] The format of buffer returned by routines in tiffcp", by Gerben Vos
2004.10.20 10:25 "Re: [Tiff] The format of buffer returned by routines in tiffcp", by Sachin Garg

2004.10.20 10:25 "Re: [Tiff] The format of buffer returned by routines in tiffcp", by Sachin Garg

On Wed, 20 Oct 2004 12:16:00 +0200, Gerben Vos <gerben@zylab.com> wrote:

Tiffcp has some handy routines to read/write data into buffer from variious types of tiff files (eg readContigTilesIntoBuffer etc...)

What is the structure of data which we get in these buffer? Is it dependent on the type of tiff from which we are reading or is it in same in all cases?

These tiffcp routines (I have an old version in front of me, but I suppose this hasn't changed) always convert the buffer to rgbrgbrgbrgbrgbrgbrgb, by using the cpSeparateBufToContigBuf function when reading and cpContigBufToSeparateBuf when writing. So you don't have to deal with the PlanarConfiguration tag anymore.

Also, are there any extra bytes at the end of each row?

Each row in the buffer is padded with bits until the next byte. Not to a multiple of bytes as in, for example, BMP.

This should be easy to handle... thanks.

--
Sachin Garg [India]

http://www.geocities.com/schngrg