| 55 | } |
| 56 | |
| 57 | bool RafDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD, |
| 58 | const Buffer* file) { |
| 59 | const auto id = rootIFD->getID(); |
| 60 | const std::string& make = id.make; |
| 61 | |
| 62 | // FIXME: magic |
| 63 | |
| 64 | return make == "FUJIFILM"; |
| 65 | } |
| 66 | |
| 67 | RawImage RafDecoder::decodeRawInternal() { |
| 68 | const auto* raw = mRootIFD->getIFDWithTag(FUJI_STRIPOFFSETS); |