Commit c2a7f9ff authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

Remove redundant checks for old JPEG compression

As Robert Maynard pointed out we already control for this in the
CanRead function, and so there is no need to repeatedly verify this
on every volume or tile read.

Change-Id: I47247928503c3e070a3905950fd726a2392c281a
parent fd35d0a3
......@@ -730,12 +730,6 @@ void vtkTIFFReader::Initialize()
template<typename T>
void vtkTIFFReader::ReadVolume(T* buffer)
{
if (this->InternalImage->Compression == COMPRESSION_OJPEG)
{
vtkErrorMacro("This reader cannot read old JPEG compression");
return;
}
int width = this->InternalImage->Width;
int height = this->InternalImage->Height;
......@@ -824,12 +818,6 @@ void vtkTIFFReader::ReadVolume(T* buffer)
/** Read a tiled tiff */
void vtkTIFFReader::ReadTiles(void* buffer)
{
if (this->InternalImage->Compression == COMPRESSION_OJPEG)
{
vtkErrorMacro("This reader cannot read old JPEG compression");
return;
}
unsigned char* volume = reinterpret_cast<unsigned char*>(buffer);
for (unsigned int col = 0; col < this->InternalImage->Width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment