| 339 | } |
| 340 | |
| 341 | void 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 | |
| 369 | void ArwDecoder::SonyDecrypt(const uint32_t* ibuf, uint32_t* obuf, uint32_t len, |
| 370 | uint32_t key) { |
nothing calls this directly
no test coverage detected