MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / isAppropriateDecoder

Method isAppropriateDecoder

src/librawspeed/decoders/IiqDecoder.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52namespace rawspeed {
53
54bool 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
63bool IiqDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD,
64 const Buffer* file) {

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected