2005.08.18 20:52 "[Tiff] read-by-scan-line still buffers full strip?", by Mark Pilon

2005.08.18 20:59 "Re: [Tiff] read-by-scan-line still buffers full strip?", by Andrey Kiselev

On Thu, Aug 18, 2005 at 02:52:32PM -0600, Mark Pilon wrote:

I've gotten beyond my libtiff v.3.5.7 troubles and can now read jpeg encoded images line by line. I ported 3.7.3 and it seems to be working well.

In an attempt to save memory and to read native pixel values (instead of RGBA) I'm calling TIFFReadScanline() for an image, [tiffinfo below] and that func is ultimately calling TIFFFillStrip() which tries to malloc about 66M to buffer the whole thing - which is more memory than what we have.

this image is one strip of 4420 lines; is there a way/cheat/hack to _really_ access it one line at a time, w/o buffering the whole thing?

Mark,

No way, sorry. It is not possible to load part of the strip in case of compressed image. In current implementation we can use strip chopping on uncompressed files only and it will be too complicated to implement the same functionality in all compression codecs.

Regards,
Andrey

--
Andrey V. Kiselev

Home phone: +7 812 5970603 ICQ# 26871517