2007.07.14 11:59 "[Tiff] What perfoms better, TIFFReadScanline or TIFFReadEncodedStrip ?", by Oliver Geisen

2007.07.14 15:46 "Re: [Tiff] What perfoms better, TIFFReadScanline or TIFFReadEncodedStrip ?", by Bob Friesenhahn

i'm wondering what technique should be used/voided if performance matters. I think reading scanlines is just a wrapper code around reading strips (tiles also?).

So does it make sense to void scanline reading and read/process strips instead?

Libtiff supports strip "chopping" in many cases where large strips are split into small scan lines, which are read incrementally. This is an important feature since it reduces resource consumption (memory) for large strips. If the strip is very large, performance is likely to be better when using the scanline interface, as long as strip chopping works. If the strip is reasonably small, then it may be faster to use the strip interface directly.

In my own application, I support both interfaces and decide between using the scanline or strip interfaces based on several factors, including the size of the strip. Probably the compression algorithm should be considered too.

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