| 52 | } |
| 53 | |
| 54 | void OrfImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) { |
| 55 | out << "ORF IMAGE" << std::endl; |
| 56 | if (io_->open() != 0) |
| 57 | throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError()); |
| 58 | // Ensure that this is the correct image type |
| 59 | if (imageType() == ImageType::none && !isOrfType(*io_, false)) { |
| 60 | if (io_->error() || io_->eof()) |
| 61 | throw Error(ErrorCode::kerFailedToReadImageData); |
| 62 | throw Error(ErrorCode::kerNotAJpeg); |
| 63 | } |
| 64 | |
| 65 | io_->seek(0, BasicIo::beg); |
| 66 | |
| 67 | printTiffStructure(io(), out, option, depth); |
| 68 | } // OrfImage::printStructure |
| 69 | |
| 70 | void OrfImage::readMetadata() { |
| 71 | #ifdef EXIV2_DEBUG_MESSAGES |