Subject: Re: [boost] [gil::io] Feedback for scanline_read_iterator
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-25 16:36:01


Hi Mateusz,

>> As far as I can tell tiff needs the row number to be read and also
>> tiff rows cannot be read in random order.
>
> It's not precise, because rows of some TIFFs can be accessed in random order.
> The spec confirms that too:
>
> "random access to individual scanlines can only be provided when data
> is not stored in a compressed
> format, or when the number of rows in a strip of image data is set to
> one (RowsPerStrip is one)."
>
> http://www.remotesensing.org/libtiff/libtiff.html

Yes, you're correct uncompressed images can be read in random order.
I'll add such optimization.

Christian