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