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

Method getExtendedMode

src/librawspeed/decoders/NefDecoder.cpp:414–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414string NefDecoder::getExtendedMode(const string &mode) {
415 ostringstream extended_mode;
416
417 const auto* ifd = mRootIFD->getIFDWithTag(CFAPATTERN);
418 uint32_t width = ifd->getEntry(IMAGEWIDTH)->getU32();
419 uint32_t height = ifd->getEntry(IMAGELENGTH)->getU32();
420
421 extended_mode << width << "x" << height << "-" << mode;
422 return extended_mode.str();
423}
424
425// We use this for the D50 and D2X whacky WB "encryption"
426const std::array<uint8_t, 256> NefDecoder::serialmap = {

Callers

nothing calls this directly

Calls 3

getIFDWithTagMethod · 0.80
getU32Method · 0.45
getEntryMethod · 0.45

Tested by

no test coverage detected