| 52 | namespace rawspeed { |
| 53 | |
| 54 | bool IiqDecoder::isAppropriateDecoder(const Buffer* file) { |
| 55 | assert(file); |
| 56 | |
| 57 | const DataBuffer db(*file, Endianness::little); |
| 58 | |
| 59 | // The IIQ magic. Is present for all IIQ raws. |
| 60 | return db.get<uint32_t>(8) == 0x49494949; |
| 61 | } |
| 62 | |
| 63 | bool IiqDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD, |
| 64 | const Buffer* file) { |