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