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

Method isAppropriateDecoder

src/librawspeed/decoders/PefDecoder.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace rawspeed {
40
41bool PefDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD,
42 const Buffer* file) {
43 const auto id = rootIFD->getID();
44 const std::string& make = id.make;
45
46 // FIXME: magic
47
48 return make == "PENTAX Corporation" ||
49 make == "RICOH IMAGING COMPANY, LTD." || make == "PENTAX";
50}
51
52RawImage PefDecoder::decodeRawInternal() {
53 const auto* raw = mRootIFD->getIFDWithTag(STRIPOFFSETS);

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected