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,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>
|
||||||
|
|
Loading…
Reference in a new issue