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
October 2006

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

2006.10.30 20:16 "Tiles or Strips?", by <50295@web.de>
2006.10.30 20:39 "Re: Tiles or Strips?", by <50295@web.de>
2006.10.30 20:58 "Re: Tiles or Strips?", by Bob Friesenhahn
2006.10.30 22:12 "Re: Tiles or Strips?", by Joris Van Damme

2006.10.30 22:12 "Re: Tiles or Strips?", by Joris Van Damme

Olumide,

Olumide wrote:
> I'm new to LibTIFF and I've been studying the docs. I've perused a few
> sample programs start out with the supposed foreknowledge that the
> raster is stored as strips or tiles, and that does not sit well with
> the cautious programmer in me i.e., one day such a program will
> encounter raster thats written in the *other* format(?).
>
> Whats the best approach to writing a does one write a flexible reader
> i.e., determining the beforehand if the data is stored as strips or
> tiles?

If you use LibTiff, you can use the function TIFFIsTiled to determine
whether a particular IFD contains strips or tiles, and respond
accordingly.

If you don't use LibTiff, but a writing your own reader, an
investigation of the tag set will determine the format. Either all of
TileWidth, TileLength, TileOffsets and TileByteCounts is present, in
which case it contains tiles, or either all of RowsPerStrip,
StripOffsets, and StripByteCounts is present, in which case it contains
strips.

Does that answer your question? I'm not sure how to interpret your
question... When exactly is 'beforehand'?


Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html