2006.02.02 15:36 "Re: [Tiff] Fastest method to load tiff files?", by Frank Warmerdam
On 2/2/06, Edward Lam <edward@sidefx.com> 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