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

Method decodeMetaDataInternal

src/librawspeed/decoders/ArwDecoder.cpp:341–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void ArwDecoder::decodeMetaDataInternal(const CameraMetaData* meta) {
342 //Default
343 int iso = 0;
344
345 mRaw->cfa.setCFA(iPoint2D(2,2), CFA_RED, CFA_GREEN, CFA_GREEN, CFA_BLUE);
346
347 if (mRootIFD->hasEntryRecursive(ISOSPEEDRATINGS))
348 iso = mRootIFD->getEntryRecursive(ISOSPEEDRATINGS)->getU32();
349
350 auto id = mRootIFD->getID();
351
352 setMetaData(meta, id, "", iso);
353 mRaw->whitePoint >>= mShiftDownScale;
354 mRaw->blackLevel >>= mShiftDownScale;
355
356 // Set the whitebalance
357 try {
358 if (id.model == "DSLR-A100") { // Handle the MRW style WB of the A100
359 ParseA100WB();
360 } else { // Everything else but the A100
361 GetWB();
362 }
363 } catch (RawspeedException& e) {
364 mRaw->setError(e.what());
365 // We caught an exception reading WB, just ignore it
366 }
367}
368
369void ArwDecoder::SonyDecrypt(const uint32_t* ibuf, uint32_t* obuf, uint32_t len,
370 uint32_t key) {

Callers

nothing calls this directly

Calls 7

setCFAMethod · 0.80
getIDMethod · 0.80
setErrorMethod · 0.80
iPoint2DClass · 0.70
hasEntryRecursiveMethod · 0.45
getU32Method · 0.45
getEntryRecursiveMethod · 0.45

Tested by

no test coverage detected