diff options
author | Hubert Figuière <hub@figuiere.net> | 2020-08-16 21:42:49 -0400 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2020-08-16 21:42:49 -0400 |
commit | 1e9a37612ab035df4f5416da7d034771641da9e1 (patch) | |
tree | 90f27b223f6048ae4c16bcdf4adec254c797aac6 /tools | |
parent | f7ceeb7f7b2c252594a81da707487fc594c57de7 (diff) |
ordiag: indicate that a DNG file was converted from
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dumputils.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/dumputils.cpp b/tools/dumputils.cpp index caa8143..43651f5 100644 --- a/tools/dumputils.cpp +++ b/tools/dumputils.cpp @@ -95,6 +95,16 @@ void dump_file_info(std::ostream& out, ORRawFileRef rf, bool dev_mode) % OR_GET_FILE_TYPEID_CAMERA(fileTypeId)); out << boost::format("\tType ID = %1%\n") % typeId; or_rawfile_typeid vendorId = or_rawfile_get_vendorid(rf); + if (fileType == OR_RAWFILE_TYPE_DNG) { + ORConstMetaValueRef original_value + = or_rawfile_get_metavalue(rf, META_NS_TIFF | DNG_TAG_ORIGINAL_RAW_FILE_NAME); + if (original_value) { + auto original = or_metavalue_get_string(original_value, 0); + if (original != nullptr) { + out << boost::format("\tConverted to DNG from '%1%'\n") % original; + } + } + } if (vendorId != OR_GET_FILE_TYPEID_VENDOR(fileTypeId)) { out << boost::format( |