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& printSi0x0002(std::ostream& os, const Value& value, const ExifData*);
96  static std::ostream& printSi0x0003(std::ostream& os, const Value& value, const ExifData*);
98  static std::ostream& printSi0x0009(std::ostream& os, const Value& value, const ExifData*);
100  static std::ostream& printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData);
102  static std::ostream& printSi0x0013(std::ostream& os, const Value& value, const ExifData*);
104  static std::ostream& printSi0x0015(std::ostream& os, const Value& value, const ExifData*);
106  static std::ostream& printSi0x0016(std::ostream& os, const Value& value, const ExifData*);
108  static std::ostream& printSi0x0017(std::ostream& os, const Value& value, const ExifData*);
110  static std::ostream& printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*);
112 
113  private:
114  // DATA
115 
117  static const TagInfo tagInfo_[];
118  static const TagInfo tagInfoCs_[];
119  static const TagInfo tagInfoSi_[];
120  static const TagInfo tagInfoCf_[];
121  static const TagInfo tagInfoPi_[];
122  static const TagInfo tagInfoTi_[];
123  static const TagInfo tagInfoFi_[];
124  static const TagInfo tagInfoPa_[];
125  static const TagInfo tagInfoPr_[];
126 
127  }; // class CanonMakerNote
128 
129 // *****************************************************************************
130 // template, inline and free functions
131 
147  float canonEv(long val);
148 
149 }} // namespace Internal, Exiv2
150 
151 #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:2037
static std::ostream & printSi0x0002(std::ostream &os, const Value &value, const ExifData *)
ISO speed used.
Definition: canonmn_int.cpp:1991
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:1937
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:1543
static const TagInfo * tagListCf()
Return read-only list of built-in Canon Custom Function tags.
Definition: canonmn_int.cpp:1410
static std::ostream & printSi0x0003(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV.
Definition: canonmn_int.cpp:2005
static const TagInfo * tagListTi()
Return read-only list of built-in Canon Time Info tags.
Definition: canonmn_int.cpp:1664
static std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *)
Print the serial number of the camera.
Definition: canonmn_int.cpp:1748
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:1362
static std::ostream & printSi0x0013(std::ostream &os, const Value &value, const ExifData *)
Subject distance.
Definition: canonmn_int.cpp:2058
static std::ostream & printSi0x0016(std::ostream &os, const Value &value, const ExifData *)
Shutter speed.
Definition: canonmn_int.cpp:2094
static std::ostream & printCs0x0002(std::ostream &os, const Value &value, const ExifData *)
Self timer.
Definition: canonmn_int.cpp:1761
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:1710
static std::ostream & printSi0x0009(std::ostream &os, const Value &value, const ExifData *)
Sequence number.
Definition: canonmn_int.cpp:2024
static const TagInfo * tagListPi()
Return read-only list of built-in Canon Picture Info tags.
Definition: canonmn_int.cpp:1451
static std::ostream & printCsLens(std::ostream &os, const Value &value, const ExifData *)
Camera lens information.
Definition: canonmn_int.cpp:1961
static const TagInfo * tagListCs()
Return read-only list of built-in Canon Camera Settings tags.
Definition: canonmn_int.cpp:1271
static std::ostream & print0x0008(std::ostream &os, const Value &value, const ExifData *)
Print the image number.
Definition: canonmn_int.cpp:1738
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:450
static std::ostream & printFiFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Focus Distance.
Definition: canonmn_int.cpp:2126
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:1609
static std::ostream & printSi0x0015(std::ostream &os, const Value &value, const ExifData *)
Aperture.
Definition: canonmn_int.cpp:2077
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:1669
float canonEv(long val)
Convert Canon hex-based EV (modulo 0x20) to real number Ported from Phil Harvey&#39;s Image::ExifTool::Ca...
Definition: canonmn_int.cpp:2154
static std::ostream & printSi0x0017(std::ostream &os, const Value &value, const ExifData *)
MeasuredEV2.
Definition: canonmn_int.cpp:2111
static const TagInfo * tagListPa()
Return read-only list of built-in Canon Panorama tags.
Definition: canonmn_int.cpp:1384