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

Method isAppropriateDecoder

src/librawspeed/decoders/Rw2Decoder.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49class CameraMetaData;
50
51bool Rw2Decoder::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 == "Panasonic" || make == "LEICA" || make == "LEICA CAMERA AG";
59}
60
61RawImage Rw2Decoder::decodeRawInternal() {
62

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected