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
September 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.09.12 21:22 "read-by-scan-line buffers full strip, part 2", by Mark Pilon
2005.09.13 01:26 "Re: read-by-scan-line buffers full strip, part 2", by Joris Van Damme
2005.09.13 15:34 "Re: read-by-scan-line buffers full strip, part 2", by Mark R Olin
2005.09.13 15:58 "Re: read-by-scan-line buffers full strip, part 2", by Joris Van Damme
2005.09.13 16:17 "read-by-scan-line buffers full strip, part 3", by Mark Pilon
2005.09.13 16:54 "Re: read-by-scan-line buffers full strip, part 3", by Joris Van Damme
2005.09.13 17:48 "Re: read-by-scan-line buffers full strip, part 3", by Mark Pilon

2005.09.13 16:17 "read-by-scan-line buffers full strip, part 3", by Mark Pilon

the details:

I need to access a particular tiff image, some small (and arbitrary) # of
lines at a time.  1 if necessary;

when I try to read this image w/ TIFFReadScanline(), a 60+ Mb buffer is
allocated for the entire strip/image -- the image is large, color and one
strip.

I need to process the image sequentially w/o any random access.

the tiffinfo for this image:

[mpilon@mars mpilon]$ tiffinfo /rd/tests/gld/tiff/QL/TQ1RCLCE.tif
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

-----------------------------------------------

unfortunately, it seems that libtiff won't be easily modified to uncompress
only part of a strip at a time ... and before beginning such a significant
modification, I thought I'd ask if there was any other way to get to the
data ...

i.e. using libtiff part-way to get access to the compressed data, but
perform the decompression in smaller increments than the whole strip.

thanks for the replies -- please send more !

Mark