Coverage Report

Created: 2026-04-12 06:54

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/exiv2/src/minoltamn_int.hpp
Line
Count
Source
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
#ifndef MINOLTAMN_INT_HPP_
4
#define MINOLTAMN_INT_HPP_
5
6
// *****************************************************************************
7
// included header files
8
#include <iosfwd>
9
10
// *****************************************************************************
11
// namespace extensions
12
namespace Exiv2 {
13
class ExifData;
14
class Value;
15
struct TagInfo;
16
17
namespace Internal {
18
// *****************************************************************************
19
// class definitions
20
21
//! MakerNote for Minolta cameras
22
class MinoltaMakerNote {
23
 public:
24
  //! Return read-only list of built-in Minolta tags
25
149k
  static constexpr auto tagList() {
26
149k
    return tagInfo_;
27
149k
  }
28
  //! Return read-only list of built-in Minolta Standard Camera Settings tags
29
199k
  static constexpr auto tagListCsStd() {
30
199k
    return tagInfoCsStd_;
31
199k
  }
32
  //! Return read-only list of built-in Minolta 7D Camera Settings tags
33
1.61M
  static constexpr auto tagListCs7D() {
34
1.61M
    return tagInfoCs7D_;
35
1.61M
  }
36
  //! Return read-only list of built-in Minolta 5D Camera Settings tags
37
1.28M
  static constexpr auto tagListCs5D() {
38
1.28M
    return tagInfoCs5D_;
39
1.28M
  }
40
  //! Return read-only list of built-in Sony A100 Camera Settings tags
41
33.9k
  static constexpr auto tagListCsA100() {
42
33.9k
    return tagInfoCsA100_;
43
33.9k
  }
44
45
  //! @name Print functions for Minolta %MakerNote tags
46
  //@{
47
  //! Print Exposure Speed setting from standard Minolta Camera Settings makernote
48
  static std::ostream& printMinoltaExposureSpeedStd(std::ostream& os, const Value& value, const ExifData*);
49
  //! Print Exposure Time setting from standard Minolta Camera Settings makernote
50
  static std::ostream& printMinoltaExposureTimeStd(std::ostream& os, const Value& value, const ExifData*);
51
  //! Print F Number setting from standard Minolta Camera Settings makernote
52
  static std::ostream& printMinoltaFNumberStd(std::ostream& os, const Value& value, const ExifData*);
53
  //! Print Exposure Compensation setting from standard Minolta Camera Settings makernote
54
  static std::ostream& printMinoltaExposureCompensationStd(std::ostream& os, const Value& value, const ExifData*);
55
  //! Print Focal Length setting from standard Minolta Camera Settings makernote
56
  static std::ostream& printMinoltaFocalLengthStd(std::ostream& os, const Value& value, const ExifData*);
57
  //! Print Minolta Date from standard Minolta Camera Settings makernote
58
  static std::ostream& printMinoltaDateStd(std::ostream& os, const Value& value, const ExifData*);
59
  //! Print Minolta Time from standard Minolta Camera Settings makernote
60
  static std::ostream& printMinoltaTimeStd(std::ostream& os, const Value& value, const ExifData*);
61
  //! Print Flash Exposure Compensation setting from standard Minolta Camera Settings makernote
62
  static std::ostream& printMinoltaFlashExposureCompStd(std::ostream& os, const Value& value, const ExifData*);
63
  //! Print White Balance setting from standard Minolta Camera Settings makernote
64
  static std::ostream& printMinoltaWhiteBalanceStd(std::ostream& os, const Value& value, const ExifData*);
65
  //! Print Brightness setting from standard Minolta Camera Settings makernote
66
  static std::ostream& printMinoltaBrightnessStd(std::ostream& os, const Value& value, const ExifData*);
67
68
  //! Print Exposure Manual Bias setting from 5D Minolta Camera Settings makernote
69
  static std::ostream& printMinoltaExposureManualBias5D(std::ostream& os, const Value& value, const ExifData*);
70
  //! Print Exposure Compensation setting from 5D Minolta Camera Settings makernote
71
  static std::ostream& printMinoltaExposureCompensation5D(std::ostream& os, const Value& value, const ExifData*);
72
  //@}
73
74
 private:
75
  //! Tag information
76
  static const TagInfo tagInfo_[];
77
  static const TagInfo tagInfoCsA100_[];
78
  static const TagInfo tagInfoCs5D_[];
79
  static const TagInfo tagInfoCs7D_[];
80
  static const TagInfo tagInfoCsStd_[];
81
82
};  // class MinoltaMakerNote
83
84
// -- Minolta and Sony MakerNote Common Values ---------------------------------------
85
86
//! Print Minolta/Sony Lens id values to readable labels.
87
std::ostream& printMinoltaSonyLensID(std::ostream&, const Value&, const ExifData*);
88
89
//! Print Minolta/Sony Color Mode values to readable labels.
90
std::ostream& printMinoltaSonyColorMode(std::ostream&, const Value&, const ExifData*);
91
92
//! Print Minolta/Sony bool function values to readable labels.
93
std::ostream& printMinoltaSonyBoolValue(std::ostream&, const Value&, const ExifData*);
94
95
//! Print Minolta/Sony bool inverse function values to readable labels.
96
std::ostream& printMinoltaSonyBoolInverseValue(std::ostream&, const Value&, const ExifData*);
97
98
//! Print Minolta/Sony AF Area Mode values to readable labels.
99
std::ostream& printMinoltaSonyAFAreaMode(std::ostream&, const Value&, const ExifData*);
100
101
//! Print Minolta/Sony Local AF Area Point values to readable labels.
102
std::ostream& printMinoltaSonyLocalAFAreaPoint(std::ostream&, const Value&, const ExifData*);
103
104
//! Print Minolta/Sony dynamic range optimizer mode values to readable labels.
105
std::ostream& printMinoltaSonyDynamicRangeOptimizerMode(std::ostream&, const Value&, const ExifData*);
106
107
//! Print Minolta/Sony priority setup shutter release values to readable labels.
108
std::ostream& printMinoltaSonyPrioritySetupShutterRelease(std::ostream&, const Value&, const ExifData*);
109
110
//! Print Minolta/Sony Quality values to readable labels.
111
std::ostream& printMinoltaSonyQualityCs(std::ostream&, const Value&, const ExifData*);
112
113
//! Print Minolta/Sony Rotation values to readable labels.
114
std::ostream& printMinoltaSonyRotation(std::ostream&, const Value&, const ExifData*);
115
116
//! Print Minolta/Sony Scene Mode values to readable labels.
117
std::ostream& printMinoltaSonySceneMode(std::ostream&, const Value&, const ExifData*);
118
119
//! Print Minolta/Sony Image Quality values to readable labels.
120
std::ostream& printMinoltaSonyImageQuality(std::ostream&, const Value&, const ExifData*);
121
122
//! Print Minolta/Sony Teleconverter Model values to readable labels.
123
std::ostream& printMinoltaSonyTeleconverterModel(std::ostream&, const Value&, const ExifData*);
124
125
//! Print Minolta/Sony White Balance Std values to readable labels.
126
std::ostream& printMinoltaSonyWhiteBalanceStd(std::ostream&, const Value&, const ExifData*);
127
128
//! Print Minolta/Sony ZoneMatching values to readable labels.
129
std::ostream& printMinoltaSonyZoneMatching(std::ostream&, const Value&, const ExifData*);
130
131
// TODO: Added shared methods here.
132
133
}  // namespace Internal
134
}  // namespace Exiv2
135
136
#endif  // #ifndef MINOLTAMN_INT_HPP_