TIFF I/O - use scanline to read stripped grey for now.

This commit is contained in:
artemp 2017-05-12 15:55:46 +02:00
parent 5d48d98697
commit e62bf6e18f

View file

@ -399,12 +399,13 @@ image_any tiff_reader<T>::read_any_gray(std::size_t x0, std::size_t y0, std::siz
read_tiled<image_type>(x0, y0, data); read_tiled<image_type>(x0, y0, data);
return image_any(std::move(data)); return image_any(std::move(data));
} }
else if (read_method_ == stripped) // TODO: temp disable and default to `scanline` method for stripped images.
{ //else if (read_method_ == stripped)
image_type data(width, height); //{
read_stripped<image_type>(x0, y0, data); // image_type data(width, height);
return image_any(std::move(data)); // read_stripped<image_type>(x0, y0, data);
} // return image_any(std::move(data));
//}
else else
{ {
TIFF* tif = open(stream_); TIFF* tif = open(stream_);