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

Method isAppropriateDecoder

src/librawspeed/decoders/OrfDecoder.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43class CameraMetaData;
44
45bool OrfDecoder::isAppropriateDecoder(const TiffRootIFD* rootIFD,
46 const Buffer* file) {
47 const auto id = rootIFD->getID();
48 const std::string& make = id.make;
49
50 // FIXME: magic
51
52 return make == "OLYMPUS IMAGING CORP." || make == "OLYMPUS CORPORATION" ||
53 make == "OLYMPUS OPTICAL CO.,LTD";
54}
55
56ByteStream OrfDecoder::handleSlices() const {
57 const auto* raw = mRootIFD->getIFDWithTag(STRIPOFFSETS);

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.80

Tested by

no test coverage detected