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

Method isAppropriateDecoder

src/librawspeed/decoders/NefDecoder.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54namespace rawspeed {
55
56bool NefDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD,
57 const Buffer* file) {
58 const auto id = rootIFD->getID();
59 const std::string& make = id.make;
60
61 // FIXME: magic
62
63 return make == "NIKON CORPORATION" || make == "NIKON";
64}
65
66RawImage NefDecoder::decodeRawInternal() {
67 const auto* raw = mRootIFD->getIFDWithTag(CFAPATTERN);

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected