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

Method isAppropriateDecoder

src/librawspeed/decoders/SrwDecoder.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44namespace rawspeed {
45
46bool SrwDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD,
47 const Buffer* file) {
48 const auto id = rootIFD->getID();
49 const std::string& make = id.make;
50
51 // FIXME: magic
52
53 return make == "SAMSUNG";
54}
55
56RawImage SrwDecoder::decodeRawInternal() {
57 const auto* raw = mRootIFD->getIFDWithTag(STRIPOFFSETS);

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected