Exiv2
nikonmn_int.hpp
Go to the documentation of this file.
1// ***************************************************************** -*- C++ -*-
2/*
3 * Copyright (C) 2004-2021 Exiv2 authors
4 * This program is part of the Exiv2 distribution.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
19 */
32#ifndef NIKONMN_INT_HPP_
33#define NIKONMN_INT_HPP_
34
35// *****************************************************************************
36// included header files
37#include "tags.hpp"
38#include "types.hpp"
39
40// + standard includes
41#include <string>
42#include <iosfwd>
43#include <memory>
44
45// *****************************************************************************
46// namespace extensions
47namespace Exiv2 {
48 namespace Internal {
49
50// *****************************************************************************
51// class definitions
52
55 public:
57 static const TagInfo* tagList();
58
60
61
62 static std::ostream& print0x0002(std::ostream& os, const Value& value, const ExifData*);
64 static std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*);
66 static std::ostream& print0x0085(std::ostream& os, const Value& value, const ExifData*);
68 static std::ostream& print0x0086(std::ostream& os, const Value& value, const ExifData*);
70 static std::ostream& print0x0088(std::ostream& os, const Value& value, const ExifData*);
72 static std::ostream& printBarValue(std::ostream& os, const Value& value, const ExifData*);
74
75 private:
77 static const TagInfo tagInfo_[];
78
79 }; // class Nikon1MakerNote
80
86 public:
88 static const TagInfo* tagList();
89
91
92
93 static std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData*);
95
96 private:
98 static const TagInfo tagInfo_[];
99
100 }; // class Nikon2MakerNote
101
104 public:
106 static const TagInfo* tagList();
108 static const TagInfo* tagListVr();
110 static const TagInfo* tagListPc();
112 static const TagInfo* tagListWt();
114 static const TagInfo* tagListIi();
116 static const TagInfo* tagListAf();
118 static const TagInfo* tagListAf21();
120 static const TagInfo* tagListAf22();
122 static const TagInfo* tagListAFT();
124 static const TagInfo* tagListFi();
126 static const TagInfo* tagListMe();
128 static const TagInfo* tagListFl1();
130 static const TagInfo* tagListFl2();
132 static const TagInfo* tagListFl3();
134 static const TagInfo* tagListSi1();
136 static const TagInfo* tagListSi2();
138 static const TagInfo* tagListSi3();
140 static const TagInfo* tagListSi4();
142 static const TagInfo* tagListSi5();
144 static const TagInfo* tagListCb1();
146 static const TagInfo* tagListCb2();
148 static const TagInfo* tagListCb2a();
150 static const TagInfo* tagListCb2b();
152 static const TagInfo* tagListCb3();
154 static const TagInfo* tagListCb4();
156 static const TagInfo* tagListLd1();
158 static const TagInfo* tagListLd2();
160 static const TagInfo* tagListLd3();
162 static const TagInfo* tagListLd4();
163
165
166
167 static std::ostream& print0x0002(std::ostream& os, const Value& value, const ExifData*);
169 static std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*);
171 static std::ostream& print0x0083(std::ostream& os, const Value& value, const ExifData*);
173 static std::ostream& print0x0084(std::ostream& os, const Value& value, const ExifData*);
175 static std::ostream& print0x0085(std::ostream& os, const Value& value, const ExifData*);
177 static std::ostream& print0x0086(std::ostream& os, const Value& value, const ExifData*);
179 static std::ostream& print0x0088(std::ostream& os, const Value& value, const ExifData*);
181 static std::ostream& print0x0089(std::ostream& os, const Value& value, const ExifData* metadata);
183 static std::ostream& print0x008b(std::ostream& os, const Value& value, const ExifData*);
185 static std::ostream& printAfPointsInFocus(std::ostream& os, const Value& value, const ExifData* metadata);
187 static std::ostream& printLensId(std::ostream& os, const Value& value, const ExifData* metadata, const std::string& group);
188 static std::ostream& printLensId1(std::ostream& os, const Value& value, const ExifData* metadata);
189 static std::ostream& printLensId2(std::ostream& os, const Value& value, const ExifData* metadata);
190 static std::ostream& printLensId3(std::ostream& os, const Value& value, const ExifData* metadata);
191 static std::ostream& printLensId4(std::ostream& os, const Value& value, const ExifData* metadata);
193 static std::ostream& printLensId4ZMount(std::ostream& os, const Value& value, const ExifData*);
195 static std::ostream& printFocusDistance(std::ostream& os, const Value& value, const ExifData*);
197 static std::ostream& printAperture(std::ostream& os, const Value& value, const ExifData*);
199 static std::ostream& printApertureLd4(std::ostream& os, const Value& value, const ExifData*);
201 static std::ostream& printFocal(std::ostream& os, const Value& value, const ExifData*);
203 static std::ostream& printFocalLd4(std::ostream& os, const Value& value, const ExifData*);
205 static std::ostream& printFStops(std::ostream& os, const Value& value, const ExifData*);
207 static std::ostream& printExitPupilPosition(std::ostream& os, const Value& value, const ExifData*);
209 static std::ostream& print0x009a(std::ostream& os, const Value& value, const ExifData*);
211 static std::ostream& print0x009e(std::ostream& os, const Value& value, const ExifData*);
213 static std::ostream& printIiIso(std::ostream& os, const Value& value, const ExifData*);
215 static std::ostream& printFlashFocalLength(std::ostream& os, const Value& value, const ExifData*);
217 static std::ostream& printRepeatingFlashRate(std::ostream& os, const Value& value, const ExifData*);
219 static std::ostream& printRepeatingFlashCount(std::ostream& os, const Value& value, const ExifData*);
221 static std::ostream& printTimeZone(std::ostream& os, const Value& value, const ExifData*);
223 static std::ostream& printPictureControl(std::ostream& os, const Value& value, const ExifData*);
225
226 private:
228 static const TagInfo tagInfo_[];
230 static const TagInfo tagInfoVr_[];
232 static const TagInfo tagInfoPc_[];
234 static const TagInfo tagInfoWt_[];
236 static const TagInfo tagInfoIi_[];
238 static const TagInfo tagInfoAf_[];
240 static const TagInfo tagInfoAf21_[];
242 static const TagInfo tagInfoAf22_[];
244 static const TagInfo tagInfoAFT_[];
246 static const TagInfo tagInfoFi_[];
248 static const TagInfo tagInfoMe_[];
250 static const TagInfo tagInfoFl1_[];
252 static const TagInfo tagInfoFl2_[];
254 static const TagInfo tagInfoFl3_[];
256 static const TagInfo tagInfoSi1_[];
258 static const TagInfo tagInfoSi2_[];
260 static const TagInfo tagInfoSi3_[];
262 static const TagInfo tagInfoSi4_[];
264 static const TagInfo tagInfoSi5_[];
266 static const TagInfo tagInfoCb1_[];
268 static const TagInfo tagInfoCb2_[];
270 static const TagInfo tagInfoCb2a_[];
272 static const TagInfo tagInfoCb2b_[];
274 static const TagInfo tagInfoCb3_[];
276 static const TagInfo tagInfoCb4_[];
278 static const TagInfo tagInfoLd1_[];
280 static const TagInfo tagInfoLd2_[];
282 static const TagInfo tagInfoLd3_[];
284 static const TagInfo tagInfoLd4_[];
285
286 }; // class Nikon3MakerNote
287
288}} // namespace Internal, Exiv2
289
290#endif // #ifndef NIKONMN_INT_HPP_
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
A MakerNote format used by Nikon cameras, such as the E990 and D1.
Definition: nikonmn_int.hpp:54
static const TagInfo * tagList()
Return read-only list of built-in Nikon1 tags.
Definition: nikonmn_int.cpp:266
static std::ostream & print0x0002(std::ostream &os, const Value &value, const ExifData *)
Print ISO setting.
Definition: nikonmn_int.cpp:271
static std::ostream & print0x0086(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:346
static std::ostream & print0x0088(std::ostream &os, const Value &value, const ExifData *)
Print AF focus position.
Definition: nikonmn_int.cpp:370
static std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print autofocus mode.
Definition: nikonmn_int.cpp:310
static std::ostream & print0x0085(std::ostream &os, const Value &value, const ExifData *)
Print manual focus distance.
Definition: nikonmn_int.cpp:322
static std::ostream & printBarValue(std::ostream &os, const Value &value, const ExifData *)
Print BarometerInfo.
Definition: nikonmn_int.cpp:294
A second MakerNote format used by Nikon cameras, including the E700, E800, E900, E900S,...
Definition: nikonmn_int.hpp:85
static const TagInfo * tagList()
Return read-only list of built-in Nikon2 tags.
Definition: nikonmn_int.cpp:528
static std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:533
A third MakerNote format used by Nikon cameras, e.g., E5400, SQ, D2H, D70.
Definition: nikonmn_int.hpp:103
static const TagInfo * tagListAf22()
Return read-only list of built-in Auto Focus 2 tags.
Definition: nikonmn_int.cpp:940
static const TagInfo * tagListLd4()
Return read-only list of built-in Lens Data 4 tags.
Definition: nikonmn_int.cpp:1499
static std::ostream & printExitPupilPosition(std::ostream &os, const Value &value, const ExifData *)
Print exit pupil position.
Definition: nikonmn_int.cpp:2765
static const TagInfo * tagListWt()
Return read-only list of built-in World time tags.
Definition: nikonmn_int.cpp:782
static const TagInfo * tagListSi1()
Return read-only list of built-in Shot Info D80 tags.
Definition: nikonmn_int.cpp:1152
static const TagInfo * tagListFi()
Return read-only list of built-in File Info tags.
Definition: nikonmn_int.cpp:955
static std::ostream & printPictureControl(std::ostream &os, const Value &value, const ExifData *)
Print picture control value.
Definition: nikonmn_int.cpp:2856
static std::ostream & printRepeatingFlashCount(std::ostream &os, const Value &value, const ExifData *)
Print repeating flash count.
Definition: nikonmn_int.cpp:2818
static std::ostream & printRepeatingFlashRate(std::ostream &os, const Value &value, const ExifData *)
Print repeating flash rate.
Definition: nikonmn_int.cpp:2802
static std::ostream & printFocal(std::ostream &os, const Value &value, const ExifData *)
Print lens focal length.
Definition: nikonmn_int.cpp:2731
static std::ostream & print0x0085(std::ostream &os, const Value &value, const ExifData *)
Print manual focus distance.
Definition: nikonmn_int.cpp:1605
static const TagInfo * tagListCb2()
Return read-only list of built-in Color Balance 2 tags.
Definition: nikonmn_int.cpp:1347
static const TagInfo * tagListMe()
Return read-only list of built-in Multi Exposure tags.
Definition: nikonmn_int.cpp:977
static std::ostream & print0x0086(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:1629
static const TagInfo * tagListLd3()
Return read-only list of built-in Lens Data 3 tags.
Definition: nikonmn_int.cpp:1468
static std::ostream & printFlashFocalLength(std::ostream &os, const Value &value, const ExifData *)
Print flash focal length.
Definition: nikonmn_int.cpp:2784
static std::ostream & printApertureLd4(std::ostream &os, const Value &value, const ExifData *)
Print lens aperture value for new LensData as used for e.g. Nikon Z 6/7.
Definition: nikonmn_int.cpp:2969
static std::ostream & print0x0083(std::ostream &os, const Value &value, const ExifData *)
Print lens type.
Definition: nikonmn_int.cpp:1537
static const TagInfo * tagListIi()
Return read-only list of built-in ISO info tags.
Definition: nikonmn_int.cpp:826
static std::ostream & printLensId(std::ostream &os, const Value &value, const ExifData *metadata, const std::string &group)
Print lens name.
Definition: nikonmn_int.cpp:1836
static std::ostream & printAperture(std::ostream &os, const Value &value, const ExifData *)
Print lens aperture value.
Definition: nikonmn_int.cpp:2712
static const TagInfo * tagListAf()
Return read-only list of built-in Auto Focus tags.
Definition: nikonmn_int.cpp:880
static const TagInfo * tagListCb4()
Return read-only list of built-in Color Balance 4 tags.
Definition: nikonmn_int.cpp:1399
static std::ostream & printLensId4ZMount(std::ostream &os, const Value &value, const ExifData *)
Print lensname for ZMount Lens in new LensData as used for e.g. Nikon Z 6/7.
Definition: nikonmn_int.cpp:2925
static const TagInfo * tagListFl3()
Return read-only list of built-in Flash Info 3 tags.
Definition: nikonmn_int.cpp:1139
static std::ostream & print0x009e(std::ostream &os, const Value &value, const ExifData *)
Print retouch history.
Definition: nikonmn_int.cpp:2900
static const TagInfo * tagListFl2()
Return read-only list of built-in Flash Info 2 tags.
Definition: nikonmn_int.cpp:1119
static std::ostream & print0x0084(std::ostream &os, const Value &value, const ExifData *)
Print lens information.
Definition: nikonmn_int.cpp:1571
static std::ostream & print0x0002(std::ostream &os, const Value &value, const ExifData *)
Print ISO setting.
Definition: nikonmn_int.cpp:1512
static const TagInfo * tagListCb1()
Return read-only list of built-in Color Balance 1 tags.
Definition: nikonmn_int.cpp:1334
static std::ostream & printFStops(std::ostream &os, const Value &value, const ExifData *)
Print lens f-stops.
Definition: nikonmn_int.cpp:2746
static const TagInfo * tagListCb2b()
Return read-only list of built-in Color Balance 2b tags.
Definition: nikonmn_int.cpp:1373
static std::ostream & print0x009a(std::ostream &os, const Value &value, const ExifData *)
Print sensor pixel size.
Definition: nikonmn_int.cpp:2888
static const TagInfo * tagListSi5()
Return read-only list of built-in Shot Info tags.
Definition: nikonmn_int.cpp:1321
static std::ostream & printFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Print focus distance.
Definition: nikonmn_int.cpp:2693
static std::ostream & printFocalLd4(std::ostream &os, const Value &value, const ExifData *)
Print Focal length value for new LensData as used for e.g. Nikon Z 6/7.
Definition: nikonmn_int.cpp:2984
static std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print autofocus mode.
Definition: nikonmn_int.cpp:1525
static const TagInfo * tagListSi2()
Return read-only list of built-in Shot Info D40 tags.
Definition: nikonmn_int.cpp:1166
static std::ostream & print0x0089(std::ostream &os, const Value &value, const ExifData *metadata)
Print shooting mode.
Definition: nikonmn_int.cpp:1749
static const TagInfo * tagListFl1()
Return read-only list of built-in Flash Info 1 tags.
Definition: nikonmn_int.cpp:1099
static const TagInfo * tagListSi4()
Return read-only list of built-in Shot Info D300 (b) tags.
Definition: nikonmn_int.cpp:1286
static const TagInfo * tagListCb3()
Return read-only list of built-in Color Balance 3 tags.
Definition: nikonmn_int.cpp:1386
static std::ostream & printTimeZone(std::ostream &os, const Value &value, const ExifData *)
Print time zone.
Definition: nikonmn_int.cpp:2834
static const TagInfo * tagListLd1()
Return read-only list of built-in Lens Data 1 tags.
Definition: nikonmn_int.cpp:1418
static const TagInfo * tagListSi3()
Return read-only list of built-in Shot Info D300 (a) tags.
Definition: nikonmn_int.cpp:1226
static const TagInfo * tagList()
Return read-only list of built-in Nikon3 tags.
Definition: nikonmn_int.cpp:659
static std::ostream & print0x0088(std::ostream &os, const Value &value, const ExifData *)
Print AF point.
Definition: nikonmn_int.cpp:1653
static const TagInfo * tagListLd2()
Return read-only list of built-in Lens Data 2 tags.
Definition: nikonmn_int.cpp:1443
static const TagInfo * tagListCb2a()
Return read-only list of built-in Color Balance 2a tags.
Definition: nikonmn_int.cpp:1360
static std::ostream & printAfPointsInFocus(std::ostream &os, const Value &value, const ExifData *metadata)
Print AF Points In Focus.
Definition: nikonmn_int.cpp:1722
static std::ostream & print0x008b(std::ostream &os, const Value &value, const ExifData *)
Print number of lens stops.
Definition: nikonmn_int.cpp:1779
static std::ostream & printIiIso(std::ostream &os, const Value &value, const ExifData *)
Print Exif.NikonIi.ISO(2)
Definition: nikonmn_int.cpp:1504
static const TagInfo * tagListAFT()
Return read-only list of built-in AF Fine Tune tags.
Definition: nikonmn_int.cpp:768
static const TagInfo * tagListAf21()
Return read-only list of built-in Auto Focus 2 tags.
Definition: nikonmn_int.cpp:916
static const TagInfo * tagListVr()
Return read-only list of built-in Vibration Reduction tags.
Definition: nikonmn_int.cpp:691
static const TagInfo * tagListPc()
Return read-only list of built-in Picture Control tags.
Definition: nikonmn_int.cpp:747
Common interface for all types of values used with metadata.
Definition: value.hpp:51
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
Tag information.
Definition: tags.hpp:74