Exiv2
canonmn_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 CANONMN_INT_HPP_
33 #define CANONMN_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
47 namespace Exiv2 {
48  class Value;
49 
50  namespace Internal {
51 
52 // *****************************************************************************
53 // class definitions
54 
57  public:
59  static const TagInfo* tagList();
61  static const TagInfo* tagListCs();
63  static const TagInfo* tagListSi();
65  static const TagInfo* tagListPa();
67  static const TagInfo* tagListCf();
69  static const TagInfo* tagListPi();
71  static const TagInfo* tagListTi();
73  static const TagInfo* tagListFi();
75  static const TagInfo* tagListPr();
77  static const TagInfo* tagListMv();
79  static const TagInfo* tagListMc();
81  static const TagInfo* tagListAf3();
83  static const TagInfo* tagListFcd3();
85  static const TagInfo* tagListWbi();
87  static const TagInfo* tagListCo();
89  static const TagInfo* tagListFcd2();
91  static const TagInfo* tagListFcd1();
93  static const TagInfo* tagListAs();
95  static const TagInfo* tagListCbi();
97  static const TagInfo* tagListFl();
99  static const TagInfo* tagListMo();
101  static const TagInfo* tagListPreI();
103  static const TagInfo* tagListCi();
105  static const TagInfo* tagListAfMiAdj();
107  static const TagInfo* tagListVigCor();
109  static const TagInfo* tagListVigCor2();
111  static const TagInfo* tagListLiOp();
113  static const TagInfo* tagListLe();
115  static const TagInfo* tagListAm();
117  static const TagInfo* tagListMe();
119  static const TagInfo* tagListFil();
121  static const TagInfo* tagListHdr();
123  static const TagInfo* tagListAfC();
125  static const TagInfo* tagListRawB();
127  static const TagInfo* tagListAf2();
128 
129 
130 
131 
132 
133 
134 
135 
137 
138  static std::ostream& printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata);
141  static std::ostream& printFocalLength(std::ostream& os, const Value& value, const ExifData*);
143  static std::ostream& print0x0008(std::ostream& os, const Value& value, const ExifData*);
145  static std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData*);
147  static std::ostream& printCs0x0002(std::ostream& os, const Value& value, const ExifData*);
149  static std::ostream& printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata);
151  static std::ostream& printCsLens(std::ostream& os, const Value& value, const ExifData*);
153  static std::ostream& printSi0x0001(std::ostream& os, const Value& value, const ExifData*);
155  static std::ostream& printSi0x0002(std::ostream& os, const Value& value, const ExifData*);
157  static std::ostream& printSi0x0003(std::ostream& os, const Value& value, const ExifData*);
159  static std::ostream& printSi0x0009(std::ostream& os, const Value& value, const ExifData*);
161  static std::ostream& printSi0x000c(std::ostream& os, const Value& value, const ExifData*);
163  static std::ostream& printSi0x000d(std::ostream& os, const Value& value, const ExifData*);
165  static std::ostream& printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData);
167  static std::ostream& printSi0x0013(std::ostream& os, const Value& value, const ExifData*);
169  static std::ostream& printSi0x0015(std::ostream& os, const Value& value, const ExifData*);
171  static std::ostream& printSi0x0016(std::ostream& os, const Value& value, const ExifData*);
173  static std::ostream& printSi0x0017(std::ostream& os, const Value& value, const ExifData*);
175  static std::ostream& printSi0x0018(std::ostream& os, const Value& value, const ExifData*);
177  static std::ostream& printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*);
179 
180  private:
181  // DATA
182 
184  static const TagInfo tagInfo_[];
185  static const TagInfo tagInfoAf2_[];
186  static const TagInfo tagInfoAf3_[];
187  static const TagInfo tagInfoAfC_[];
188  static const TagInfo tagInfoAfMiAdj_[];
189  static const TagInfo tagInfoAm_[];
190  static const TagInfo tagInfoAs_[];
191  static const TagInfo tagInfoCs_[];
192  static const TagInfo tagInfoCbi_[];
193  static const TagInfo tagInfoSi_[];
194  static const TagInfo tagInfoCf_[];
195  static const TagInfo tagInfoCi_[];
196  static const TagInfo tagInfoCo_[];
197  static const TagInfo tagInfoFl_[];
198  static const TagInfo tagInfoFil_[];
199  static const TagInfo tagInfoLiOp_[];
200  static const TagInfo tagInfoLe_[];
201  static const TagInfo tagInfoHdr_[];
202  static const TagInfo tagInfoMe_[];
203  static const TagInfo tagInfoMo_[];
204  static const TagInfo tagInfoMv_[];
205  static const TagInfo tagInfoMc_[];
206  static const TagInfo tagInfoFcd1_[];
207  static const TagInfo tagInfoFcd2_[];
208  static const TagInfo tagInfoFcd3_[];
209  static const TagInfo tagInfoPi_[];
210  static const TagInfo tagInfoTi_[];
211  static const TagInfo tagInfoFi_[];
212  static const TagInfo tagInfoPa_[];
213  static const TagInfo tagInfoPr_[];
214  static const TagInfo tagInfoPreI_[];
215  static const TagInfo tagInfoVigCor_[];
216  static const TagInfo tagInfoVigCor2_[];
217  static const TagInfo tagInfoWbi_[];
218  static const TagInfo tagInfoRawB_ [];
219 
220 
221  }; // class CanonMakerNote
222 
223 // *****************************************************************************
224 // template, inline and free functions
225 
241  float canonEv(long val);
242 
243 }} // namespace Internal, Exiv2
244 
245 #endif // #ifndef CANONMN_INT_HPP_
246 
247 
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
MakerNote for Canon cameras.
Definition: canonmn_int.hpp:56
static const TagInfo * tagListPreI()
Return read-only list of built-in Canon Preview Image Info tags.
Definition: canonmn_int.cpp:940
static const TagInfo * tagListPi()
Return read-only list of built-in Canon Picture Info tags.
Definition: canonmn_int.cpp:2461
static const TagInfo * tagListFil()
Return read-only list of built-in Canon Filter Info tags.
Definition: canonmn_int.cpp:1132
static const TagInfo * tagListSi()
Return read-only list of built-in Canon Shot Info tags.
Definition: canonmn_int.cpp:2372
static std::ostream & printSi0x0009(std::ostream &os, const Value &value, const ExifData *)
Sequence number.
Definition: canonmn_int.cpp:3048
static const TagInfo * tagListMv()
Return read-only list of built-in Canon Movie Info tags.
Definition: canonmn_int.cpp:663
static const TagInfo * tagListFi()
Return read-only list of built-in Canon File Info tags.
Definition: canonmn_int.cpp:2582
static std::ostream & printSi0x0017(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV2.
Definition: canonmn_int.cpp:3153
static std::ostream & printSi0x0002(std::ostream &os, const Value &value, const ExifData *)
ISO speed used.
Definition: canonmn_int.cpp:3015
static const TagInfo * tagListCbi()
Return read-only list of built-in Canon Balance Info tags.
Definition: canonmn_int.cpp:866
static const TagInfo * tagList()
Return read-only list of built-in Canon tags.
Definition: canonmn_int.cpp:645
static const TagInfo * tagListFcd3()
Return read-only list of built-in Canon Face detection Info tags.
Definition: canonmn_int.cpp:770
static const TagInfo * tagListCf()
Return read-only list of built-in Canon Custom Function tags.
Definition: canonmn_int.cpp:2420
static std::ostream & printSi0x0015(std::ostream &os, const Value &value, const ExifData *)
Aperture.
Definition: canonmn_int.cpp:3119
static const TagInfo * tagListFl()
Return read-only list of built-in Canon Flags Info tags.
Definition: canonmn_int.cpp:876
static const TagInfo * tagListCi()
Return read-only list of built-in Canon Color Info tags.
Definition: canonmn_int.cpp:952
static const TagInfo * tagListAm()
Return read-only list of built-in Canon Ambience Info tags.
Definition: canonmn_int.cpp:1074
static const TagInfo * tagListAf2()
Return read-only list of built-in Canon AFInfo2 Info tags.
Definition: canonmn_int.cpp:795
static const TagInfo * tagListHdr()
Return read-only list of built-in Canon HDR Info tags.
Definition: canonmn_int.cpp:1161
static const TagInfo * tagListPa()
Return read-only list of built-in Canon Panorama tags.
Definition: canonmn_int.cpp:2394
static const TagInfo * tagListMc()
Return read-only list of built-in Canon My Colors Info tags.
Definition: canonmn_int.cpp:692
static const TagInfo * tagListMe()
Return read-only list of built-in Canon MultiExposureControl Info tags.
Definition: canonmn_int.cpp:1101
static const TagInfo * tagListCs()
Return read-only list of built-in Canon Camera Settings tags.
Definition: canonmn_int.cpp:2280
static const TagInfo * tagListLiOp()
Return read-only list of built-in Canon LightingOpt Info tags.
Definition: canonmn_int.cpp:1039
static std::ostream & printCs0x0002(std::ostream &os, const Value &value, const ExifData *)
Self timer.
Definition: canonmn_int.cpp:2772
static std::ostream & printFocalLength(std::ostream &os, const Value &value, const ExifData *)
Print the focal length.
Definition: canonmn_int.cpp:2721
static std::ostream & printFiFileNumber(std::ostream &os, const Value &value, const ExifData *metadata)
Print the FileInfo FileNumber.
Definition: canonmn_int.cpp:2680
static const TagInfo * tagListCo()
Return read-only list of built-in Canon Contrast Info tags.
Definition: canonmn_int.cpp:741
static const TagInfo * tagListFcd1()
Return read-only list of built-in Canon Face detection 2 Info tags.
Definition: canonmn_int.cpp:712
static std::ostream & printSi0x0018(std::ostream &os, const Value &value, const ExifData *)
Bulb Duration.
Definition: canonmn_int.cpp:3168
static std::ostream & printSi0x000d(std::ostream &os, const Value &value, const ExifData *)
Flash Guide Number.
Definition: canonmn_int.cpp:3070
static std::ostream & printFiFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Focus Distance.
Definition: canonmn_int.cpp:3175
static const TagInfo * tagListTi()
Return read-only list of built-in Canon Time Info tags.
Definition: canonmn_int.cpp:2675
static std::ostream & print0x0008(std::ostream &os, const Value &value, const ExifData *)
Print the image number.
Definition: canonmn_int.cpp:2749
static const TagInfo * tagListAfC()
Return read-only list of built-in Canon AFConfig Info tags.
Definition: canonmn_int.cpp:1296
static const TagInfo * tagListRawB()
Return read-only list of built-in Canon RawBurstInfo Info tags.
Definition: canonmn_int.cpp:1309
static const TagInfo * tagListFcd2()
Return read-only list of built-in Canon Face detection 1 Info tags.
Definition: canonmn_int.cpp:723
static const TagInfo * tagListAs()
Return read-only list of built-in Canon Aspect Info tags.
Definition: canonmn_int.cpp:846
static const TagInfo * tagListAfMiAdj()
Return read-only list of built-in Canon AFMicroAdjMode Quality Info tags.
Definition: canonmn_int.cpp:971
static const TagInfo * tagListPr()
Return read-only list of built-in Canon Processing Info tags.
Definition: canonmn_int.cpp:2623
static std::ostream & printSi0x0001(std::ostream &os, const Value &value, const ExifData *)
AutoISO speed used.
Definition: canonmn_int.cpp:3002
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:2948
static std::ostream & printSi0x0016(std::ostream &os, const Value &value, const ExifData *)
Shutter speed.
Definition: canonmn_int.cpp:3136
static const TagInfo * tagListAf3()
Return read-only list of built-in Canon AFInfo3 Info tags.
Definition: canonmn_int.cpp:820
static std::ostream & printSi0x000c(std::ostream &os, const Value &value, const ExifData *)
Ambient Temperature.
Definition: canonmn_int.cpp:3061
static const TagInfo * tagListLe()
Return read-only list of built-in Canon LensInfo Info tags.
Definition: canonmn_int.cpp:1049
static const TagInfo * tagListWbi()
Return read-only list of built-in Canon White balance Info tags.
Definition: canonmn_int.cpp:760
static const TagInfo * tagListVigCor()
Return read-only list of built-in Canon VignettingCorr Info tags.
Definition: canonmn_int.cpp:990
static std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *)
Print the serial number of the camera.
Definition: canonmn_int.cpp:2759
static std::ostream & printSi0x0013(std::ostream &os, const Value &value, const ExifData *)
Subject distance.
Definition: canonmn_int.cpp:3100
static std::ostream & printCsLens(std::ostream &os, const Value &value, const ExifData *)
Camera lens information.
Definition: canonmn_int.cpp:2972
static std::ostream & printSi0x000e(std::ostream &os, const Value &value, const ExifData *pExifData)
AF point used.
Definition: canonmn_int.cpp:3079
static const TagInfo * tagListMo()
Return read-only list of built-in Canon Modified On Info tags.
Definition: canonmn_int.cpp:913
static const TagInfo * tagListVigCor2()
Return read-only list of built-in Canon VignettingCorr2 Info tags.
Definition: canonmn_int.cpp:1002
static std::ostream & printSi0x0003(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV.
Definition: canonmn_int.cpp:3029
Common interface for all types of values used with metadata.
Definition: value.hpp:51
float canonEv(long val)
Convert Canon hex-based EV (modulo 0x20) to real number Ported from Phil Harvey's Image::ExifTool::Ca...
Definition: canonmn_int.cpp:3203
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