2005.06.28 09:09 "[Tiff] Simpler interface than strip-oriented interface", by Katrina Maramba

2005.06.28 09:09 "[Tiff] Simpler interface than strip-oriented interface", by Katrina Maramba

Good day eveyone,

I am currently coding an interface to Libtiff which would convert a strip of the tiff image to RGB format. I am using the TIFFReadRGBAStrip API. This works perfectly fine until I find images with only 1 strip and very, very large stripbytecounts (like 4mb or 6mb). I would then have to keep a buffer with this size (4 or 6 mb)since the API needs the whole strip to be passed to it. This is very hard for me since we only have a limited amount of memory.

Is there another way to parse the image?? Im looking for an interface that would accept a smaller data size than the strip, if the strip is too large.

I also found out about ScanLine but this is not a very reliable interface since it only works if the RowsPerStrip is equal to 1 and if there is no compression. My understanding is correct, am I right?

Hope somebody can get me out of my misery, :)

Thanks a lot,
Katrina