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

Method isAppropriateDecoder

src/librawspeed/decoders/Cr2Decoder.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47namespace rawspeed {
48
49bool Cr2Decoder::isAppropriateDecoder(const TiffRootIFD* rootIFD,
50 const Buffer* file) {
51 const auto id = rootIFD->getID();
52 const std::string& make = id.make;
53 const std::string& model = id.model;
54
55 // FIXME: magic
56
57 return make == "Canon" ||
58 (make == "Kodak" && (model == "DCS520C" || model == "DCS560C"));
59}
60
61RawImage Cr2Decoder::decodeOldFormat() {
62 uint32_t offset = 0;

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected