diff options
author | Hubert Figuière <hub@figuiere.net> | 2023-05-25 21:58:59 -0400 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2023-05-25 21:58:59 -0400 |
commit | 40c760ab15cbed82067fffbeb4d2426ea41ca401 (patch) | |
tree | c1a0612d1abd9bdf8b427566c7cc5d36014933ae /lib | |
parent | 7a4a34b0ba0a746073d945eca773da7b1ea5bd5a (diff) |
dng: Added Leica Q3
- Added MakerNote detection
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dngfile.cpp | 4 | ||||
-rw-r--r-- | lib/makernotedir.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/dngfile.cpp b/lib/dngfile.cpp index e3b46b6..a5ba641 100644 --- a/lib/dngfile.cpp +++ b/lib/dngfile.cpp @@ -1,7 +1,7 @@ /* * libopenraw - dngfile.cpp * - * Copyright (C) 2006-2022 Hubert Figuière + * Copyright (C) 2006-2023 Hubert Figuière * Copyright (C) 2008 Novell, Inc. * * This library is free software: you can redistribute it and/or @@ -149,6 +149,8 @@ const IfdFile::camera_ids_t DngFile::s_def[] = { OR_TYPEID_LEICA_Q_TYP116) }, { "LEICA Q2", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_LEICA, OR_TYPEID_LEICA_Q2) }, + { "LEICA Q3", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_LEICA, + OR_TYPEID_LEICA_Q3) }, { "LEICA CL", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_LEICA, OR_TYPEID_LEICA_CL) }, { "LEICA SL2-S", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_LEICA, diff --git a/lib/makernotedir.cpp b/lib/makernotedir.cpp index bef0242..86cda7a 100644 --- a/lib/makernotedir.cpp +++ b/lib/makernotedir.cpp @@ -160,8 +160,8 @@ MakerNoteDir::createMakerNote(off_t offset, if (data[5] == 0 && data[7] == 0) { switch (data[6]) { case 0x08: - case 0x09: - // Leica Q Typ 116 and SL (Type 601) + case 0x09: // Leica Q Typ 116 and SL (Type 601) + case 0x0a: // Leica Q3 return std::make_shared<MakerNoteDir>( offset + 8, container, 0, "Leica5", mnote_leica5_tag_names); case 0x01: // Leica X1 |