Exiv2
canonmn_int.hpp
Go to the documentation of this file.
1 // ***************************************************************** -*- C++ -*-
2 /*
3  * Copyright (C) 2004-2018 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();
76 
78 
79  static std::ostream& printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata);
82  static std::ostream& printFocalLength(std::ostream& os, const Value& value, const ExifData*);
84  static std::ostream& print0x0008(std::ostream& os, const Value& value, const ExifData*);
86  static std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData*);
88  static std::ostream& printCs0x0002(std::ostream& os, const Value& value, const ExifData*);
90  static std::ostream& printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata);
92  static std::ostream& printCsLens(std::ostream& os, const Value& value, const ExifData*);
94  static std::ostream& printSi0x0001(std::ostream& os, const Value& value, const ExifData*);
96  static std::ostream& printSi0x0002(std::ostream& os, const Value& value, const ExifData*);
98  static std::ostream& printSi0x0003(std::ostream& os, const Value& value, const ExifData*);
100  static std::ostream& printSi0x0009(std::ostream& os, const Value& value, const ExifData*);
102  static std::ostream& printSi0x000c(std::ostream& os, const Value& value, const ExifData*);
104  static std::ostream& printSi0x000d(std::ostream& os, const Value& value, const ExifData*);
106  static std::ostream& printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData);
108  static std::ostream& printSi0x0013(std::ostream& os, const Value& value, const ExifData*);
110  static std::ostream& printSi0x0015(std::ostream& os, const Value& value, const ExifData*);
112  static std::ostream& printSi0x0016(std::ostream& os, const Value& value, const ExifData*);
114  static std::ostream& printSi0x0017(std::ostream& os, const Value& value, const ExifData*);
116  static std::ostream& printSi0x0018(std::ostream& os, const Value& value, const ExifData*);
118  static std::ostream& printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*);
120 
121  private:
122  // DATA
123 
125  static const TagInfo tagInfo_[];
126  static const TagInfo tagInfoCs_[];
127  static const TagInfo tagInfoSi_[];
128  static const TagInfo tagInfoCf_[];
129  static const TagInfo tagInfoPi_[];
130  static const TagInfo tagInfoTi_[];
131  static const TagInfo tagInfoFi_[];
132  static const TagInfo tagInfoPa_[];
133  static const TagInfo tagInfoPr_[];
134 
135  }; // class CanonMakerNote
136 
137 // *****************************************************************************
138 // template, inline and free functions
139 
155  float canonEv(long val);
156 
157 }} // namespace Internal, Exiv2
158 
159 #endif // #ifndef CANONMN_INT_HPP_
static std::ostream & printSi0x000e(std::ostream &os, const Value &value, const ExifData *pExifData)
AF point used.
Definition: canonmn_int.cpp:2250
static std::ostream & printSi0x0002(std::ostream &os, const Value &value, const ExifData *)
ISO speed used.
Definition: canonmn_int.cpp:2186
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:2119
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 * tagListFi()
Return read-only list of built-in Canon File Info tags.
Definition: canonmn_int.cpp:1725
static const TagInfo * tagListCf()
Return read-only list of built-in Canon Custom Function tags.
Definition: canonmn_int.cpp:1592
static std::ostream & printSi0x0003(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV.
Definition: canonmn_int.cpp:2200
static const TagInfo * tagListTi()
Return read-only list of built-in Canon Time Info tags.
Definition: canonmn_int.cpp:1846
static std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *)
Print the serial number of the camera.
Definition: canonmn_int.cpp:1930
static std::ostream & printSi0x000c(std::ostream &os, const Value &value, const ExifData *)
Ambient Temperature.
Definition: canonmn_int.cpp:2232
Type definitions for Exiv2 and related functionality.
static const TagInfo * tagListSi()
Return read-only list of built-in Canon Shot Info tags.
Definition: canonmn_int.cpp:1544
static std::ostream & printSi0x0001(std::ostream &os, const Value &value, const ExifData *)
AutoISO speed used.
Definition: canonmn_int.cpp:2173
static std::ostream & printSi0x0013(std::ostream &os, const Value &value, const ExifData *)
Subject distance.
Definition: canonmn_int.cpp:2271
static std::ostream & printSi0x0016(std::ostream &os, const Value &value, const ExifData *)
Shutter speed.
Definition: canonmn_int.cpp:2307
static std::ostream & printCs0x0002(std::ostream &os, const Value &value, const ExifData *)
Self timer.
Definition: canonmn_int.cpp:1943
static std::ostream & printSi0x000d(std::ostream &os, const Value &value, const ExifData *)
Flash Guide Number.
Definition: canonmn_int.cpp:2241
MakerNote for Canon cameras.
Definition: canonmn_int.hpp:56
Exif tag and type information.
static std::ostream & printFocalLength(std::ostream &os, const Value &value, const ExifData *)
Print the focal length.
Definition: canonmn_int.cpp:1892
static std::ostream & printSi0x0009(std::ostream &os, const Value &value, const ExifData *)
Sequence number.
Definition: canonmn_int.cpp:2219
static const TagInfo * tagListPi()
Return read-only list of built-in Canon Picture Info tags.
Definition: canonmn_int.cpp:1633
static std::ostream & printCsLens(std::ostream &os, const Value &value, const ExifData *)
Camera lens information.
Definition: canonmn_int.cpp:2143
static const TagInfo * tagListCs()
Return read-only list of built-in Canon Camera Settings tags.
Definition: canonmn_int.cpp:1427
static std::ostream & print0x0008(std::ostream &os, const Value &value, const ExifData *)
Print the image number.
Definition: canonmn_int.cpp:1920
Common interface for all types of values used with metadata.
Definition: value.hpp:60
static const TagInfo * tagList()
Return read-only list of built-in Canon tags.
Definition: canonmn_int.cpp:508
static std::ostream & printFiFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Focus Distance.
Definition: canonmn_int.cpp:2346
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
static const TagInfo * tagListPr()
Return read-only list of built-in Canon Processing Info tags.
Definition: canonmn_int.cpp:1791
static std::ostream & printSi0x0015(std::ostream &os, const Value &value, const ExifData *)
Aperture.
Definition: canonmn_int.cpp:2290
Tag information.
Definition: tags.hpp:82
static std::ostream & printFiFileNumber(std::ostream &os, const Value &value, const ExifData *metadata)
Print the FileInfo FileNumber.
Definition: canonmn_int.cpp:1851
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:2374
static std::ostream & printSi0x0017(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV2.
Definition: canonmn_int.cpp:2324
static std::ostream & printSi0x0018(std::ostream &os, const Value &value, const ExifData *)
Bulb Duration.
Definition: canonmn_int.cpp:2339
static const TagInfo * tagListPa()
Return read-only list of built-in Canon Panorama tags.
Definition: canonmn_int.cpp:1566