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:
parent
31958352bc
commit
bb8cd10751
1 changed files with 2 additions and 6 deletions
|
@ -598,14 +598,10 @@ image_any tiff_reader<T>::read(unsigned x, unsigned y, unsigned width, unsigned
|
|||
}
|
||||
|
||||
template <typename T>
|
||||
void tiff_reader<T>::read_generic(std::size_t, std::size_t, image_rgba8& image)
|
||||
{
|
||||
TIFF* tif = open(stream_);
|
||||
if (tif)
|
||||
void tiff_reader<T>::read_generic(std::size_t, std::size_t, image_rgba8&)
|
||||
{
|
||||
throw std::runtime_error("tiff_reader: TODO - tiff is not stripped or tiled");
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template <typename ImageData>
|
||||
|
|
Loading…
Reference in a new issue