Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nikon] Add instructions for adding new Nikon F mount lenses #2071

Merged
merged 1 commit into from
Feb 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions src/nikonmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1867,14 +1867,9 @@ namespace Exiv2 {
#define FMLDATE "2018-03-03"
//------------------------------------------------------------------------------
//
//
// Created by Robert Rottmerhusen 2005 - 2018
// http://www.rottmerhusen.com ([email protected])
//
// 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
Expand Down Expand Up @@ -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"},
Expand Down