tiff reader: read_generic is not implemented so throw in all cases not just if we can open the image

This commit is contained in:
Dane Springmeyer 2016-01-06 09:16:56 -08:00
parent 31958352bc
commit bb8cd10751

View file

@ -598,13 +598,9 @@ image_any tiff_reader<T>::read(unsigned x, unsigned y, unsigned width, unsigned
} }
template <typename T> template <typename T>
void tiff_reader<T>::read_generic(std::size_t, std::size_t, image_rgba8& image) void tiff_reader<T>::read_generic(std::size_t, std::size_t, image_rgba8&)
{ {
TIFF* tif = open(stream_); throw std::runtime_error("tiff_reader: TODO - tiff is not stripped or tiled");
if (tif)
{
throw std::runtime_error("tiff_reader: TODO - tiff is not stripped or tiled");
}
} }
template <typename T> template <typename T>