 |
Exiv2
|
Go to the documentation of this file.
32 #ifndef NIKONMN_INT_HPP_
33 #define NIKONMN_INT_HPP_
77 static const TagInfo tagInfo_[];
98 static const TagInfo tagInfo_[];
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);
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_[];
290 #endif // #ifndef NIKONMN_INT_HPP_
static const TagInfo * tagListCb2a()
Return read-only list of built-in Color Balance 2a tags.
Definition: nikonmn_int.cpp:1359
const TagDetails nikonOffOn2[]
VibrationReduction.
static std::ostream & printFStops(std::ostream &os, const Value &value, const ExifData *)
Print lens f-stops.
Definition: nikonmn_int.cpp:2742
std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print GPS timestamp.
Definition: tags_int.cpp:2720
Helper structure for lookup tables for translations of numeric tag values to human readable labels.
Definition: tags_int.hpp:225
const TagDetails nikon2ImageAdjustment[]
ImageAdjustment, tag 0x0005.
static std::ostream & printAfPointsInFocus(std::ostream &os, const Value &value, const ExifData *metadata)
Print AF Points In Focus.
Definition: nikonmn_int.cpp:1721
static std::ostream & print0x0002(std::ostream &os, const Value &value, const ExifData *)
Print ISO setting.
Definition: nikonmn_int.cpp:1511
const TagDetails nikonExternalFlashFlags[]
ExternalFlashFlags.
Nikon makernote tags. References: [1] MakerNote EXIF Tag of the Nikon 990 by Max Lyons [2] Exif fil...
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:2973
const TagDetails nikon2IsoSpeed[]
ISOSpeed, tag 0x0006.
static const TagInfo * tagListSi1()
Return read-only list of built-in Shot Info D80 tags.
Definition: nikonmn_int.cpp:1151
virtual Rational toRational(long n=0) const =0
Convert the n-th component of the value to a Rational. The behaviour of this method may be undefined ...
virtual long size() const =0
Return the size of the value in bytes.
iterator findKey(const ExifKey &key)
Find the first Exifdatum with the given key, return an iterator to it.
Definition: exif.cpp:605
Common interface for all types of values used with metadata.
Definition: value.hpp:51
static const TagInfo * tagListFl1()
Return read-only list of built-in Flash Info 1 tags.
Definition: nikonmn_int.cpp:1098
const TagDetails nikonOffOn3[]
VibrationReduction2.
const TagDetails nikonAfFineTuneAdj1[]
AfFineTuneAdj D300 (a)
const TagDetails nikonFlashSource[]
FlashSource.
ExifMetadata::const_iterator const_iterator
ExifMetadata const iterator type.
Definition: exif.hpp:439
static std::ostream & print0x0084(std::ostream &os, const Value &value, const ExifData *)
Print lens information.
Definition: nikonmn_int.cpp:1570
@ undefined
Exif UNDEFINED type, an 8-bit byte that may contain anything.
Definition: types.hpp:126
TypeId typeId() const
Return the type identifier (Exif data format type).
Definition: value.hpp:104
static const TagInfo * tagListAf22()
Return read-only list of built-in Auto Focus 2 tags.
Definition: nikonmn_int.cpp:939
const TagDetails nikonIsoExpansion[]
ISOExpansion, tag index 4 and 10.
const char *const nikonFocuspoints[]
Focus points for Nikon cameras, used for Nikon 1 and Nikon 3 makernotes.
static const TagInfo * tagListCb1()
Return read-only list of built-in Color Balance 1 tags.
Definition: nikonmn_int.cpp:1333
static std::ostream & print0x0083(std::ostream &os, const Value &value, const ExifData *)
Print lens type.
Definition: nikonmn_int.cpp:1536
ValueList value_
The container for all values. In your application, if you know what subclass of Value you're dealing ...
Definition: value.hpp:1316
@ signedShort
Exif SSHORT type, a 16-bit (2-byte) signed (twos-complement) integer.
Definition: types.hpp:127
static std::ostream & printPictureControl(std::ostream &os, const Value &value, const ExifData *)
Print picture control value.
Definition: nikonmn_int.cpp:2852
const EXIV2API char * exvGettext(const char *str)
Translate a string using the gettext framework. This wrapper hides all the implementation details fro...
Definition: types.cpp:571
@ asciiString
Exif ASCII type, 8-bit byte.
Definition: types.hpp:121
static std::ostream & printTimeZone(std::ostream &os, const Value &value, const ExifData *)
Print time zone.
Definition: nikonmn_int.cpp:2830
static std::ostream & printBarValue(std::ostream &os, const Value &value, const ExifData *)
Print BarometerInfo.
Definition: nikonmn_int.cpp:294
const TagDetails nikonDateDisplayFormat[]
DateDisplayFormat, tag index 3.
static const TagInfo * tagListSi4()
Return read-only list of built-in Shot Info D300 (b) tags.
Definition: nikonmn_int.cpp:1285
static std::ostream & printFocal(std::ostream &os, const Value &value, const ExifData *)
Print lens focal length.
Definition: nikonmn_int.cpp:2727
virtual long count() const =0
Return the number of components of the value.
const TagDetails nikon2WhiteBalance[]
WhiteBalance, tag 0x0007.
iterator end()
End of the metadata.
Definition: exif.hpp:492
static std::ostream & printLensId(std::ostream &os, const Value &value, const ExifData *metadata, const std::string &group)
Print lens name.
Definition: nikonmn_int.cpp:1835
const TagDetails nikonOnOff[]
OnOff.
@ unsignedLong
Exif LONG type, 32-bit (4-byte) unsigned integer.
Definition: types.hpp:123
static std::ostream & print0x0086(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:1628
const TagDetails nikonAfAreaMode[]
AfAreaMode.
std::string & trim(std::string &s, const char *t=" \t\n\r\f\v")
trim from left & right
Definition: minoltamn_int.cpp:2002
const TagDetails nikonFilterEffect[]
FilterEffect.
const TagDetails nikonActiveDLighning[]
Off, Low, Normal, High, multiple tags.
static std::ostream & print0x009e(std::ostream &os, const Value &value, const ExifData *)
Print retouch history.
Definition: nikonmn_int.cpp:2896
static const TagInfo * tagListAFT()
Return read-only list of built-in AF Fine Tune tags.
Definition: nikonmn_int.cpp:767
static const TagInfo * tagList()
Return read-only list of built-in Nikon1 tags.
Definition: nikonmn_int.cpp:266
const TagDetails nikonPhaseDetectAF[]
PhaseDetectAF.
virtual float toFloat(long n=0) const =0
Convert the n-th component of the value to a float. The behaviour of this method may be undefined if ...
static const TagInfo * tagList()
Return read-only list of built-in Nikon2 tags.
Definition: nikonmn_int.cpp:528
@ unsignedRational
Exif RATIONAL type, two LONGs: numerator and denumerator of a fraction.
Definition: types.hpp:124
static std::ostream & print0x0086(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:346
const TagDetails nikon2ColorMode[]
ColorMode, tag 0x0004.
const TagDetails nikonFlashColorFilter[]
FlashColorFilter.
const TagDetails nikonAdjust[]
Adjust.
static std::ostream & print0x0085(std::ostream &os, const Value &value, const ExifData *)
Print manual focus distance.
Definition: nikonmn_int.cpp:322
const TagDetails aftOnOff[]
OnOff.
static std::ostream & print0x0089(std::ostream &os, const Value &value, const ExifData *metadata)
Print shooting mode.
Definition: nikonmn_int.cpp:1748
static std::ostream & printAperture(std::ostream &os, const Value &value, const ExifData *)
Print lens aperture value.
Definition: nikonmn_int.cpp:2708
static const TagInfo * tagListMe()
Return read-only list of built-in Multi Exposure tags.
Definition: nikonmn_int.cpp:976
static const TagInfo * tagListCb4()
Return read-only list of built-in Color Balance 4 tags.
Definition: nikonmn_int.cpp:1398
static const TagInfo * tagListFi()
Return read-only list of built-in File Info tags.
Definition: nikonmn_int.cpp:954
static std::ostream & print0x008b(std::ostream &os, const Value &value, const ExifData *)
Print number of lens stops.
Definition: nikonmn_int.cpp:1778
static const TagInfo * tagListFl2()
Return read-only list of built-in Flash Info 2 tags.
Definition: nikonmn_int.cpp:1118
@ unsignedByte
Exif BYTE type, 8-bit unsigned integer.
Definition: types.hpp:120
const TagDetails nikonRetouchHistory[]
RetouchHistory, tag 0x009e.
std::ostream & printValue(std::ostream &os, const Value &value, const ExifData *)
Default print function, using the Value output operator.
Definition: tags_int.cpp:2547
static std::ostream & print0x0002(std::ostream &os, const Value &value, const ExifData *)
Print ISO setting.
Definition: nikonmn_int.cpp:271
@ signedByte
Exif SBYTE type, an 8-bit signed (twos-complement) integer.
Definition: types.hpp:125
Concrete keys for Exif metadata and access to Exif tag reference data.
Definition: tags.hpp:140
static std::ostream & print0x0085(std::ostream &os, const Value &value, const ExifData *)
Print manual focus distance.
Definition: nikonmn_int.cpp:1604
std::string toString() const
Return the value as a string. Implemented in terms of write(std::ostream& os) const of the concrete c...
Definition: value.cpp:168
static const TagInfo * tagListLd4()
Return read-only list of built-in Lens Data 4 tags.
Definition: nikonmn_int.cpp:1498
EXIV2API int32_t getLong(const byte *buf, ByteOrder byteOrder)
Read a 4 byte signed long value from the data buffer.
Definition: types.cpp:323
const char * label_
Translation of the tag value.
Definition: tags_int.hpp:227
static const TagInfo * tagListCb3()
Return read-only list of built-in Color Balance 3 tags.
Definition: nikonmn_int.cpp:1385
const TagDetails nikonAutoBracketRelease[]
AutoBracketRelease, tag 0x008a.
const TagDetails nikonYesNo[]
YesNo, used for DaylightSavings, tag index 2.
const T * find(T(&src)[N], const K &key)
Find an element that matches key in the array src.
Definition: types.hpp:497
const TagDetailsBitmask nikonShootingMode[]
ShootingMode, tag 0x0089.
std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS measurement mode.
Definition: tags_int.cpp:2761
const char *const nikonFocusarea[]
Focus area for Nikon cameras.
const TagDetails nikonFlashGNDistance[]
FlashGNDistance.
virtual long toLong(long n=0) const =0
Convert the n-th component of the value to a long. The behaviour of this method may be undefined if t...
static const TagInfo * tagList()
Return read-only list of built-in Nikon3 tags.
Definition: nikonmn_int.cpp:658
@ unsignedShort
Exif SHORT type, 16-bit (2-byte) unsigned integer.
Definition: types.hpp:122
static std::ostream & printIiIso(std::ostream &os, const Value &value, const ExifData *)
Print Exif.NikonIi.ISO(2)
Definition: nikonmn_int.cpp:1503
static const TagInfo * tagListCb2b()
Return read-only list of built-in Color Balance 2b tags.
Definition: nikonmn_int.cpp:1372
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:2921
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
std::pair< int32_t, int32_t > Rational
8 byte signed rational type.
Definition: types.hpp:99
static const TagInfo * tagListAf()
Return read-only list of built-in Auto Focus tags.
Definition: nikonmn_int.cpp:879
A MakerNote format used by Nikon cameras, such as the E990 and D1.
Definition: nikonmn_int.hpp:54
@ signedLong
Exif SLONG type, a 32-bit (4-byte) signed (twos-complement) integer.
Definition: types.hpp:128
const TagDetails nikonFlashControlMode[]
FlashControlMode.
const TagDetails nikonColorSpace[]
ColorSpace, tag 0x001e.
static const TagInfo * tagListSi5()
Return read-only list of built-in Shot Info tags.
Definition: nikonmn_int.cpp:1320
const TagDetails nikonOlnh[]
Off, Low, Normal, High, multiple tags.
static std::ostream & print0x009a(std::ostream &os, const Value &value, const ExifData *)
Print sensor pixel size.
Definition: nikonmn_int.cpp:2884
const TagDetails nikonToningEffect[]
ToningEffect.
static const TagInfo * tagListFl3()
Return read-only list of built-in Flash Info 3 tags.
Definition: nikonmn_int.cpp:1138
@ signedRational
Exif SRATIONAL type, two SLONGs: numerator and denumerator of a fraction.
Definition: types.hpp:129
static const TagInfo * tagListSi2()
Return read-only list of built-in Shot Info D40 tags.
Definition: nikonmn_int.cpp:1165
static std::ostream & print0x0088(std::ostream &os, const Value &value, const ExifData *)
Print AF focus position.
Definition: nikonmn_int.cpp:370
const TagDetails nikonNefCompression[]
NEFCompression, tag 0x0093.
Tag information.
Definition: tags.hpp:74
static const TagInfo * tagListPc()
Return read-only list of built-in Picture Control tags.
Definition: nikonmn_int.cpp:746
static std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print autofocus mode.
Definition: nikonmn_int.cpp:1524
static std::ostream & print0x0088(std::ostream &os, const Value &value, const ExifData *)
Print AF point.
Definition: nikonmn_int.cpp:1652
static const TagInfo * tagListVr()
Return read-only list of built-in Vibration Reduction tags.
Definition: nikonmn_int.cpp:690
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:102
const TagDetails nikonFlashMode[]
FlashMode, tag 0x0087.
static std::ostream & printFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Print focus distance.
Definition: nikonmn_int.cpp:2689
const TagDetails nikonFlashComp[]
FlashComp, tag 0x0012.
static std::ostream & printRepeatingFlashRate(std::ostream &os, const Value &value, const ExifData *)
Print repeating flash rate.
Definition: nikonmn_int.cpp:2798
const TagDetails nikonOffOn[]
OffOn, multiple tags.
const TagDetails nikonFlashFirmware[]
FlashFirmware.
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:2958
static std::ostream & printRepeatingFlashCount(std::ostream &os, const Value &value, const ExifData *)
Print repeating flash count.
Definition: nikonmn_int.cpp:2814
static std::ostream & printExitPupilPosition(std::ostream &os, const Value &value, const ExifData *)
Print exit pupil position.
Definition: nikonmn_int.cpp:2761
std::string readExiv2Config(const std::string §ion, const std::string &value, const std::string &def)
Read value from Exiv2 configuration file.
Definition: makernote_int.cpp:113
const TagDetails nikonHighISONoiseReduction[]
HighISONoiseReduction, tag 0x00b1.
static const TagInfo * tagListCb2()
Return read-only list of built-in Color Balance 2 tags.
Definition: nikonmn_int.cpp:1346
static const TagInfo * tagListAf21()
Return read-only list of built-in Auto Focus 2 tags.
Definition: nikonmn_int.cpp:915
const TagDetails nikon2Quality[]
Quality, tag 0x0003.
EXIV2API ExifData::const_iterator model(const ExifData &ed)
Return the camera model.
Definition: easyaccess.cpp:445
static std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:533
const TagDetailsBitmask nikonAfPointsInFocus[]
AfPointsInFocus.
const TagDetails nikonAfFineTuneAdj2[]
AfFineTuneAdj D300 (b)
static const TagInfo * tagListWt()
Return read-only list of built-in World time tags.
Definition: nikonmn_int.cpp:781
const TagDetails nikonMultiExposureMode[]
MultiExposureMode.
A third MakerNote format used by Nikon cameras, e.g., E5400, SQ, D2H, D70.
Definition: nikonmn_int.hpp:103
std::string toString(const T &arg)
Utility function to convert the argument of any type to a string.
Definition: types.hpp:510
A second MakerNote format used by Nikon cameras, including the E700, E800, E900, E900S,...
Definition: nikonmn_int.hpp:85
Template for a Value of a basic type. This is used for unsigned and signed short, long and rationals.
Definition: value.hpp:1235
const TagDetails nikonAfPoint[]
AfPoint.
std::ostream & printExifVersion(std::ostream &os, const Value &value, const ExifData *)
Print any version packed in 4 Bytes format : major major minor minor.
Definition: tags_int.cpp:3199
static const TagInfo * tagListLd2()
Return read-only list of built-in Lens Data 2 tags.
Definition: nikonmn_int.cpp:1442
static std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print autofocus mode.
Definition: nikonmn_int.cpp:310
static const TagInfo * tagListLd1()
Return read-only list of built-in Lens Data 1 tags.
Definition: nikonmn_int.cpp:1417
Error class for exceptions, log message class.
const TagDetailsBitmask nikonShootingModeD70[]
ShootingMode D70, tag 0x0089.
static std::ostream & printFlashFocalLength(std::ostream &os, const Value &value, const ExifData *)
Print flash focal length.
Definition: nikonmn_int.cpp:2780
const TagDetails nikonShutterModes[]
Shutter Modes (credits to exiftool)
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
static const TagInfo * tagListIi()
Return read-only list of built-in ISO info tags.
Definition: nikonmn_int.cpp:825
static const TagInfo * tagListLd3()
Return read-only list of built-in Lens Data 3 tags.
Definition: nikonmn_int.cpp:1467
static const TagInfo * tagListSi3()
Return read-only list of built-in Shot Info D300 (a) tags.
Definition: nikonmn_int.cpp:1225