From 50f34f4561c0fb1299d4be2ca9ee1c764a33a441 Mon Sep 17 00:00:00 2001 From: Sturmflut Date: Tue, 8 Feb 2022 20:10:54 +0100 Subject: [PATCH] [nikon] Add instructions for adding new Nikon F mount lenses - Also cleans up a dead link --- src/nikonmn_int.cpp | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/src/nikonmn_int.cpp b/src/nikonmn_int.cpp index bc46c252..eeb20a86 100644 --- a/src/nikonmn_int.cpp +++ b/src/nikonmn_int.cpp @@ -1867,14 +1867,9 @@ namespace Exiv2 { #define FMLDATE "2018-03-03" //------------------------------------------------------------------------------ // -// // Created by Robert Rottmerhusen 2005 - 2018 // http://www.rottmerhusen.com (lens_id@rottmerhusen.com) // -// For contributor info and more visit my online list: -// http://www.rottmerhusen.com/objektives/lensid/thirdparty.html -// -// // Eight misidentified lenses due to double LensIDs: // // 2F 48 30 44 24 24 29 02.1: Nikon AF Zoom-Nikkor 20-35mm f/2.8D IF @@ -1910,9 +1905,38 @@ namespace Exiv2 { //"data from TAG 0x98" "ltyp" " "TC" "MID" "maker" "PN" "lens name from manuf"; // //------------------------------------------------------------------------------ -// Nikkor lenses by their LensID +// EXIF data necessary for new entries //------------------------------------------------------------------------------ // +// lid: LensIDNumber +// stps: LensFStops +// focs: MinFocalLength +// focl: MaxFocalLength +// aps: MaxApertureAtMinFocal +// apl: MaxApertureAtMaxFocal +// lfw: MCUVersion +// ltype: LensType +// +// The tcinfo, dblid and mid fields are being ignored. +// +// Please note that all fields except LensType have to be looked up in the +// Exif.NikonLd* prefix and not other Exif.Nikon* prefixes. For example: for modern +// Nikon bodies with modern lenses, there will be both a Exif.Nikon3.LensFStops and a +// Exif.NikonLd3.LensFStops entry in the EXIF data. You are looking for +// Exif.NikonLd3.LensFStops. +// +// In most cases the necessary hex values should be extracted from a test image using +// the following command: +// +// exiv2 -ph -g NikonLd3.LensIDNumber -g NikonLd3.LensFStops +// -g NikonLd3.MinFocalLength -g NikonLd3.MaxFocalLength +// -g NikonLd3.MaxApertureAtMinFocal -g NikonLd3.MaxApertureAtMaxFocal +// -g NikonLd3.MCUVersion -g Nikon3.LensType test.NEF +// +//------------------------------------------------------------------------------ +// Nikkor lenses by their LensID +//------------------------------------------------------------------------------ + static const struct FMntLens {unsigned char lid,stps,focs,focl,aps,apl,lfw, ltype, tcinfo, dblid, mid; const char *manuf, *lnumber, *lensname;} fmountlens[] = { {0x01,0x58,0x50,0x50,0x14,0x14,0x02,0x00,0x00,0x00,0x00, "Nikon", "JAA00901", "AF Nikkor 50mm f/1.8"},