AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
August 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.08.18 20:52 "read-by-scan-line still buffers full strip?", by Mark Pilon
2005.08.18 20:59 "Re: read-by-scan-line still buffers full strip?", by Andrey Kiselev

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

Hi,

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?


thanks,

Mark Pilon mpilon@midrivers.com

TIFF Directory at offset 0x8
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 4048 Image Length: 4420
  Resolution: 1200, 1200 pixels/inch
  Bits/Sample: 8
  Compression Scheme: LZW
  Photometric Interpretation: RGB color
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 4420
  Planar Configuration: single image plane
  Page Number: 0-0