| 49 | namespace rawspeed { |
| 50 | |
| 51 | bool ArwDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD, |
| 52 | const Buffer* file) { |
| 53 | const auto id = rootIFD->getID(); |
| 54 | const std::string& make = id.make; |
| 55 | |
| 56 | // FIXME: magic |
| 57 | |
| 58 | return make == "SONY"; |
| 59 | } |
| 60 | |
| 61 | RawImage ArwDecoder::decodeSRF(const TiffIFD* raw) { |
| 62 | raw = mRootIFD->getIFDWithTag(IMAGEWIDTH); |