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
February 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.02.02 14:33 "Fastest method to load tiff files?", by Edward Lam
2006.02.02 15:00 "Re: Fastest method to load tiff files?", by Bernie Pallek
2006.02.02 15:29 "Re: Fastest method to load tiff files?", by Edward Lam
2006.02.02 15:36 "Re: Fastest method to load tiff files?", by Frank Warmerdam

2006.02.02 15:36 "Re: Fastest method to load tiff files?", by Frank Warmerdam

On 2/2/06, Edward Lam wrote:
>
> What is the fastest way to read tiff files using libtiff?

Edward,

I would guess to use the TIFFReadEncodedStrip() or
TIFFReadEncodedTile() functions, and to ensure you go
from first to last strip/tile in order.   I don't think you will
gain much speed over that by special techniques.

You might want to recognise some special cases, like
packed stripped uncompressed 8bit data and just do a
direct read or memory map of the data, but I doubt it will
help much.

You might also want to look at using the memory mapping
support which sometimes can be faster than "normal" file IO.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent