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

Method decodeMetaDataInternal

src/librawspeed/decoders/MrwDecoder.cpp:178–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void MrwDecoder::decodeMetaDataInternal(const CameraMetaData* meta) {
179 //Default
180 int iso = 0;
181
182 if (!rootIFD)
183 ThrowRDE("Couldn't find make and model");
184
185 auto id = rootIFD->getID();
186 setMetaData(meta, id.make, id.model, "", iso);
187
188 if (hints.has("swapped_wb")) {
189 mRaw->metadata.wbCoeffs[0] = wb_coeffs[2];
190 mRaw->metadata.wbCoeffs[1] = wb_coeffs[0];
191 mRaw->metadata.wbCoeffs[2] = wb_coeffs[1];
192 } else {
193 mRaw->metadata.wbCoeffs[0] = wb_coeffs[0];
194 mRaw->metadata.wbCoeffs[1] = wb_coeffs[1];
195 mRaw->metadata.wbCoeffs[2] = wb_coeffs[3];
196 }
197}
198
199} // namespace rawspeed

Callers

nothing calls this directly

Calls 2

getIDMethod · 0.80
hasMethod · 0.80

Tested by

no test coverage detected