Refactor isDNG flag

This commit is contained in:
Lawrence Lee 2024-07-18 22:22:27 -07:00
parent bb44729490
commit 79aaba1bcb
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -732,8 +732,6 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) :
meta.getDimensions(w_, h_); meta.getDimensions(w_, h_);
isDNG = find_exif_tag("Exif.Image.DNGVersion");
// ----------------------- // -----------------------
// Special file type detection (HDR, PixelShift) // Special file type detection (HDR, PixelShift)
// ------------------------ // ------------------------
@ -937,6 +935,8 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) :
} }
} }
isDNG = dngVersion;
// Read DNG OpcodeList1. // Read DNG OpcodeList1.
if (dngVersion && (find_exif_tag("Exif.SubImage1.OpcodeList1") || find_exif_tag("Exif.Image.OpcodeList1"))) { if (dngVersion && (find_exif_tag("Exif.SubImage1.OpcodeList1") || find_exif_tag("Exif.Image.OpcodeList1"))) {
readOpcodesList(pos->value(), &fixBadPixelsConstant, &hasFixBadPixelsConstant_, nullptr); readOpcodesList(pos->value(), &fixBadPixelsConstant, &hasFixBadPixelsConstant_, nullptr);