| 43 | class CameraMetaData; |
| 44 | |
| 45 | bool OrfDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD, |
| 46 | const Buffer* file) { |
| 47 | const auto id = rootIFD->getID(); |
| 48 | const std::string& make = id.make; |
| 49 | |
| 50 | // FIXME: magic |
| 51 | |
| 52 | return make == "OLYMPUS IMAGING CORP." || make == "OLYMPUS CORPORATION" || |
| 53 | make == "OLYMPUS OPTICAL CO.,LTD"; |
| 54 | } |
| 55 | |
| 56 | ByteStream OrfDecoder::handleSlices() const { |
| 57 | const auto* raw = mRootIFD->getIFDWithTag(STRIPOFFSETS); |