AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.07.20 20:14 "[Tiff] Reading the strip byte count array", by Christian Henning
2007.07.23 11:03 "Re: [Tiff] Reading the strip byte count array", by Andrey Kiselev
2007.07.23 15:36 "Re: [Tiff] Reading the strip byte count array", by Christian Henning
2007.07.23 20:43 "Re: [Tiff] Reading the strip byte count array", by Andrey Kiselev

2007.07.20 20:14 "[Tiff] Reading the strip byte count array", by Christian Henning

Hi there, I have a problem getting the strip byte counts array. If I read a tiff file using the tiff_viewer it tells me the strip byte counts count is 222. First of all I don't understand how this number is calculated.

Taking the documentation it says:

strips_per_image = floor( image_length + rows_per_strip - 1 ) / rows_per_strip;

First of all, what is image_length. Is that somewhere defined?

But even when I use this number the function

uint32 buffer[222];

TIFFGetField( img, TIFFTAG_STRIPBYTECOUNTS, &buffer );

it only gives me the first value that doesn't make much sense.

Can somebody tell what I'm doing wrong?

Thanks ahead,

Christian