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
April 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.04.11 08:31 "tiles or strips? who decides?", by Katrina Maramba
2005.04.11 14:25 "Re: tiles or strips? who decides?", by Bob Friesenhahn
2005.04.11 16:46 "Re: tiles or strips? who decides?", by <melser.anton@gmail.com>
2005.04.11 17:12 "Re: tiles or strips? who decides?", by Bob Friesenhahn
2005.04.11 18:41 "Re: tiles or strips? who decides?", by Joris Van Damme

2005.04.11 14:25 "Re: tiles or strips? who decides?", by Bob Friesenhahn

On Mon, 11 Apr 2005, katrina maramba wrote:
>
> Who decides if the file is divided into tiles/ strips?  The TIFF reader or the 
> TIFF writer?
> If its the TIFF writer, is it then mandatory that the reader also reads it the 
> way its written?

The decision between using tiles and strips is the writer's 
responsibility.  The reader must use the same mode that the writer 
used.

Libtiff supports a strip 'chopping' mode which helps if the writer 
used excessively large strips by chopping large strips into many 
smaller strips in order to save memory while reading.

If you want to create a very simple reader which does not care how the 
writer prepared the file, you can use TIFFReadRGBAImage().  It is best 
to be aware that TIFFReadRGBAImage() is very memory innefficient and 
since it only returns 8-bit RGB data, support is poor, or non-existent 
for some other image types.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/