| 39 | namespace rawspeed { |
| 40 | |
| 41 | bool PefDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD, |
| 42 | const Buffer* file) { |
| 43 | const auto id = rootIFD->getID(); |
| 44 | const std::string& make = id.make; |
| 45 | |
| 46 | // FIXME: magic |
| 47 | |
| 48 | return make == "PENTAX Corporation" || |
| 49 | make == "RICOH IMAGING COMPANY, LTD." || make == "PENTAX"; |
| 50 | } |
| 51 | |
| 52 | RawImage PefDecoder::decodeRawInternal() { |
| 53 | const auto* raw = mRootIFD->getIFDWithTag(STRIPOFFSETS); |