2004.10.20 08:07 "[Tiff] The format of buffer returned by routines in tiffcp", by Sachin Garg

2004.10.20 08:07 "[Tiff] The format of buffer returned by routines in tiffcp", by Sachin Garg

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?

For an 3 samplePerPixel rgb image with 8-bits per sample, I think it should be something like..

rgbrgbrgbrgbrgbrgbrgb

I mean are the samples interleaved? or it something like...

rrrrrrrggggggggbbbbbbb

Also, are there any extra bytes at the end of each row? (some formats like bmp add extra bytes at end of each row to make sure that every new row starts at a byte-boundary which is a mulitple of four, is this true for the buffer returned by these routines or does the next row starts immediatly after previous row ends?)

Any other detail regarding how data is contained in the buffers returned by tiffcp routines?

Sachin Garg [India]
http://www.geocities.com/schngrg
http://sachingarg.go.to
schngrg@yahoo.com schngrg@gmail.com
sachingarg@msn.com sachin.garg@paxcel.net