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

Method decodeMetaDataInternal

src/librawspeed/decoders/ErfDecoder.cpp:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void ErfDecoder::decodeMetaDataInternal(const CameraMetaData* meta) {
67 setMetaData(meta, "", 0);
68
69 if (mRootIFD->hasEntryRecursive(EPSONWB)) {
70 TiffEntry *wb = mRootIFD->getEntryRecursive(EPSONWB);
71 if (wb->count == 256) {
72 // Magic values taken directly from dcraw
73 mRaw->metadata.wbCoeffs[0] = static_cast<float>(wb->getU16(24)) * 508.0F *
74 1.078F / static_cast<float>(0x10000);
75 mRaw->metadata.wbCoeffs[1] = 1.0F;
76 mRaw->metadata.wbCoeffs[2] = static_cast<float>(wb->getU16(25)) * 382.0F *
77 1.173F / static_cast<float>(0x10000);
78 }
79 }
80}
81
82} // namespace rawspeed

Callers

nothing calls this directly

Calls 3

hasEntryRecursiveMethod · 0.45
getEntryRecursiveMethod · 0.45
getU16Method · 0.45

Tested by

no test coverage detected