Exiv2
tags_int.hpp
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 */
20#ifndef TAGS_INT_HPP_
21#define TAGS_INT_HPP_
22
23// *****************************************************************************
24// included header files
25#include "types.hpp"
26#include "tags.hpp"
27#include "value.hpp"
28
29// + standard includes
30#include <string>
31#include <iostream>
32#include <memory>
33
34// *****************************************************************************
35// namespace extensions
36
37namespace Exiv2 {
38 class ExifData;
39
40 namespace Internal {
41
42// *****************************************************************************
43// class definitions
44
46 enum IfdId {
47 ifdIdNotSet,
48 ifd0Id,
49 ifd1Id,
50 ifd2Id,
51 ifd3Id,
52 exifId,
53 gpsId,
54 iopId,
55 mpfId,
56 subImage1Id,
57 subImage2Id,
58 subImage3Id,
59 subImage4Id,
60 subImage5Id,
61 subImage6Id,
62 subImage7Id,
63 subImage8Id,
64 subImage9Id,
65 subThumb1Id,
66 panaRawId,
67 mnId,
68 canonId,
69 canonAf2Id,
70 canonAf3Id,
71 canonAfCId,
72 canonAfMiAdjId,
73 canonAmId,
74 canonAsId,
75 canonCbId,
76 canonCiId,
77 canonCsId,
78 canonFilId,
79 canonFlId,
80 canonHdrId,
81 canonLeId,
82 canonMeId,
83 canonMoID,
84 canonMvId,
85 canonRawBId,
86 canonSiId,
87 canonCfId,
88 canonContrastId,
89 canonFcd1Id,
90 canonFcd2Id,
91 canonFcd3Id,
92 canonLiOpId,
93 canonMyColorID,
94 canonPiId,
95 canonPaId,
96 canonTiId,
97 canonFiId,
98 canonPrId,
99 canonPreID,
100 canonVigCorId,
101 canonVigCor2Id,
102 canonWbId,
103 casioId,
104 casio2Id,
105 fujiId,
106 minoltaId,
107 minoltaCs5DId,
108 minoltaCs7DId,
109 minoltaCsOldId,
110 minoltaCsNewId,
111 nikon1Id,
112 nikon2Id,
113 nikon3Id,
114 nikonPvId,
115 nikonVrId,
116 nikonPcId,
117 nikonWtId,
118 nikonIiId,
119 nikonAfId,
120 nikonAf21Id,
121 nikonAf22Id,
122 nikonAFTId,
123 nikonFiId,
124 nikonMeId,
125 nikonFl1Id,
126 nikonFl2Id,
127 nikonFl3Id,
128 nikonSi1Id,
129 nikonSi2Id,
130 nikonSi3Id,
131 nikonSi4Id,
132 nikonSi5Id,
133 nikonSi6Id,
134 nikonLd1Id,
135 nikonLd2Id,
136 nikonLd3Id,
137 nikonLd4Id,
138 nikonCb1Id,
139 nikonCb2Id,
140 nikonCb2aId,
141 nikonCb2bId,
142 nikonCb3Id,
143 nikonCb4Id,
144 olympusId,
145 olympus2Id,
146 olympusCsId,
147 olympusEqId,
148 olympusRdId,
149 olympusRd2Id,
150 olympusIpId,
151 olympusFiId,
152 olympusFe1Id,
153 olympusFe2Id,
154 olympusFe3Id,
155 olympusFe4Id,
156 olympusFe5Id,
157 olympusFe6Id,
158 olympusFe7Id,
159 olympusFe8Id,
160 olympusFe9Id,
161 olympusRiId,
162 panasonicId,
163 pentaxId,
164 pentaxDngId,
165 samsung2Id,
166 samsungPvId,
167 samsungPwId,
168 sigmaId,
169 sony1Id,
170 sony2Id,
171 sonyMltId,
172 sony1CsId,
173 sony1Cs2Id,
174 sony2CsId,
175 sony2Cs2Id,
176 sony2FpId,
177 sonyMisc1Id,
178 sonyMisc2bId,
179 sonyMisc3cId,
180 sonySInfo1Id,
181 sony2010eId,
182 sony1MltCs7DId,
183 sony1MltCsOldId,
184 sony1MltCsNewId,
185 sony1MltCsA100Id,
186 tagInfoMvId,
187 lastId,
188 ignoreId = lastId
189 };
190
195 enum SectionId { sectionIdNotSet,
196 imgStruct, // 4.6.4 A
197 recOffset, // 4.6.4 B
198 imgCharacter, // 4.6.4 C
199 otherTags, // 4.6.4 D
200 exifFormat, // 4.6.3
201 exifVersion, // 4.6.5 A
202 imgConfig, // 4.6.5 C
203 userInfo, // 4.6.5 D
204 relatedFile, // 4.6.5 E
205 dateTime, // 4.6.5 F
206 captureCond, // 4.6.5 G
207 gpsTags, // 4.6.6
208 iopTags, // 4.6.7
209 mpfTags,
210 makerTags, // MakerNote
211 dngTags, // DNG Spec
212 panaRaw,
213 tiffEp, // TIFF-EP Spec
214 tiffPm6,
215 adobeOpi,
216 lastSectionId };
217
219 struct SectionInfo {
221 const char* name_;
222 const char* desc_;
223 };
224
229 struct TagDetails {
230 int64_t val_;
231 const char* label_;
232
234 bool operator==(long key) const { return val_ == key; }
235 }; // struct TagDetails
236
242 uint32_t mask_;
243 const char* label_;
244 }; // struct TagDetailsBitmask
245
251 const char* voc_;
252 const char* label_;
253
261 bool operator==(const std::string& key) const;
262 }; // struct TagDetails
263
268 template <int N, const TagDetails (&array)[N]>
269 std::ostream& printTag(std::ostream& os, const Value& value, const ExifData*)
270 {
271 const TagDetails* td = find(array, value.toLong());
272 if (td) {
273 os << exvGettext(td->label_);
274 }
275 else {
276 os << "(" << value << ")";
277 }
278 return os;
279 }
280
282#define EXV_PRINT_TAG(array) printTag<EXV_COUNTOF(array), array>
283
288 template <int N, const TagDetailsBitmask (&array)[N]>
289 std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*)
290 {
291 const auto val = static_cast<uint32_t>(value.toLong());
292 if (val == 0 && N > 0) {
293 const TagDetailsBitmask* td = *(&array);
294 if (td->mask_ == 0) return os << exvGettext(td->label_);
295 }
296 bool sep = false;
297 for (int i = 0; i < N; ++i) {
298 // *& acrobatics is a workaround for a MSVC 7.1 bug
299 const TagDetailsBitmask* td = *(&array) + i;
300
301 if (val & td->mask_) {
302 if (sep) {
303 os << ", " << exvGettext(td->label_);
304 }
305 else {
306 os << exvGettext(td->label_);
307 sep = true;
308 }
309 }
310 }
311 return os;
312 }
313
315#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<EXV_COUNTOF(array), array>
316
321 template <int N, const TagVocabulary (&array)[N]>
322 std::ostream& printTagVocabulary(std::ostream& os, const Value& value, const ExifData*)
323 {
324 const TagVocabulary* td = find(array, value.toString());
325 if (td) {
326 os << exvGettext(td->label_);
327 }
328 else {
329 os << "(" << value << ")";
330 }
331 return os;
332 }
333
335#define EXV_PRINT_VOCABULARY(array) printTagVocabulary<EXV_COUNTOF(array), array>
336
337// *****************************************************************************
338// free functions
339
341 const TagInfo* ifdTagList();
343 const TagInfo* exifTagList();
345 const TagInfo* iopTagList();
347 const TagInfo* gpsTagList();
349 const TagInfo* mnTagList();
351 const TagInfo* mpfTagList();
352
353 const GroupInfo* groupList();
354 const TagInfo* tagList(const std::string& groupName);
355
357 IfdId groupId(const std::string& groupName);
359 const char* ifdName(IfdId ifdId);
361 const char* groupName(IfdId ifdId);
362
364 bool isMakerIfd(IfdId ifdId);
366 bool isExifIfd(IfdId ifdId);
367
369 void taglist(std::ostream& os, IfdId ifdId);
371 const TagInfo* tagList(IfdId ifdId);
373 const TagInfo* tagInfo(uint16_t tag, IfdId ifdId);
375 const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId);
383 uint16_t tagNumber(const std::string& tagName, IfdId ifdId);
384
386
387
388 std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*);
390 std::ostream& printLong(std::ostream& os, const Value& value, const ExifData*);
392 std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*);
394 std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*);
396 std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*);
398 std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData*);
400 std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*);
402 std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData*);
404 std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*);
406 std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*);
408 std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData*);
410 std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData*);
412 std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData*);
414 std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData*);
416 std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData*);
418 std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData*);
420 std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData*);
422 std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*);
424 std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*);
426 std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*);
428 std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData*);
430 std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*);
432 std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*);
434 std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*);
436 std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*);
438 std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*);
440 std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*);
442 std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData*);
444 std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData*);
446 std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*);
448 std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData*);
450 std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData*);
452 std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData*);
454 std::ostream& print0xa301(std::ostream& os, const Value& value, const ExifData*);
456 std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData*);
458 std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData*);
460 std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData*);
462 std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*);
464 std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*);
466 std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData*);
468 std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData*);
470 std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData*);
472 std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData*);
474 std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData*);
476 std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData*);
478 std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*);
480 std::ostream& printXmpVersion(std::ostream& os, const Value& value, const ExifData*);
482 std::ostream& printXmpDate(std::ostream& os, const Value& value, const ExifData*);
484 std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData*);
486
488 float fnumber(float apertureValue);
489
492
493}} // namespace Internal, Exiv2
494
495#endif // #ifndef TAGS_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
Common interface for all types of values used with metadata.
Definition: value.hpp:51
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...
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:125
const char * groupName(IfdId ifdId)
Return the group name for a group id.
Definition: tags_int.cpp:2559
std::ostream & print0xa405(std::ostream &os, const Value &value, const ExifData *)
Print 35mm equivalent focal length.
Definition: tags_int.cpp:3154
std::ostream & print0xa407(std::ostream &os, const Value &value, const ExifData *metadata)
Print gain control.
Definition: tags_int.cpp:3189
std::ostream & print0x9206(std::ostream &os, const Value &value, const ExifData *)
Print the subject distance.
Definition: tags_int.cpp:2990
bool isMakerIfd(IfdId ifdId)
Return true if ifdId is a makernote IFD id. (Note: returns false for makerIfd)
Definition: tags_int.cpp:2464
std::ostream & printUcs2(std::ostream &os, const Value &value, const ExifData *)
Print function converting from UCS-2LE to UTF-8.
Definition: tags_int.cpp:2692
std::ostream & print0xa001(std::ostream &os, const Value &value, const ExifData *metadata)
Print color space.
Definition: tags_int.cpp:3060
std::ostream & print0xa300(std::ostream &os, const Value &value, const ExifData *metadata)
Print file source.
Definition: tags_int.cpp:3088
std::ostream & print0x9202(std::ostream &os, const Value &value, const ExifData *)
Print f-number converted from APEX aperture value.
Definition: tags_int.cpp:2954
std::ostream & printDegrees(std::ostream &os, const Value &value, const ExifData *)
Print a longitude or latitude value.
Definition: tags_int.cpp:2656
std::ostream & printTag(std::ostream &os, const Value &value, const ExifData *)
Generic pretty-print function to translate a long value to a description by looking up a reference ta...
Definition: tags_int.hpp:269
std::ostream & print0x8827(std::ostream &os, const Value &value, const ExifData *)
Print ISO speed ratings.
Definition: tags_int.cpp:2918
URational exposureTime(float shutterSpeedValue)
Calculate the exposure time from an APEX shutter speed value.
Definition: tags_int.cpp:2606
std::ostream & print0xa409(std::ostream &os, const Value &value, const ExifData *metadata)
Print saturation.
Definition: tags_int.cpp:3201
std::ostream & print0x0009(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS status.
Definition: tags_int.cpp:2799
std::ostream & print0xa217(std::ostream &os, const Value &value, const ExifData *metadata)
Print sensing method.
Definition: tags_int.cpp:3076
std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS speed ref.
Definition: tags_int.cpp:2809
std::ostream & print0xa40c(std::ostream &os, const Value &value, const ExifData *metadata)
Print subject distance range.
Definition: tags_int.cpp:3215
std::ostream & print0x829a(std::ostream &os, const Value &value, const ExifData *)
Print the exposure time.
Definition: tags_int.cpp:2859
std::ostream & print0x829d(std::ostream &os, const Value &value, const ExifData *)
Print the f-number.
Definition: tags_int.cpp:2882
SectionId
Section identifiers to logically group tags. A section consists of nothing more than a name,...
Definition: tags_int.hpp:195
const TagInfo * mpfTagList()
Return read-only list of built-in mfp Tags http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/MPF....
Definition: tags_int.cpp:2405
std::ostream & print0x0019(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS destination distance ref.
Definition: tags_int.cpp:2814
std::ostream & printExifUnit(std::ostream &os, const Value &value, const ExifData *metadata)
Print function for Exif units.
Definition: tags_int.cpp:2720
void taglist(std::ostream &os, IfdId ifdId)
Print the list of tags for ifdId to the output stream os.
Definition: tags_int.cpp:2502
std::ostream & print0xa403(std::ostream &os, const Value &value, const ExifData *metadata)
Print white balance.
Definition: tags_int.cpp:3132
std::ostream & print0x0005(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS altitude ref.
Definition: tags_int.cpp:2740
const TagInfo * tagList(IfdId ifdId)
Return the tag list for ifdId.
Definition: tags_int.cpp:2512
std::ostream & print0x9201(std::ostream &os, const Value &value, const ExifData *)
Print exposure time converted from APEX shutter speed value.
Definition: tags_int.cpp:2941
std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS measurement mode.
Definition: tags_int.cpp:2804
const TagInfo * iopTagList()
Return read-only list of built-in IOP tags.
Definition: tags_int.cpp:2438
std::ostream & print0x0112(std::ostream &os, const Value &value, const ExifData *metadata)
Print orientation.
Definition: tags_int.cpp:2824
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:3237
std::ostream & printBitmask(std::ostream &os, const Value &value, const ExifData *metadata)
Print a bitmask as (none) | n | n,m... where: (none) = no bits set | n = bit n from left (0=left-most...
Definition: tags_int.cpp:2571
const char * ifdName(IfdId ifdId)
Return the name of the IFD.
Definition: tags_int.cpp:2552
std::ostream & printNormalSoftHard(std::ostream &os, const Value &value, const ExifData *metadata)
Print contrast, sharpness (normal, soft, hard)
Definition: tags_int.cpp:3232
std::ostream & print0x0213(std::ostream &os, const Value &value, const ExifData *metadata)
Print YCbCrPositioning.
Definition: tags_int.cpp:2834
std::ostream & print0x920a(std::ostream &os, const Value &value, const ExifData *)
Print the actual focal length of the lens.
Definition: tags_int.cpp:3036
const TagInfo * tagInfo(uint16_t tag, IfdId ifdId)
Return the tag info for tag and ifdId.
Definition: tags_int.cpp:2519
std::ostream & print0xa401(std::ostream &os, const Value &value, const ExifData *metadata)
Print custom rendered.
Definition: tags_int.cpp:3109
uint16_t tagNumber(const std::string &tagName, IfdId ifdId)
Return the tag number for one combination of IFD id and tagName. If the tagName is not known,...
Definition: tags_int.cpp:2627
float fnumber(float apertureValue)
Calculate F number from an APEX aperture value.
Definition: tags_int.cpp:2597
std::ostream & printTagBitmask(std::ostream &os, const Value &value, const ExifData *)
Generic print function to translate a long value to a description by looking up bitmasks in a referen...
Definition: tags_int.hpp:289
std::ostream & printGPSDirRef(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS direction ref.
Definition: tags_int.cpp:3220
std::ostream & printXmpVersion(std::ostream &os, const Value &value, const ExifData *)
Print any version encoded in the ASCII string majormajorminorminor.
Definition: tags_int.cpp:3252
const TagInfo * gpsTagList()
Return read-only list of built-in GPS tags.
Definition: tags_int.cpp:2335
std::ostream & print0x9101(std::ostream &os, const Value &value, const ExifData *)
Print components configuration specific to compressed data.
Definition: tags_int.cpp:2923
std::ostream & print0x0000(std::ostream &os, const Value &value, const ExifData *)
Print GPS version.
Definition: tags_int.cpp:2725
std::ostream & print0xa402(std::ostream &os, const Value &value, const ExifData *metadata)
Print exposure mode.
Definition: tags_int.cpp:3121
std::ostream & print0xa404(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom ratio.
Definition: tags_int.cpp:3137
IfdId groupId(const std::string &groupName)
Return the group id for a group name.
Definition: tags_int.cpp:2544
std::ostream & print0x8298(std::ostream &os, const Value &value, const ExifData *)
Print the copyright.
Definition: tags_int.cpp:2839
std::ostream & printTagVocabulary(std::ostream &os, const Value &value, const ExifData *)
Generic pretty-print function to translate a controlled vocabulary value (string) to a description by...
Definition: tags_int.hpp:322
std::ostream & print0x0006(std::ostream &os, const Value &value, const ExifData *)
Print GPS altitude.
Definition: tags_int.cpp:2745
std::ostream & printFloat(std::ostream &os, const Value &value, const ExifData *)
Print a Rational or URational value in floating point format.
Definition: tags_int.cpp:2645
const TagInfo * exifTagList()
Return read-only list of built-in Exif IFD tags.
Definition: tags_int.cpp:2115
IfdId
Type to specify the IFD to which a metadata belongs.
Definition: tags_int.hpp:46
const TagInfo * ifdTagList()
Return read-only list of built-in IFD0/1 tags.
Definition: tags_int.cpp:1728
std::ostream & print0x9204(std::ostream &os, const Value &value, const ExifData *)
Print the exposure bias value.
Definition: tags_int.cpp:2969
std::ostream & printXmpDate(std::ostream &os, const Value &value, const ExifData *)
Print a date following the format YYYY-MM-DDTHH:MM:SSZ.
Definition: tags_int.cpp:3261
std::ostream & print0xa406(std::ostream &os, const Value &value, const ExifData *metadata)
Print scene capture type.
Definition: tags_int.cpp:3175
std::ostream & printValue(std::ostream &os, const Value &value, const ExifData *)
Default print function, using the Value output operator.
Definition: tags_int.cpp:2566
bool isExifIfd(IfdId ifdId)
Return true if ifdId is an Exif IFD id.
Definition: tags_int.cpp:2474
const TagInfo * mnTagList()
Return read-only list of built-in Exiv2 Makernote info tags.
Definition: tags_int.cpp:2457
std::ostream & print0x9208(std::ostream &os, const Value &value, const ExifData *metadata)
Print light source.
Definition: tags_int.cpp:3031
std::ostream & print0x8822(std::ostream &os, const Value &value, const ExifData *metadata)
Print exposure program.
Definition: tags_int.cpp:2913
std::ostream & print0x001e(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS differential correction.
Definition: tags_int.cpp:2819
std::ostream & printLong(std::ostream &os, const Value &value, const ExifData *)
Print the value converted to a long.
Definition: tags_int.cpp:2638
std::ostream & print0x9207(std::ostream &os, const Value &value, const ExifData *metadata)
Print metering mode.
Definition: tags_int.cpp:3026
std::ostream & print0xa301(std::ostream &os, const Value &value, const ExifData *metadata)
Print scene type.
Definition: tags_int.cpp:3098
std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print GPS timestamp.
Definition: tags_int.cpp:2760
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: basicio.hpp:43
const T * find(T(&src)[N], const K &key)
Find an element that matches key in the array src.
Definition: types.hpp:497
EXIV2API const char * exvGettext(const char *str)
Translate a string using the gettext framework. This wrapper hides all the implementation details fro...
Definition: types.cpp:671
EXIV2API ExifData::const_iterator apertureValue(const ExifData &ed)
Return the aperture value.
Definition: easyaccess.cpp:482
EXIV2API ExifData::const_iterator shutterSpeedValue(const ExifData &ed)
Return the shutter speed value.
Definition: easyaccess.cpp:473
std::pair< uint32_t, uint32_t > URational
8 byte unsigned rational type.
Definition: types.hpp:78
The details of an Exif group. Groups include IFDs and binary arrays.
Definition: tags.hpp:57
The details of a section.
Definition: tags_int.hpp:219
const char * name_
Section name (one word)
Definition: tags_int.hpp:221
SectionId sectionId_
Section id.
Definition: tags_int.hpp:220
const char * desc_
Section description.
Definition: tags_int.hpp:222
Helper structure for lookup tables for translations of bitmask values to human readable labels.
Definition: tags_int.hpp:241
uint32_t mask_
Bitmask value.
Definition: tags_int.hpp:242
const char * label_
Description of the tag value.
Definition: tags_int.hpp:243
Helper structure for lookup tables for translations of numeric tag values to human readable labels.
Definition: tags_int.hpp:229
const char * label_
Translation of the tag value.
Definition: tags_int.hpp:231
int64_t val_
Tag value.
Definition: tags_int.hpp:230
bool operator==(long key) const
Comparison operator for use with the find template.
Definition: tags_int.hpp:234
Helper structure for lookup tables for translations of controlled vocabulary strings to their descrip...
Definition: tags_int.hpp:250
const char * voc_
Vocabulary string.
Definition: tags_int.hpp:251
const char * label_
Description of the vocabulary string.
Definition: tags_int.hpp:252
bool operator==(const std::string &key) const
Comparison operator for use with the find template.
Definition: tags.cpp:90
Tag information.
Definition: tags.hpp:74