Exiv2
canonmn_int.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #ifndef EXIV2_CANONMN_INT_HPP
16 #define EXIV2_CANONMN_INT_HPP
17 
18 // *****************************************************************************
19 // included header files
20 #include "tags.hpp"
21 
22 // *****************************************************************************
23 // namespace extensions
24 namespace Exiv2::Internal {
25 // *****************************************************************************
26 // class definitions
27 
30  public:
32  static const TagInfo* tagList();
34  static const TagInfo* tagListCs();
36  static const TagInfo* tagListSi();
38  static const TagInfo* tagListPa();
40  static const TagInfo* tagListCf();
42  static const TagInfo* tagListPi();
44  static const TagInfo* tagListTi();
46  static const TagInfo* tagListFi();
48  static const TagInfo* tagListPr();
50  static const TagInfo* tagListMv();
52  static const TagInfo* tagListMc();
54  static const TagInfo* tagListFcd3();
56  static const TagInfo* tagListWbi();
58  static const TagInfo* tagListCo();
60  static const TagInfo* tagListFcd2();
62  static const TagInfo* tagListFcd1();
64  static const TagInfo* tagListAs();
66  static const TagInfo* tagListCbi();
68  static const TagInfo* tagListFl();
70  static const TagInfo* tagListMo();
72  static const TagInfo* tagListPreI();
74  static const TagInfo* tagListCi();
76  static const TagInfo* tagListAfMiAdj();
78  static const TagInfo* tagListVigCor();
80  static const TagInfo* tagListVigCor2();
82  static const TagInfo* tagListLiOp();
84  static const TagInfo* tagListLe();
86  static const TagInfo* tagListAm();
88  static const TagInfo* tagListMe();
90  static const TagInfo* tagListFil();
92  static const TagInfo* tagListHdr();
94  static const TagInfo* tagListAfC();
96  static const TagInfo* tagListRawB();
97 
99 
100  static std::ostream& printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata);
103  static std::ostream& printFocalLength(std::ostream& os, const Value& value, const ExifData*);
105  static std::ostream& print0x0008(std::ostream& os, const Value& value, const ExifData*);
107  static std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData*);
109  static std::ostream& printCs0x0002(std::ostream& os, const Value& value, const ExifData*);
111  static std::ostream& printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata);
113  static std::ostream& printCsLens(std::ostream& os, const Value& value, const ExifData*);
115  static std::ostream& printLe0x0000(std::ostream& os, const Value& value, const ExifData*);
117  static std::ostream& printSi0x0001(std::ostream& os, const Value& value, const ExifData*);
119  static std::ostream& printSi0x0002(std::ostream& os, const Value& value, const ExifData*);
121  static std::ostream& printSi0x0003(std::ostream& os, const Value& value, const ExifData*);
123  static std::ostream& printSi0x0009(std::ostream& os, const Value& value, const ExifData*);
125  static std::ostream& printSi0x000c(std::ostream& os, const Value& value, const ExifData*);
127  static std::ostream& printSi0x000d(std::ostream& os, const Value& value, const ExifData*);
129  static std::ostream& printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData);
131  static std::ostream& printSi0x0013(std::ostream& os, const Value& value, const ExifData*);
133  static std::ostream& printSi0x0015(std::ostream& os, const Value& value, const ExifData*);
135  static std::ostream& printSi0x0016(std::ostream& os, const Value& value, const ExifData*);
137  static std::ostream& printSi0x0017(std::ostream& os, const Value& value, const ExifData*);
139  static std::ostream& printSi0x0018(std::ostream& os, const Value& value, const ExifData*);
141  static std::ostream& printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*);
143 
144  private:
145  // DATA
146 
148  static const TagInfo tagInfo_[];
149  static const TagInfo tagInfoAfC_[];
150  static const TagInfo tagInfoAfMiAdj_[];
151  static const TagInfo tagInfoAm_[];
152  static const TagInfo tagInfoAs_[];
153  static const TagInfo tagInfoCs_[];
154  static const TagInfo tagInfoCbi_[];
155  static const TagInfo tagInfoSi_[];
156  static const TagInfo tagInfoCf_[];
157  static const TagInfo tagInfoCi_[];
158  static const TagInfo tagInfoCo_[];
159  static const TagInfo tagInfoFl_[];
160  static const TagInfo tagInfoFil_[];
161  static const TagInfo tagInfoLiOp_[];
162  static const TagInfo tagInfoLe_[];
163  static const TagInfo tagInfoHdr_[];
164  static const TagInfo tagInfoMe_[];
165  static const TagInfo tagInfoMo_[];
166  static const TagInfo tagInfoMv_[];
167  static const TagInfo tagInfoMc_[];
168  static const TagInfo tagInfoFcd1_[];
169  static const TagInfo tagInfoFcd2_[];
170  static const TagInfo tagInfoFcd3_[];
171  static const TagInfo tagInfoPi_[];
172  static const TagInfo tagInfoTi_[];
173  static const TagInfo tagInfoFi_[];
174  static const TagInfo tagInfoPa_[];
175  static const TagInfo tagInfoPr_[];
176  static const TagInfo tagInfoPreI_[];
177  static const TagInfo tagInfoVigCor_[];
178  static const TagInfo tagInfoVigCor2_[];
179  static const TagInfo tagInfoWbi_[];
180  static const TagInfo tagInfoRawB_[];
181 
182 }; // class CanonMakerNote
183 
184 // *****************************************************************************
185 // template, inline and free functions
186 
202 float canonEv(int64_t val);
203 
204 } // namespace Exiv2::Internal
205 
206 #endif // EXIV2_CANONMN_INT_HPP
static const TagInfo * tagListAfC()
Return read-only list of built-in Canon AFConfig Info tags.
Definition: canonmn_int.cpp:1269
static std::ostream & printSi0x000e(std::ostream &os, const Value &value, const ExifData *pExifData)
AF point used.
Definition: canonmn_int.cpp:2882
static std::ostream & printSi0x0002(std::ostream &os, const Value &value, const ExifData *)
ISO speed used.
Definition: canonmn_int.cpp:2833
static std::ostream & printCsLensType(std::ostream &os, const Value &value, const ExifData *metadata)
Camera lens type. For some values, the exact type can only be determined if metadata is provided...
Definition: canonmn_int.cpp:2767
float canonEv(int64_t val)
Convert Canon hex-based EV (modulo 0x20) to real number Ported from Phil Harvey's Image::ExifTool::Ca...
Definition: canonmn_int.cpp:2978
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:373
static const TagInfo * tagListVigCor2()
Return read-only list of built-in Canon VignettingCorr2 Info tags.
Definition: canonmn_int.cpp:995
static const TagInfo * tagListFi()
Return read-only list of built-in Canon File Info tags.
Definition: canonmn_int.cpp:2459
static const TagInfo * tagListCbi()
Return read-only list of built-in Canon Balance Info tags.
Definition: canonmn_int.cpp:852
static const TagInfo * tagListWbi()
Return read-only list of built-in Canon White balance Info tags.
Definition: canonmn_int.cpp:783
static const TagInfo * tagListCf()
Return read-only list of built-in Canon Custom Function tags.
Definition: canonmn_int.cpp:2275
static std::ostream & printSi0x0003(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV.
Definition: canonmn_int.cpp:2843
static const TagInfo * tagListTi()
Return read-only list of built-in Canon Time Info tags.
Definition: canonmn_int.cpp:2557
static std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *)
Print the serial number of the camera.
Definition: canonmn_int.cpp:2634
static std::ostream & printSi0x000c(std::ostream &os, const Value &value, const ExifData *)
Ambient Temperature.
Definition: canonmn_int.cpp:2868
static const TagInfo * tagListMv()
Return read-only list of built-in Canon Movie Info tags.
Definition: canonmn_int.cpp:683
static std::ostream & printLe0x0000(std::ostream &os, const Value &value, const ExifData *)
CanonLe lens serial number.
Definition: canonmn_int.cpp:2810
static const TagInfo * tagListSi()
Return read-only list of built-in Canon Shot Info tags.
Definition: canonmn_int.cpp:2212
static const TagInfo * tagListFl()
Return read-only list of built-in Canon Flags Info tags.
Definition: canonmn_int.cpp:862
static std::ostream & printSi0x0001(std::ostream &os, const Value &value, const ExifData *)
AutoISO speed used.
Definition: canonmn_int.cpp:2824
static std::ostream & printSi0x0013(std::ostream &os, const Value &value, const ExifData *)
Subject distance.
Definition: canonmn_int.cpp:2898
static const TagInfo * tagListPreI()
Return read-only list of built-in Canon Preview Image Info tags.
Definition: canonmn_int.cpp:922
static std::ostream & printSi0x0016(std::ostream &os, const Value &value, const ExifData *)
Shutter speed.
Definition: canonmn_int.cpp:2926
static std::ostream & printCs0x0002(std::ostream &os, const Value &value, const ExifData *)
Self timer.
Definition: canonmn_int.cpp:2642
static std::ostream & printSi0x000d(std::ostream &os, const Value &value, const ExifData *)
Flash Guide Number.
Definition: canonmn_int.cpp:2875
MakerNote for Canon cameras.
Definition: canonmn_int.hpp:29
static std::ostream & printFocalLength(std::ostream &os, const Value &value, const ExifData *)
Print the focal length.
Definition: canonmn_int.cpp:2600
static const TagInfo * tagListLe()
Return read-only list of built-in Canon LensInfo Info tags.
Definition: canonmn_int.cpp:1051
static std::ostream & printSi0x0009(std::ostream &os, const Value &value, const ExifData *)
Sequence number.
Definition: canonmn_int.cpp:2858
static const TagInfo * tagListCo()
Return read-only list of built-in Canon Contrast Info tags.
Definition: canonmn_int.cpp:755
static const TagInfo * tagListAm()
Return read-only list of built-in Canon Ambience Info tags.
Definition: canonmn_int.cpp:1068
static const TagInfo * tagListFil()
Return read-only list of built-in Canon Filter Info tags.
Definition: canonmn_int.cpp:1127
static const TagInfo * tagListPi()
Return read-only list of built-in Canon Picture Info tags.
Definition: canonmn_int.cpp:2309
static const TagInfo * tagListLiOp()
Return read-only list of built-in Canon LightingOpt Info tags.
Definition: canonmn_int.cpp:1037
static std::ostream & printCsLens(std::ostream &os, const Value &value, const ExifData *)
Camera lens information.
Definition: canonmn_int.cpp:2783
Helper structure for the Matroska tags lookup table.
Definition: matroskavideo.hpp:39
static const TagInfo * tagListFcd3()
Return read-only list of built-in Canon Face detection Info tags.
Definition: canonmn_int.cpp:793
static const TagInfo * tagListAs()
Return read-only list of built-in Canon Aspect Info tags.
Definition: canonmn_int.cpp:824
static const TagInfo * tagListMe()
Return read-only list of built-in Canon MultiExposureControl Info tags.
Definition: canonmn_int.cpp:1091
static const TagInfo * tagListRawB()
Return read-only list of built-in Canon RawBurstInfo Info tags.
Definition: canonmn_int.cpp:1283
static const TagInfo * tagListCs()
Return read-only list of built-in Canon Camera Settings tags.
Definition: canonmn_int.cpp:2116
static std::ostream & print0x0008(std::ostream &os, const Value &value, const ExifData *)
Print the image number.
Definition: canonmn_int.cpp:2627
Common interface for all types of values used with metadata.
Definition: value.hpp:33
static const TagInfo * tagListFcd2()
Return read-only list of built-in Canon Face detection 1 Info tags.
Definition: canonmn_int.cpp:742
static const TagInfo * tagList()
Return read-only list of built-in Canon tags.
Definition: canonmn_int.cpp:657
static std::ostream & printFiFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Focus Distance.
Definition: canonmn_int.cpp:2955
static const TagInfo * tagListPr()
Return read-only list of built-in Canon Processing Info tags.
Definition: canonmn_int.cpp:2502
static std::ostream & printSi0x0015(std::ostream &os, const Value &value, const ExifData *)
Aperture.
Definition: canonmn_int.cpp:2912
static const TagInfo * tagListFcd1()
Return read-only list of built-in Canon Face detection 2 Info tags.
Definition: canonmn_int.cpp:730
Tag information.
Definition: tags.hpp:224
static std::ostream & printFiFileNumber(std::ostream &os, const Value &value, const ExifData *metadata)
Print the FileInfo FileNumber.
Definition: canonmn_int.cpp:2561
static const TagInfo * tagListAfMiAdj()
Return read-only list of built-in Canon AFMicroAdjMode Quality Info tags.
Definition: canonmn_int.cpp:953
static const TagInfo * tagListMo()
Return read-only list of built-in Canon Modified On Info tags.
Definition: canonmn_int.cpp:899
static const TagInfo * tagListVigCor()
Return read-only list of built-in Canon VignettingCorr Info tags.
Definition: canonmn_int.cpp:979
static const TagInfo * tagListCi()
Return read-only list of built-in Canon Color Info tags.
Definition: canonmn_int.cpp:936
static std::ostream & printSi0x0017(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV2.
Definition: canonmn_int.cpp:2940
static const TagInfo * tagListMc()
Return read-only list of built-in Canon My Colors Info tags.
Definition: canonmn_int.cpp:700
static std::ostream & printSi0x0018(std::ostream &os, const Value &value, const ExifData *)
Bulb Duration.
Definition: canonmn_int.cpp:2951
static const TagInfo * tagListHdr()
Return read-only list of built-in Canon HDR Info tags.
Definition: canonmn_int.cpp:1150
static const TagInfo * tagListPa()
Return read-only list of built-in Canon Panorama tags.
Definition: canonmn_int.cpp:2234