------------------------------------------------------------------------------
| 333 | |
| 334 | //------------------------------------------------------------------------------ |
| 335 | bool vtkTIFFReader::vtkTIFFReaderInternal::CanRead() |
| 336 | { |
| 337 | return (this->Image && (this->Width > 0) && (this->Height > 0) && (this->SamplesPerPixel > 0) && |
| 338 | (this->Compression == COMPRESSION_NONE || this->Compression == COMPRESSION_PACKBITS || |
| 339 | this->Compression == COMPRESSION_LZW || this->Compression == COMPRESSION_ADOBE_DEFLATE) && |
| 340 | (this->HasValidPhotometricInterpretation) && |
| 341 | (this->Photometrics == PHOTOMETRIC_RGB || this->Photometrics == PHOTOMETRIC_MINISWHITE || |
| 342 | this->Photometrics == PHOTOMETRIC_MINISBLACK || this->Photometrics == PHOTOMETRIC_PALETTE) && |
| 343 | (this->PlanarConfig == PLANARCONFIG_CONTIG) && (!this->TileDepth) && |
| 344 | (this->BitsPerSample == 8 || this->BitsPerSample == 16 || this->BitsPerSample == 32)); |
| 345 | } |
| 346 | |
| 347 | //------------------------------------------------------------------------------ |
| 348 | vtkTIFFReader::vtkTIFFReader() |
no outgoing calls
no test coverage detected