/src/exiv2/src/canonmn_int.cpp
Line | Count | Source |
1 | | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | | /* |
3 | | File: canonmn.cpp |
4 | | Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net> |
5 | | David Cannings (dc) <david@edeca.net> |
6 | | Andi Clemens (ac) <andi.clemens@gmx.net> |
7 | | */ |
8 | | // included header files |
9 | | #include "canonmn_int.hpp" |
10 | | |
11 | | #include "error.hpp" |
12 | | #include "exif.hpp" |
13 | | #include "i18n.h" // NLS support. |
14 | | #include "image_int.hpp" |
15 | | #include "makernote_int.hpp" |
16 | | #include "tags.hpp" |
17 | | #include "tags_int.hpp" |
18 | | #include "types.hpp" |
19 | | #include "utils.hpp" |
20 | | #include "value.hpp" |
21 | | |
22 | | // + standard includes |
23 | | #include <cmath> |
24 | | #include <regex> |
25 | | #include <sstream> |
26 | | #include <string> |
27 | | // ***************************************************************************** |
28 | | // class member definitions |
29 | | namespace Exiv2::Internal { |
30 | | //! OffOn, multiple tags |
31 | | constexpr TagDetails canonOffOn[] = { |
32 | | {0, N_("Off")}, |
33 | | {1, N_("On")}, |
34 | | }; |
35 | | |
36 | | static std::ostream& printCsLensTypeByMetadata(std::ostream& os, const Value& value, const ExifData* metadata); |
37 | | |
38 | | //! Special treatment pretty-print function for non-unique lens ids. |
39 | | static std::ostream& printCsLensFFFF(std::ostream& os, const Value& value, const ExifData* metadata); |
40 | | |
41 | | static float string_to_float(std::string_view str); |
42 | | |
43 | | //! ModelId, tag 0x0010 |
44 | | constexpr TagDetails canonModelId[] = { |
45 | | {0x00000412, "EOS M50 / Kiss M"}, |
46 | | {0x00000801, "PowerShot SX740 HS"}, |
47 | | {0x00000804, "Powershot G5 X Mark II"}, |
48 | | {0x00000805, "PowerShot SX70 HS"}, |
49 | | {0x00000808, "PowerShot G7 X Mark III"}, |
50 | | {0x00000811, "EOS M6 Mark II"}, |
51 | | {0x00000812, "EOS M200"}, |
52 | | {0x01010000, "PowerShot A30"}, |
53 | | {0x01040000, "PowerShot S300 / Digital IXUS 300 / IXY Digital 300"}, |
54 | | {0x01060000, "PowerShot A20"}, |
55 | | {0x01080000, "PowerShot A10"}, |
56 | | {0x01090000, "PowerShot S110 / Digital IXUS v / IXY Digital 200"}, |
57 | | {0x01100000, "PowerShot G2"}, |
58 | | {0x01110000, "PowerShot S40"}, |
59 | | {0x01120000, "PowerShot S30"}, |
60 | | {0x01130000, "PowerShot A40"}, |
61 | | {0x01140000, "EOS D30"}, |
62 | | {0x01150000, "PowerShot A100"}, |
63 | | {0x01160000, "PowerShot S200 / Digital IXUS v2 / IXY Digital 200a"}, |
64 | | {0x01170000, "PowerShot A200"}, |
65 | | {0x01180000, "PowerShot S330 / Digital IXUS 330 / IXY Digital 300a"}, |
66 | | {0x01190000, "PowerShot G3"}, |
67 | | {0x01210000, "PowerShot S45"}, |
68 | | {0x01230000, "PowerShot SD100 / Digital IXUS II / IXY Digital 30"}, |
69 | | {0x01240000, "PowerShot S230 / Digital IXUS v3 / IXY Digital 320"}, |
70 | | {0x01250000, "PowerShot A70"}, |
71 | | {0x01260000, "PowerShot A60"}, |
72 | | {0x01270000, "PowerShot S400 / Digital IXUS 400 / IXY Digital 400"}, |
73 | | {0x01290000, "PowerShot G5"}, |
74 | | {0x01300000, "PowerShot A300"}, |
75 | | {0x01310000, "PowerShot S50"}, |
76 | | {0x01340000, "PowerShot A80"}, |
77 | | {0x01350000, "PowerShot SD10 / Digital IXUS i / IXY Digital L"}, |
78 | | {0x01360000, "PowerShot S1 IS"}, |
79 | | {0x01370000, "PowerShot Pro1"}, |
80 | | {0x01380000, "PowerShot S70"}, |
81 | | {0x01390000, "PowerShot S60"}, |
82 | | {0x01400000, "PowerShot G6"}, |
83 | | {0x01410000, "PowerShot S500 / Digital IXUS 500 / IXY Digital 500"}, |
84 | | {0x01420000, "PowerShot A75"}, |
85 | | {0x01440000, "PowerShot SD110 / Digital IXUS IIs / IXY Digital 30a"}, |
86 | | {0x01450000, "PowerShot A400"}, |
87 | | {0x01470000, "PowerShot A310"}, |
88 | | {0x01490000, "PowerShot A85"}, |
89 | | {0x01520000, "PowerShot S410 / Digital IXUS 430 / IXY Digital 450"}, |
90 | | {0x01530000, "PowerShot A95"}, |
91 | | {0x01540000, "PowerShot SD300 / Digital IXUS 40 / IXY Digital 50"}, |
92 | | {0x01550000, "PowerShot SD200 / Digital IXUS 30 / IXY Digital 40"}, |
93 | | {0x01560000, "PowerShot A520"}, |
94 | | {0x01570000, "PowerShot A510"}, |
95 | | {0x01590000, "PowerShot SD20 / Digital IXUS i5 / IXY Digital L2"}, |
96 | | {0x01640000, "PowerShot S2 IS"}, |
97 | | {0x01650000, "PowerShot SD430 / Digital IXUS Wireless / IXY Digital Wireless"}, |
98 | | {0x01660000, "PowerShot SD500 / Digital IXUS 700 / IXY Digital 600"}, |
99 | | {0x01668000, "EOS D60"}, |
100 | | {0x01700000, "PowerShot SD30 / Digital IXUS i Zoom / IXY Digital L3"}, |
101 | | {0x01740000, "PowerShot A430"}, |
102 | | {0x01750000, "PowerShot A410"}, |
103 | | {0x01760000, "PowerShot S80"}, |
104 | | {0x01780000, "PowerShot A620"}, |
105 | | {0x01790000, "PowerShot A610"}, |
106 | | {0x01800000, "PowerShot SD630 / Digital IXUS 65 / IXY Digital 80"}, |
107 | | {0x01810000, "PowerShot SD450 / Digital IXUS 55 / IXY Digital 60"}, |
108 | | {0x01820000, "PowerShot TX1"}, |
109 | | {0x01870000, "PowerShot SD400 / Digital IXUS 50 / IXY Digital 55"}, |
110 | | {0x01880000, "PowerShot A420"}, |
111 | | {0x01890000, "PowerShot SD900 / Digital IXUS 900 Ti / IXY Digital 1000"}, |
112 | | {0x01900000, "PowerShot SD550 / Digital IXUS 750 / IXY Digital 700"}, |
113 | | {0x01920000, "PowerShot A700"}, |
114 | | {0x01940000, "PowerShot SD700 IS / Digital IXUS 800 IS / IXY Digital 800 IS"}, |
115 | | {0x01950000, "PowerShot S3 IS"}, |
116 | | {0x01960000, "PowerShot A540"}, |
117 | | {0x01970000, "PowerShot SD600 / Digital IXUS 60 / IXY Digital 70"}, |
118 | | {0x01980000, "PowerShot G7"}, |
119 | | {0x01990000, "PowerShot A530"}, |
120 | | {0x02000000, "PowerShot SD800 IS / Digital IXUS 850 IS / IXY Digital 900 IS"}, |
121 | | {0x02010000, "PowerShot SD40 / Digital IXUS i7 / IXY Digital L4"}, |
122 | | {0x02020000, "PowerShot A710 IS"}, |
123 | | {0x02030000, "PowerShot A640"}, |
124 | | {0x02040000, "PowerShot A630"}, |
125 | | {0x02090000, "PowerShot S5 IS"}, |
126 | | {0x02100000, "PowerShot A460"}, |
127 | | {0x02120000, "PowerShot SD850 IS / Digital IXUS 950 IS / IXY Digital 810 IS"}, |
128 | | {0x02130000, "PowerShot A570 IS"}, |
129 | | {0x02140000, "PowerShot A560"}, |
130 | | {0x02150000, "PowerShot SD750 / Digital IXUS 75 / IXY Digital 90"}, |
131 | | {0x02160000, "PowerShot SD1000 / Digital IXUS 70 / IXY Digital 10"}, |
132 | | {0x02180000, "PowerShot A550"}, |
133 | | {0x02190000, "PowerShot A450"}, |
134 | | {0x02230000, "PowerShot G9"}, |
135 | | {0x02240000, "PowerShot A650 IS"}, |
136 | | {0x02260000, "PowerShot A720 IS"}, |
137 | | {0x02290000, "PowerShot SX100 IS"}, |
138 | | {0x02300000, "PowerShot SD950 IS / Digital IXUS 960 IS / IXY Digital 2000 IS"}, |
139 | | {0x02310000, "PowerShot SD870 IS / Digital IXUS 860 IS / IXY Digital 910 IS"}, |
140 | | {0x02320000, "PowerShot SD890 IS / Digital IXUS 970 IS / IXY Digital 820 IS"}, |
141 | | {0x02360000, "PowerShot SD790 IS / Digital IXUS 90 IS / IXY Digital 95 IS"}, |
142 | | {0x02370000, "PowerShot SD770 IS / Digital IXUS 85 IS / IXY Digital 25 IS"}, |
143 | | {0x02380000, "PowerShot A590 IS"}, |
144 | | {0x02390000, "PowerShot A580"}, |
145 | | {0x02420000, "PowerShot A470"}, |
146 | | {0x02430000, "PowerShot SD1100 IS / Digital IXUS 80 IS / IXY Digital 20 IS"}, |
147 | | {0x02460000, "PowerShot SX1 IS"}, |
148 | | {0x02470000, "PowerShot SX10 IS"}, |
149 | | {0x02480000, "PowerShot A1000 IS"}, |
150 | | {0x02490000, "PowerShot G10"}, |
151 | | {0x02510000, "PowerShot A2000 IS"}, |
152 | | {0x02520000, "PowerShot SX110 IS"}, |
153 | | {0x02530000, "PowerShot SD990 IS / Digital IXUS 980 IS / IXY Digital 3000 IS"}, |
154 | | {0x02540000, "PowerShot SD880 IS / Digital IXUS 870 IS / IXY Digital 920 IS"}, |
155 | | {0x02550000, "PowerShot E1"}, |
156 | | {0x02560000, "PowerShot D10"}, |
157 | | {0x02570000, "PowerShot SD960 IS / Digital IXUS 110 IS / IXY Digital 510 IS"}, |
158 | | {0x02580000, "PowerShot A2100 IS"}, |
159 | | {0x02590000, "PowerShot A480"}, |
160 | | {0x02600000, "PowerShot SX200 IS"}, |
161 | | {0x02610000, "PowerShot SD970 IS / Digital IXUS 990 IS / IXY Digital 830 IS"}, |
162 | | {0x02620000, "PowerShot SD780 IS / Digital IXUS 100 IS / IXY Digital 210 IS"}, |
163 | | {0x02630000, "PowerShot A1100 IS"}, |
164 | | {0x02640000, "PowerShot SD1200 IS / Digital IXUS 95 IS / IXY Digital 110 IS"}, |
165 | | {0x02700000, "PowerShot G11"}, |
166 | | {0x02710000, "PowerShot SX120 IS"}, |
167 | | {0x02720000, "PowerShot S90"}, |
168 | | {0x02750000, "PowerShot SX20 IS"}, |
169 | | {0x02760000, "PowerShot SD980 IS / Digital IXUS 200 IS / IXY Digital 930 IS"}, |
170 | | {0x02770000, "PowerShot SD940 IS / Digital IXUS 120 IS / IXY Digital 220 IS"}, |
171 | | {0x02800000, "PowerShot A495"}, |
172 | | {0x02810000, "PowerShot A490"}, |
173 | | {0x02820000, "PowerShot A3100/A3150 IS"}, |
174 | | {0x02830000, "PowerShot A3000 IS"}, |
175 | | {0x02840000, "PowerShot SD1400 IS / IXUS 130 / IXY 400F"}, |
176 | | {0x02850000, "PowerShot SD1300 IS / IXUS 105 / IXY 200F"}, |
177 | | {0x02860000, "PowerShot SD3500 IS / IXUS 210 / IXY 10S"}, |
178 | | {0x02870000, "PowerShot SX210 IS"}, |
179 | | {0x02880000, "PowerShot SD4000 IS / IXUS 300 HS / IXY 30S"}, |
180 | | {0x02890000, "PowerShot SD4500 IS / IXUS 1000 HS / IXY 50S"}, |
181 | | {0x02920000, "PowerShot G12"}, |
182 | | {0x02930000, "PowerShot SX30 IS"}, |
183 | | {0x02940000, "PowerShot SX130 IS"}, |
184 | | {0x02950000, "PowerShot S95"}, |
185 | | {0x02980000, "PowerShot A3300 IS"}, |
186 | | {0x02990000, "PowerShot A3200 IS"}, |
187 | | {0x03000000, "PowerShot ELPH 500 HS / IXUS 310 HS / IXY 31S"}, |
188 | | {0x03010000, "PowerShot Pro90 IS"}, |
189 | | {0x03010001, "PowerShot A800"}, |
190 | | {0x03020000, "PowerShot ELPH 100 HS / IXUS 115 HS / IXY 210F"}, |
191 | | {0x03030000, "PowerShot SX230 HS"}, |
192 | | {0x03040000, "PowerShot ELPH 300 HS / IXUS 220 HS / IXY 410F"}, |
193 | | {0x03050000, "PowerShot A2200"}, |
194 | | {0x03060000, "PowerShot A1200"}, |
195 | | {0x03070000, "PowerShot SX220 HS"}, |
196 | | {0x03080000, "PowerShot G1 X"}, |
197 | | {0x03090000, "PowerShot SX150 IS"}, |
198 | | {0x03100000, "PowerShot ELPH 510 HS / IXUS 1100 HS / IXY 51S"}, |
199 | | {0x03110000, "PowerShot S100 (new)"}, |
200 | | {0x03120000, "PowerShot ELPH 310 HS / IXUS 230 HS / IXY 600F"}, |
201 | | {0x03130000, "PowerShot SX40 HS"}, |
202 | | {0x03140000, "IXY 32S"}, |
203 | | {0x03160000, "PowerShot A1300"}, |
204 | | {0x03170000, "PowerShot A810"}, |
205 | | {0x03180000, "PowerShot ELPH 320 HS / IXUS 240 HS / IXY 420F"}, |
206 | | {0x03190000, "PowerShot ELPH 110 HS / IXUS 125 HS / IXY 220F"}, |
207 | | {0x03200000, "PowerShot D20"}, |
208 | | {0x03210000, "PowerShot A4000 IS"}, |
209 | | {0x03220000, "PowerShot SX260 HS"}, |
210 | | {0x03230000, "PowerShot SX240 HS"}, |
211 | | {0x03240000, "PowerShot ELPH 530 HS / IXUS 510 HS / IXY 1"}, |
212 | | {0x03250000, "PowerShot ELPH 520 HS / IXUS 500 HS / IXY 3"}, |
213 | | {0x03260000, "PowerShot A3400 IS"}, |
214 | | {0x03270000, "PowerShot A2400 IS"}, |
215 | | {0x03280000, "PowerShot A2300"}, |
216 | | {0x03320000, "PowerShot S100V"}, |
217 | | {0x03330000, "PowerShot G15"}, |
218 | | {0x03340000, "PowerShot SX50 HS"}, |
219 | | {0x03350000, "PowerShot SX160 IS"}, |
220 | | {0x03360000, "PowerShot S110 (new)"}, |
221 | | {0x03370000, "PowerShot SX500 IS"}, |
222 | | {0x03380000, "PowerShot N"}, |
223 | | {0x03390000, "IXUS 245 HS / IXY 430F"}, |
224 | | {0x03400000, "PowerShot SX280 HS"}, |
225 | | {0x03410000, "PowerShot SX270 HS"}, |
226 | | {0x03420000, "PowerShot A3500 IS"}, |
227 | | {0x03430000, "PowerShot A2600"}, |
228 | | {0x03440000, "PowerShot SX275 HS"}, |
229 | | {0x03450000, "PowerShot A1400"}, |
230 | | {0x03460000, "PowerShot ELPH 130 IS / IXUS 140 / IXY 110F"}, |
231 | | {0x03470000, "PowerShot ELPH 115/120 IS / IXUS 132/135 / IXY 90F/100F"}, |
232 | | {0x03490000, "PowerShot ELPH 330 HS / IXUS 255 HS / IXY 610F"}, |
233 | | {0x03510000, "PowerShot A2500"}, |
234 | | {0x03540000, "PowerShot G16"}, |
235 | | {0x03550000, "PowerShot S120"}, |
236 | | {0x03560000, "PowerShot SX170 IS"}, |
237 | | {0x03580000, "PowerShot SX510 HS"}, |
238 | | {0x03590000, "PowerShot S200 (new)"}, |
239 | | {0x03600000, "IXY 620F"}, |
240 | | {0x03610000, "PowerShot N100"}, |
241 | | {0x03640000, "PowerShot G1 X Mark II"}, |
242 | | {0x03650000, "PowerShot D30"}, |
243 | | {0x03660000, "PowerShot SX700 HS"}, |
244 | | {0x03670000, "PowerShot SX600 HS"}, |
245 | | {0x03680000, "PowerShot ELPH 140 IS / IXUS 150 / IXY 130"}, |
246 | | {0x03690000, "PowerShot ELPH 135 / IXUS 145 / IXY 120"}, |
247 | | {0x03700000, "PowerShot ELPH 340 HS / IXUS 265 HS / IXY 630"}, |
248 | | {0x03710000, "PowerShot ELPH 150 IS / IXUS 155 / IXY 140"}, |
249 | | {0x03740000, "EOS M3"}, |
250 | | {0x03750000, "PowerShot SX60 HS"}, |
251 | | {0x03760000, "PowerShot SX520 HS"}, |
252 | | {0x03770000, "PowerShot SX400 IS"}, |
253 | | {0x03780000, "PowerShot G7 X"}, |
254 | | {0x03790000, "PowerShot N2"}, |
255 | | {0x03800000, "PowerShot SX530 HS"}, |
256 | | {0x03820000, "PowerShot SX710 HS"}, |
257 | | {0x03830000, "PowerShot SX610 HS"}, |
258 | | {0x03840000, "EOS M10"}, |
259 | | {0x03850000, "PowerShot G3 X"}, |
260 | | {0x03860000, "PowerShot ELPH 165 HS / IXUS 165 / IXY 160"}, |
261 | | {0x03870000, "PowerShot ELPH 160 / IXUS 160"}, |
262 | | {0x03880000, "PowerShot ELPH 350 HS / IXUS 275 HS / IXY 640"}, |
263 | | {0x03890000, "PowerShot ELPH 170 IS / IXUS 170"}, |
264 | | {0x03910000, "PowerShot SX410 IS"}, |
265 | | {0x03930000, "PowerShot G9 X"}, |
266 | | {0x03940000, "EOS M5"}, |
267 | | {0x03950000, "PowerShot G5 X"}, |
268 | | {0x03970000, "PowerShot G7 X Mark II"}, |
269 | | {0x03980000, "EOS M100"}, |
270 | | {0x03990000, "PowerShot ELPH 360 HS / IXUS 285 HS / IXY 650"}, |
271 | | {0x04010000, "PowerShot SX540 HS"}, |
272 | | {0x04020000, "PowerShot SX420 IS"}, |
273 | | {0x04030000, "PowerShot ELPH 190 IS / IXUS 180 / IXY 190"}, |
274 | | {0x04040000, "PowerShot G1"}, |
275 | | {0x04040001, "PowerShot ELPH 180 IS / IXUS 175 / IXY 180"}, |
276 | | {0x04050000, "PowerShot SX720 HS"}, |
277 | | {0x04060000, "PowerShot SX620 HS"}, |
278 | | {0x04070000, "EOS M6"}, |
279 | | {0x04100000, "PowerShot G9 X Mark II"}, |
280 | | {0x04150000, "PowerShot ELPH 185 / IXUS 185 / IXY 200"}, |
281 | | {0x04160000, "PowerShot SX430 IS"}, |
282 | | {0x04170000, "PowerShot SX730 HS"}, |
283 | | {0x04180000, "PowerShot G1 X Mark III"}, |
284 | | {0x06040000, "PowerShot S100 / Digital IXUS / IXY Digital"}, |
285 | | {0x40000227, "EOS C50"}, |
286 | | {0x4007d673, "DC19/DC21/DC22"}, |
287 | | {0x4007d674, "XH A1"}, |
288 | | {0x4007d675, "HV10"}, |
289 | | {0x4007d676, "MD130/MD140/MD150/MD160/ZR850"}, |
290 | | {0x4007d777, "DC50"}, |
291 | | {0x4007d778, "HV20"}, |
292 | | {0x4007d779, "DC211"}, |
293 | | {0x4007d77a, "HG10"}, |
294 | | {0x4007d77b, "HR10"}, |
295 | | {0x4007d77d, "MD255/ZR950"}, |
296 | | {0x4007d81c, "HF11"}, |
297 | | {0x4007d878, "HV30"}, |
298 | | {0x4007d87c, "XH A1S"}, |
299 | | {0x4007d87e, "DC301/DC310/DC311/DC320/DC330"}, |
300 | | {0x4007d87f, "FS100"}, |
301 | | {0x4007d880, "HF10"}, |
302 | | {0x4007d882, "HG20/HG21"}, |
303 | | {0x4007d925, "HF21"}, |
304 | | {0x4007d926, "HF S11"}, |
305 | | {0x4007d978, "HV40"}, |
306 | | {0x4007d987, "DC410/DC411/DC420"}, |
307 | | {0x4007d988, "FS19/FS20/FS21/FS22/FS200"}, |
308 | | {0x4007d989, "HF20/HF200"}, |
309 | | {0x4007d98a, "HF S10/S100"}, |
310 | | {0x4007da8e, "HF R10/R16/R17/R18/R100/R106"}, |
311 | | {0x4007da8f, "HF M30/M31/M36/M300/M306"}, |
312 | | {0x4007da90, "HF S20/S21/S200"}, |
313 | | {0x4007da92, "FS31/FS36/FS37/FS300/FS305/FS306/FS307"}, |
314 | | {0x4007dca0, "EOS C300"}, |
315 | | {0x4007dda9, "HF G25"}, |
316 | | {0x4007dfb4, "XC10"}, |
317 | | {0x4007e1c3, "EOS C200"}, |
318 | | {0x80000001, "EOS-1D"}, |
319 | | {0x80000167, "EOS-1DS"}, |
320 | | {0x80000168, "EOS 10D"}, |
321 | | {0x80000169, "EOS-1D Mark III"}, |
322 | | {0x80000170, "EOS Digital Rebel / 300D / Kiss Digital"}, |
323 | | {0x80000174, "EOS-1D Mark II"}, |
324 | | {0x80000175, "EOS 20D"}, |
325 | | {0x80000176, "EOS Digital Rebel XSi / 450D / Kiss X2"}, |
326 | | {0x80000188, "EOS-1Ds Mark II"}, |
327 | | {0x80000189, "EOS Digital Rebel XT / 350D / Kiss Digital N"}, |
328 | | {0x80000190, "EOS 40D"}, |
329 | | {0x80000213, "EOS 5D"}, |
330 | | {0x80000215, "EOS-1Ds Mark III"}, |
331 | | {0x80000218, "EOS 5D Mark II"}, |
332 | | {0x80000219, "WFT-E1"}, |
333 | | {0x80000232, "EOS-1D Mark II N"}, |
334 | | {0x80000234, "EOS 30D"}, |
335 | | {0x80000236, "EOS Digital Rebel XTi / 400D / Kiss Digital X"}, |
336 | | {0x80000241, "WFT-E2"}, |
337 | | {0x80000246, "WFT-E3"}, |
338 | | {0x80000250, "EOS 7D"}, |
339 | | {0x80000252, "EOS Rebel T1i / 500D / Kiss X3"}, |
340 | | {0x80000254, "EOS Rebel XS / 1000D / Kiss F"}, |
341 | | {0x80000261, "EOS 50D"}, |
342 | | {0x80000269, "EOS-1D X"}, |
343 | | {0x80000270, "EOS Rebel T2i / 550D / Kiss X4"}, |
344 | | {0x80000271, "WFT-E4"}, |
345 | | {0x80000273, "WFT-E5"}, |
346 | | {0x80000281, "EOS-1D Mark IV"}, |
347 | | {0x80000285, "EOS 5D Mark III"}, |
348 | | {0x80000286, "EOS Rebel T3i / 600D / Kiss X5"}, |
349 | | {0x80000287, "EOS 60D"}, |
350 | | {0x80000288, "EOS Rebel T3 / 1100D / Kiss X50"}, |
351 | | {0x80000289, "EOS 7D Mark II"}, |
352 | | {0x80000297, "WFT-E2 II"}, |
353 | | {0x80000298, "WFT-E4 II"}, |
354 | | {0x80000301, "EOS Rebel T4i / 650D / Kiss X6i"}, |
355 | | {0x80000302, "EOS 6D"}, |
356 | | {0x80000324, "EOS-1D C"}, |
357 | | {0x80000325, "EOS 70D"}, |
358 | | {0x80000326, "EOS Rebel T5i / 700D / Kiss X7i"}, |
359 | | {0x80000327, "EOS Rebel T5 / 1200D / Kiss X70 / Hi"}, |
360 | | {0x80000328, "EOS-1D X Mark II"}, |
361 | | {0x80000331, "EOS M"}, |
362 | | {0x80000346, "EOS Rebel SL1 / 100D / Kiss X7"}, |
363 | | {0x80000347, "EOS Rebel T6s / 760D / 8000D"}, |
364 | | {0x80000349, "EOS 5D Mark IV"}, |
365 | | {0x80000350, "EOS 80D"}, |
366 | | {0x80000355, "EOS M2"}, |
367 | | {0x80000382, "EOS 5DS"}, |
368 | | {0x80000393, "EOS Rebel T6i / 750D / Kiss X8i"}, |
369 | | {0x80000401, "EOS 5DS R"}, |
370 | | {0x80000404, "EOS Rebel T6 / 1300D / Kiss X80"}, |
371 | | {0x80000405, "EOS Rebel T7i / 800D / Kiss X9i"}, |
372 | | {0x80000406, "EOS 6D Mark II"}, |
373 | | {0x80000408, "EOS 77D / 9000D"}, |
374 | | {0x80000417, "EOS Rebel SL2 / 200D / Kiss X9"}, |
375 | | {0x80000421, "EOS R5"}, |
376 | | {0x80000422, "EOS Rebel T100 / 4000D / 3000D"}, |
377 | | {0x80000424, "EOS R / Ra"}, |
378 | | {0x80000428, "EOS-1D X Mark III"}, |
379 | | {0x80000432, "EOS Rebel T7 / 2000D / 1500D / Kiss X90"}, |
380 | | {0x80000433, "EOS RP"}, |
381 | | {0x80000435, "EOS Rebel T8i / 850D / Kiss X10i"}, |
382 | | {0x80000436, "EOS Rebel SL3 / 250D / 200D Mark II / Kiss X10"}, |
383 | | {0x80000437, "EOS 90D"}, |
384 | | {0x80000450, "EOS R3"}, |
385 | | {0x80000453, "EOS R6"}, |
386 | | {0x80000464, "EOS R7"}, |
387 | | {0x80000465, "EOS R10"}, |
388 | | {0x80000467, "PowerShot ZOOM"}, |
389 | | {0x80000468, "EOS M50 Mark II / Kiss M2"}, |
390 | | {0x80000480, "EOS R50"}, |
391 | | {0x80000481, "EOS R6 Mark II"}, |
392 | | {0x80000487, "EOS R8"}, |
393 | | {0x80000491, "PowerShot V10"}, |
394 | | {0x80000495, "EOS R1"}, |
395 | | {0x80000496, "EOS R5 Mark II"}, |
396 | | {0x80000497, "PowerShot V1"}, |
397 | | {0x80000498, "EOS R100"}, |
398 | | {0x80000516, "EOS R50 V"}, |
399 | | {0x80000518, "EOS R6 Mark III"}, |
400 | | {0x80000520, "EOS D2000C"}, |
401 | | {0x80000560, "EOS D6000C"}, |
402 | | }; |
403 | | |
404 | | //! SerialNumberFormat, tag 0x0015 |
405 | | constexpr TagDetails canonSerialNumberFormat[] = { |
406 | | {0x90000000, N_("Format 1")}, |
407 | | {0xa0000000, N_("Format 2")}, |
408 | | }; |
409 | | |
410 | | //! SuperMacro, tag 0x001a |
411 | | constexpr TagDetails canonSuperMacro[] = { |
412 | | {0, N_("Off")}, |
413 | | {1, N_("On (1)")}, |
414 | | {2, N_("On (2)")}, |
415 | | }; |
416 | | |
417 | | // DateStampMode, tag 0x001c |
418 | | constexpr TagDetails canonDateStampMode[] = { |
419 | | {0, N_("Off")}, |
420 | | {1, N_("Date")}, |
421 | | {2, N_("Date & Time")}, |
422 | | }; |
423 | | |
424 | | // Categories, tag 0x0023 |
425 | | [[maybe_unused]] constexpr TagDetails canonCategories[] = { |
426 | | {0x0001, N_("People")}, {0x0002, N_("Scenery")}, {0x0004, N_("Events")}, {0x0008, N_("User 1")}, |
427 | | {0x0016, N_("User 2")}, {0x0032, N_("User 3")}, {0x0064, N_("To Do")}, |
428 | | }; |
429 | | |
430 | | //! PictureStyle Values |
431 | | constexpr TagDetails canonPictureStyle[] = { |
432 | | {0x00, N_("None")}, {0x01, N_("Standard")}, {0x02, N_("Portrait")}, {0x03, N_("High Saturation")}, |
433 | | {0x04, N_("Adobe RGB")}, {0x05, N_("Low Saturation")}, {0x06, N_("CM Set 1")}, {0x07, N_("CM Set 2")}, |
434 | | {0x21, N_("User Def. 1")}, {0x22, N_("User Def. 2")}, {0x23, N_("User Def. 3")}, {0x41, N_("PC 1")}, |
435 | | {0x42, N_("PC 2")}, {0x43, N_("PC 3")}, {0x81, N_("Standard")}, {0x82, N_("Portrait")}, |
436 | | {0x83, N_("Landscape")}, {0x84, N_("Neutral")}, {0x85, N_("Faithful")}, {0x86, N_("Monochrome")}, |
437 | | {0x87, N_("Auto")}, {0x88, N_("Fine Detail")}, |
438 | | }; |
439 | | |
440 | | //! WhiteBalance, multiple tags |
441 | | constexpr TagDetails canonSiWhiteBalance[] = { |
442 | | {0, N_("Auto")}, {1, N_("Daylight")}, |
443 | | {2, N_("Cloudy")}, {3, N_("Tungsten")}, |
444 | | {4, N_("Fluorescent")}, {5, N_("Flash")}, |
445 | | {6, N_("Custom")}, {7, N_("Black & White")}, |
446 | | {8, N_("Shade")}, {9, N_("Manual Temperature (Kelvin)")}, |
447 | | {10, N_("PC Set 1")}, {11, N_("PC Set 2")}, |
448 | | {12, N_("PC Set 3")}, {14, N_("Daylight Fluorescent")}, |
449 | | {15, N_("Custom 1")}, {16, N_("Custom 2")}, |
450 | | {17, N_("Underwater")}, {18, N_("Custom 3")}, |
451 | | {19, N_("Custom 3")}, {20, N_("PC Set 4")}, |
452 | | {21, N_("PC Set 5")}, {23, N_("Auto (ambience priority)")}, |
453 | | }; |
454 | | |
455 | | //! ColorSpace, tag 0x00b4 |
456 | | constexpr TagDetails canonColorSpace[] = { |
457 | | {1, N_("sRGB")}, |
458 | | {2, N_("Adobe RGB")}, |
459 | | {65535, N_("n/a")}, |
460 | | }; |
461 | | |
462 | | //! Canon AF Area Mode, tag 0x2601 |
463 | | constexpr TagDetails canonAFAreaMode[] = { |
464 | | {0, N_("Off (Manual Focus)")}, |
465 | | {1, N_("AF Point Expansion (surround)")}, |
466 | | {2, N_("Single-point AF")}, |
467 | | {4, N_("Multi-point AF")}, |
468 | | {5, N_("Face Detect AF")}, |
469 | | {6, N_("Face + Tracking")}, |
470 | | {7, N_("Zone AF")}, |
471 | | {8, N_("AF Point Expansion (4 point)")}, |
472 | | {9, N_("Spot AF")}, |
473 | | {10, N_("AF Point Expansion (8 point)")}, |
474 | | {11, N_("Flexizone Multi (49 point)")}, |
475 | | {12, N_("Flexizone Multi (9 point)")}, |
476 | | {13, N_("Flexizone Single")}, |
477 | | {14, N_("Large Zone AF")}, |
478 | | }; |
479 | | |
480 | | // Canon MakerNote Tag Info |
481 | | constexpr TagInfo CanonMakerNote::tagInfo_[] = { |
482 | | {0x0000, "0x0000", "0x0000", N_("Unknown"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
483 | | {0x0001, "CameraSettings", N_("Camera Settings"), N_("Various camera settings"), IfdId::canonId, |
484 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
485 | | {0x0002, "FocalLength", N_("Focal Length"), N_("Focal length"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
486 | | -1, printFocalLength}, |
487 | | {0x0003, "CanonFlashInfo", "Canon Flash Info", N_("Canon Flash Info"), IfdId::canonId, SectionId::makerTags, |
488 | | unsignedShort, -1, printValue}, |
489 | | {0x0004, "ShotInfo", N_("Shot Info"), N_("Shot information"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
490 | | -1, printValue}, |
491 | | {0x0005, "Panorama", N_("Panorama"), N_("Panorama"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
492 | | printValue}, |
493 | | {0x0006, "ImageType", N_("Image Type"), N_("Image type"), IfdId::canonId, SectionId::makerTags, asciiString, -1, |
494 | | printValue}, |
495 | | {0x0007, "FirmwareVersion", N_("Firmware Version"), N_("Firmware version"), IfdId::canonId, SectionId::makerTags, |
496 | | asciiString, -1, printValue}, |
497 | | {0x0008, "FileNumber", N_("File Number"), N_("File number"), IfdId::canonId, SectionId::makerTags, unsignedLong, -1, |
498 | | print0x0008}, |
499 | | {0x0009, "OwnerName", N_("Owner Name"), N_("Owner Name"), IfdId::canonId, SectionId::makerTags, asciiString, -1, |
500 | | printValue}, |
501 | | {0x000a, "0x000a", N_("0x000a"), N_("Unknown"), IfdId::canonId, SectionId::makerTags, unsignedLong, -1, |
502 | | print0x000a}, |
503 | | {0x000c, "SerialNumber", N_("Serial Number"), N_("Camera serial number"), IfdId::canonId, SectionId::makerTags, |
504 | | unsignedLong, -1, print0x000c}, |
505 | | {0x000d, "CameraInfo", N_("Camera Info"), N_("Camera info"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
506 | | -1, printValue}, |
507 | | {0x000e, "FileLength", N_("FileLength"), N_("FileLength"), IfdId::canonId, SectionId::makerTags, unsignedLong, -1, |
508 | | printValue}, |
509 | | {0x000f, "CustomFunctions2", N_("Custom Functions 2"), N_("Custom Functions 2"), IfdId::canonId, |
510 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
511 | | {0x0010, "ModelID", N_("ModelID"), N_("Model ID"), IfdId::canonId, SectionId::makerTags, unsignedLong, -1, |
512 | | EXV_PRINT_TAG(canonModelId)}, |
513 | | {0x0011, "MovieInfo", N_("MovieInfo"), N_("Movie info"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
514 | | printValue}, |
515 | | {0x0012, "PictureInfo", N_("Picture Info"), N_("Picture info"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
516 | | -1, printValue}, |
517 | | {0x0013, "ThumbnailImageValidArea", N_("Thumbnail Image Valid Area"), N_("Thumbnail image valid area"), |
518 | | IfdId::canonId, SectionId::makerTags, signedShort, -1, printValue}, |
519 | | {0x0015, "SerialNumberFormat", N_("Serial Number Format"), N_("Serial number format"), IfdId::canonId, |
520 | | SectionId::makerTags, unsignedLong, -1, EXV_PRINT_TAG(canonSerialNumberFormat)}, |
521 | | {0x001a, "SuperMacro", N_("Super Macro"), N_("Super macro"), IfdId::canonId, SectionId::makerTags, signedShort, -1, |
522 | | EXV_PRINT_TAG(canonSuperMacro)}, |
523 | | {0x001c, "DateStampMode", N_("DateStampMode"), N_("Date stamp mode"), IfdId::canonId, SectionId::makerTags, |
524 | | unsignedShort, -1, EXV_PRINT_TAG(canonDateStampMode)}, |
525 | | {0x001d, "MyColors", N_("MyColors"), N_("My_Colors"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
526 | | printValue}, |
527 | | {0x001e, "FirmwareRevision", N_("FirmwareRevision"), N_("Firmware revision"), IfdId::canonId, SectionId::makerTags, |
528 | | unsignedLong, -1, printValue}, |
529 | | // {0x0023, "Categories", N_("Categories"), N_("Categories"), IfdId::canonId, SectionId::makerTags, unsignedLong -1, |
530 | | // EXV_PRINT_TAG(canonCategories)}, |
531 | | {0x0024, "FaceDetect1", N_("FaceDetect1"), N_("FaceDetect1"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
532 | | -1, printValue}, |
533 | | {0x0025, "FaceDetect2", N_("FaceDetect2"), N_("FaceDetect2"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
534 | | -1, printValue}, |
535 | | {0x0026, "AFInfo", N_("AF Info"), N_("AF info"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
536 | | printValue}, |
537 | | {0x0027, "ContrastInfo", N_("ContrastInfo"), N_("ContrastInfo"), IfdId::canonId, SectionId::makerTags, |
538 | | unsignedShort, -1, printValue}, |
539 | | {0x0028, "ImageUniqueID", N_("ImageUniqueID"), N_("ImageUniqueID"), IfdId::canonId, SectionId::makerTags, |
540 | | unsignedShort, -1, printValue}, |
541 | | {0x0029, "WBInfo", N_("WBInfo"), N_("WBInfo"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
542 | | {0x002f, "FaceDetect3", N_("FaceDetect3"), N_("FaceDetect3"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
543 | | -1, printValue}, |
544 | | {0x0035, "TimeInfo", N_("Time Info"), N_("Time zone information"), IfdId::canonId, SectionId::makerTags, signedLong, |
545 | | -1, printValue}, |
546 | | {0x0038, "BatteryType", N_("BatteryType"), N_("BatteryType"), IfdId::canonId, SectionId::makerTags, unsignedLong, |
547 | | -1, printValue}, |
548 | | {0x003c, "AFInfo3", N_("AFInfo3"), N_("AFInfo3"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
549 | | printValue}, |
550 | | {0x0081, "RawDataOffset", N_("RawDataOffset"), N_("RawDataOffset"), IfdId::canonId, SectionId::makerTags, |
551 | | signedLong, -1, printValue}, |
552 | | {0x0083, "OriginalDecisionDataOffset", N_("Original Decision Data Offset"), N_("Original decision data offset"), |
553 | | IfdId::canonId, SectionId::makerTags, signedLong, -1, printValue}, |
554 | | // {0x0090, "CustomFunctions1D", N_("CustomFunctions1D"), N_("CustomFunctions1D"), IfdId::canonId, |
555 | | // SectionId::makerTags, unsignedShort, -1, printValue}, // ToDo {0x0091, "PersonalFunctions", |
556 | | // N_("PersonalFunctions"), N_("PersonalFunctions"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
557 | | // printValue}, // ToDo {0x0092, "PersonalFunctionValues", N_("PersonalFunctionValues"), |
558 | | // N_("PersonalFunctionValues"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, // ToDo |
559 | | {0x0093, "CanonFileInfo", N_("CanonFileInfo"), N_("CanonFileInfo"), IfdId::canonId, SectionId::makerTags, |
560 | | unsignedShort, -1, printValue}, |
561 | | {0x0094, "AFPointsInFocus1D", N_("AFPointsInFocus1D"), N_("AFPointsInFocus1D"), IfdId::canonId, |
562 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
563 | | {0x0095, "LensModel", N_("Lens Model"), N_("Lens model"), IfdId::canonId, SectionId::makerTags, asciiString, -1, |
564 | | printValue}, |
565 | | {0x0096, "InternalSerialNumber", N_("Internal Serial Number"), N_("Internal serial number"), IfdId::canonId, |
566 | | SectionId::makerTags, asciiString, -1, printValue}, |
567 | | {0x0097, "DustRemovalData", N_("Dust Removal Data"), N_("Dust removal data"), IfdId::canonId, SectionId::makerTags, |
568 | | asciiString, -1, printValue}, |
569 | | {0x0099, "CustomFunctions", N_("Custom Functions"), N_("Custom functions"), IfdId::canonId, SectionId::makerTags, |
570 | | unsignedShort, -1, printValue}, |
571 | | {0x009a, "AspectInfo", N_("AspectInfo"), N_("AspectInfo"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
572 | | printValue}, |
573 | | {0x00a0, "ProcessingInfo", N_("Processing Info"), N_("Processing info"), IfdId::canonId, SectionId::makerTags, |
574 | | unsignedShort, -1, printValue}, |
575 | | {0x00a1, "ToneCurveTable", N_("ToneCurveTable"), N_("ToneCurveTable"), IfdId::canonId, SectionId::makerTags, |
576 | | unsignedShort, -1, printValue}, |
577 | | {0x00a2, "SharpnessTable", N_("SharpnessTable"), N_("SharpnessTable"), IfdId::canonId, SectionId::makerTags, |
578 | | unsignedShort, -1, printValue}, |
579 | | {0x00a3, "SharpnessFreqTable", N_("SharpnessFreqTable"), N_("SharpnessFreqTable"), IfdId::canonId, |
580 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
581 | | {0x00a4, "WhiteBalanceTable", N_("White Balance Table"), N_("White balance table"), IfdId::canonId, |
582 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
583 | | {0x00a9, "ColorBalance", N_("ColorBalance"), N_("ColorBalance"), IfdId::canonId, SectionId::makerTags, |
584 | | unsignedShort, -1, printValue}, |
585 | | {0x00aa, "MeasuredColor", N_("Measured Color"), N_("Measured color"), IfdId::canonId, SectionId::makerTags, |
586 | | unsignedShort, -1, printValue}, |
587 | | {0x00ae, "ColorTemperature", N_("ColorTemperature"), N_("ColorTemperature"), IfdId::canonId, SectionId::makerTags, |
588 | | unsignedShort, -1, printValue}, |
589 | | {0x00b0, "CanonFlags", N_("CanonFlags"), N_("CanonFlags"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
590 | | printValue}, |
591 | | {0x00b1, "ModifiedInfo", N_("ModifiedInfo"), N_("ModifiedInfo"), IfdId::canonId, SectionId::makerTags, |
592 | | unsignedShort, -1, printValue}, |
593 | | {0x00b2, "ToneCurveMatching", N_("ToneCurveMatching"), N_("ToneCurveMatching"), IfdId::canonId, |
594 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
595 | | {0x00b3, "WhiteBalanceMatching", N_("WhiteBalanceMatching"), N_("WhiteBalanceMatching"), IfdId::canonId, |
596 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
597 | | {0x00b4, "ColorSpace", N_("ColorSpace"), N_("ColorSpace"), IfdId::canonId, SectionId::makerTags, signedShort, -1, |
598 | | EXV_PRINT_TAG(canonColorSpace)}, |
599 | | {0x00b5, "0x00b5", "0x00b5", N_("Unknown"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
600 | | {0x00b6, "PreviewImageInfo", "PreviewImageInfo", N_("PreviewImageInfo"), IfdId::canonId, SectionId::makerTags, |
601 | | unsignedShort, -1, printValue}, |
602 | | {0x00c0, "0x00c0", "0x00c0", N_("Unknown"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
603 | | {0x00c1, "0x00c1", "0x00c1", N_("Unknown"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
604 | | {0x00d0, "VRDOffset", N_("VRD Offset"), N_("VRD offset"), IfdId::canonId, SectionId::makerTags, unsignedLong, -1, |
605 | | printValue}, |
606 | | {0x00e0, "SensorInfo", N_("Sensor Info"), N_("Sensor info"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
607 | | -1, printValue}, |
608 | | // AFInfo2 structure has a special decoder, see decodeCanonAFInfo in |
609 | | // tiffvisitor_int.cpp that decoder useses the below tags from |
610 | | // 0x2600 to 0x2611 |
611 | | {0x2600, "AFInfoSize", N_("AF InfoSize"), N_("AF InfoSize"), IfdId::canonId, SectionId::makerTags, signedShort, -1, |
612 | | printValue}, |
613 | | {0x2601, "AFAreaMode", N_("AF Area Mode"), N_("AF Area Mode"), IfdId::canonId, SectionId::makerTags, signedShort, |
614 | | -1, EXV_PRINT_TAG(canonAFAreaMode)}, |
615 | | {0x2602, "AFNumPoints", N_("AF NumPoints"), N_("AF NumPoints"), IfdId::canonId, SectionId::makerTags, signedShort, |
616 | | -1, printValue}, |
617 | | {0x2603, "AFValidPoints", N_("AF ValidPoints"), N_("AF ValidPoints"), IfdId::canonId, SectionId::makerTags, |
618 | | signedShort, -1, printValue}, |
619 | | {0x2604, "AFCanonImageWidth", N_("AF ImageWidth"), N_("AF ImageWidth"), IfdId::canonId, SectionId::makerTags, |
620 | | signedShort, -1, printValue}, |
621 | | {0x2605, "AFCanonImageHeight", N_("AF ImageHeight"), N_("AF ImageHeight"), IfdId::canonId, SectionId::makerTags, |
622 | | signedShort, -1, printValue}, |
623 | | {0x2606, "AFImageWidth", N_("AF Width"), N_("AF Width"), IfdId::canonId, SectionId::makerTags, signedShort, -1, |
624 | | printValue}, |
625 | | {0x2607, "AFImageHeight", N_("AF Height"), N_("AF Height"), IfdId::canonId, SectionId::makerTags, signedShort, -1, |
626 | | printValue}, |
627 | | {0x2608, "AFAreaWidths", N_("AF Area Widths"), N_("AF Area Widths"), IfdId::canonId, SectionId::makerTags, |
628 | | signedShort, -1, printValue}, |
629 | | {0x2609, "AFAreaHeights", N_("AF Area Heights"), N_("AF Area Heights"), IfdId::canonId, SectionId::makerTags, |
630 | | signedShort, -1, printValue}, |
631 | | {0x260a, "AFXPositions", N_("AF X Positions"), N_("AF X Positions"), IfdId::canonId, SectionId::makerTags, |
632 | | signedShort, -1, printValue}, |
633 | | {0x260b, "AFYPositions", N_("AF Y Positions"), N_("AF Y Positions"), IfdId::canonId, SectionId::makerTags, |
634 | | signedShort, -1, printValue}, |
635 | | {0x260c, "AFPointsInFocus", N_("AF Points in Focus"), N_("AF Points in Focus"), IfdId::canonId, |
636 | | SectionId::makerTags, signedShort, -1, printBitmask}, |
637 | | {0x260d, "AFPointsSelected", N_("AF Points Selected"), N_("AF Points Selected"), IfdId::canonId, |
638 | | SectionId::makerTags, signedShort, -1, printBitmask}, |
639 | | {0x260e, "AFPointsUnusable", N_("AF Points Unusable"), N_("AF Points Unusable"), IfdId::canonId, |
640 | | SectionId::makerTags, signedShort, -1, printBitmask}, |
641 | | {0x260f, "0x260f", "0x260f", N_("0x260f"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
642 | | {0x2610, "0x2610", "0x2610", N_("0x2610"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
643 | | {0x2611, "AFFineRotation", N_("AF Fine Rotation"), |
644 | | N_("Mathematically positive (i.e. anti-clockwise) rotation of every AF rectangle in centidegrees"), IfdId::canonId, |
645 | | SectionId::makerTags, unsignedShort, -1, printValue}, |
646 | | {0x4001, "ColorData", N_("Color Data"), N_("Color data"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
647 | | printValue}, |
648 | | {0x4002, "CRWParam", N_("CRWParam"), N_("CRWParam"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
649 | | printValue}, |
650 | | {0x4003, "ColorInfo", N_("ColorInfo"), N_("ColorInfo"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
651 | | printValue}, |
652 | | {0x4005, "Flavor", N_("Flavor"), N_("Flavor"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
653 | | {0x4008, "PictureStyleUserDef", N_("PictureStyleUserDef"), N_("PictureStyleUserDef"), IfdId::canonId, |
654 | | SectionId::makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonPictureStyle)}, |
655 | | // {0x4009, "PictureStylePC", N_("PictureStylePC"), N_("PictureStylePC"), IfdId::canonId, SectionId::makerTags, |
656 | | // unsignedShort, -1, EXV_PRINT_TAG(canonPictureStyle)}, |
657 | | {0x4010, "CustomPictureStyleFileName", N_("CustomPictureStyleFileName"), N_("CustomPictureStyleFileName"), |
658 | | IfdId::canonId, SectionId::makerTags, unsignedShort, -1, printValue}, |
659 | | {0x4013, "AFMicroAdj", N_("AFMicroAdj"), N_("AFMicroAdj"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
660 | | printValue}, |
661 | | {0x4015, "VignettingCorr", N_("VignettingCorr"), N_("VignettingCorr"), IfdId::canonId, SectionId::makerTags, |
662 | | unsignedShort, -1, printValue}, |
663 | | {0x4016, "VignettingCorr2", N_("VignettingCorr2"), N_("VignettingCorr2"), IfdId::canonId, SectionId::makerTags, |
664 | | unsignedShort, -1, printValue}, |
665 | | {0x4018, "LightingOpt", N_("LightingOpt"), N_("LightingOpt"), IfdId::canonId, SectionId::makerTags, unsignedShort, |
666 | | -1, printValue}, |
667 | | {0x4019, "LensInfo", N_("LensInfo"), N_("LensInfo"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
668 | | printValue}, |
669 | | {0x4020, "AmbienceInfo", N_("AmbienceInfo"), N_("AmbienceInfo"), IfdId::canonId, SectionId::makerTags, |
670 | | unsignedShort, -1, printValue}, |
671 | | {0x4021, "MultiExp", N_("MultiExp"), N_("MultiExp"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
672 | | printValue}, |
673 | | {0x4024, "FilterInfo", N_("FilterInfo"), N_("FilterInfo"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
674 | | printValue}, |
675 | | {0x4025, "HDRInfo", N_("HDRInfo"), N_("HDRInfo"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
676 | | printValue}, |
677 | | {0x4028, "AFConfig", N_("AFConfig"), N_("AFConfig"), IfdId::canonId, SectionId::makerTags, unsignedShort, -1, |
678 | | printValue}, |
679 | | {0x403f, "RawBurstModeRoll", N_("RawBurstModeRoll"), N_("RawBurstModeRoll"), IfdId::canonId, SectionId::makerTags, |
680 | | unsignedShort, -1, printValue}, |
681 | | // End of list marker |
682 | | {0xffff, "(UnknownCanonMakerNoteTag)", "(UnknownCanonMakerNoteTag)", N_("Unknown CanonMakerNote tag"), |
683 | | IfdId::canonId, SectionId::makerTags, asciiString, -1, printValue}, |
684 | | }; |
685 | | |
686 | | // Canon Movie Info Tag |
687 | | constexpr TagInfo CanonMakerNote::tagInfoMv_[] = { |
688 | | {0x0001, "FrameRate", N_("FrameRate"), N_("FrameRate"), IfdId::canonMvId, SectionId::makerTags, unsignedShort, -1, |
689 | | printValue}, |
690 | | {0x0002, "FrameCount", N_("FrameCount"), N_("FrameCount"), IfdId::canonMvId, SectionId::makerTags, unsignedShort, |
691 | | -1, printValue}, |
692 | | {0x0004, "FrameCount", N_("FrameCount"), N_("FrameCount"), IfdId::canonMvId, SectionId::makerTags, unsignedLong, -1, |
693 | | printValue}, |
694 | | {0x0006, "FrameRate", N_("FrameCount"), N_("FrameCount"), IfdId::canonMvId, SectionId::makerTags, unsignedRational, |
695 | | -1, printValue}, |
696 | | {0x006a, "Duration", N_("Duration"), N_("Duration"), IfdId::canonMvId, SectionId::makerTags, unsignedLong, -1, |
697 | | printValue}, |
698 | | {0x006c, "AudioBitrate", N_("Audio Bitrate"), N_("Audio Bitrate"), IfdId::canonMvId, SectionId::makerTags, |
699 | | unsignedLong, -1, printValue}, |
700 | | {0x006e, "AudioSampleRate", N_("Audio Sample Rate"), N_("Audio Sample Rate"), IfdId::canonMvId, |
701 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
702 | | {0x0070, "AudioChannels", N_("Audio Channels"), N_("Audio Channels"), IfdId::canonMvId, SectionId::makerTags, |
703 | | unsignedLong, -1, printValue}, |
704 | | {0x0074, "VideoCodec", N_("Video Codec"), N_("Video Codec"), IfdId::canonMvId, SectionId::makerTags, asciiString, |
705 | | -1, printValue}, |
706 | | }; |
707 | | |
708 | | // MyColors, tag 0x001d |
709 | | constexpr TagDetails canonMyColors[] = { |
710 | | {0, N_("Off")}, {1, N_("Positive Film")}, {2, N_("Light Skin Tone")}, {3, N_("Dark Skin Tone")}, |
711 | | {4, N_("Vivid Blue")}, {5, N_("Vivid Green")}, {6, N_("Vivid Red")}, {7, N_("Color Accent")}, |
712 | | {8, N_("Color Swap")}, {9, N_("Custom")}, {12, N_("Vivid")}, {13, N_("Neutral")}, |
713 | | {14, N_("Sepia")}, {15, N_("B&W")}, |
714 | | }; |
715 | | |
716 | | // Canon My Colors Info Tag |
717 | | constexpr TagInfo CanonMakerNote::tagInfoMc_[] = { |
718 | | {0x0002, "MyColorMode", N_("My Color Mode"), N_("My Color Mode"), IfdId::canonMyColorID, SectionId::makerTags, |
719 | | unsignedShort, -1, EXV_PRINT_TAG(canonMyColors)}, |
720 | | }; |
721 | | |
722 | | // Canon FaceDetect 1 Info Tag |
723 | | constexpr TagInfo CanonMakerNote::tagInfoFcd1_[] = { |
724 | | {0x0002, "FacesDetected", N_("Faces Detected"), N_("Faces Detected"), IfdId::canonFcd1Id, SectionId::makerTags, |
725 | | unsignedShort, -1, printValue}, |
726 | | {0x0003, "FacesDetectedFrameSize", N_("Faces Detected Frame Size"), N_("Faces Detected Frame Size"), |
727 | | IfdId::canonFcd1Id, SectionId::makerTags, unsignedShort, -1, printValue}, |
728 | | {0x0008, "Face1Position", N_("Face 1 Position"), N_("Face 1 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
729 | | signedShort, -1, printValue}, |
730 | | {0x000a, "Face2Position", N_("Face 2 Position"), N_("Face 2 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
731 | | signedShort, -1, printValue}, |
732 | | {0x000c, "Face3Position", N_("Face 3 Position"), N_("Face 3 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
733 | | signedShort, -1, printValue}, |
734 | | {0x000e, "Face4Position", N_("Face 4 Position"), N_("Face 4 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
735 | | signedShort, -1, printValue}, |
736 | | {0x0010, "Face5Position", N_("Face 5 Position"), N_("Face 5 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
737 | | signedShort, -1, printValue}, |
738 | | {0x0012, "Face6Position", N_("Face 6 Position"), N_("Face 6 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
739 | | signedShort, -1, printValue}, |
740 | | {0x0014, "Face7Position", N_("Face 7 Position"), N_("Face 7 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
741 | | signedShort, -1, printValue}, |
742 | | {0x0016, "Face8Position", N_("Face 8 Position"), N_("Face 8 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
743 | | signedShort, -1, printValue}, |
744 | | {0x0018, "Face9Position", N_("Face 9 Position"), N_("Face 9 Position"), IfdId::canonFcd1Id, SectionId::makerTags, |
745 | | signedShort, -1, printValue}, |
746 | | }; |
747 | | |
748 | | // Canon FaceDetect 2 Info Tag |
749 | | constexpr TagInfo CanonMakerNote::tagInfoFcd2_[] = { |
750 | | {0x0001, "FaceWidth", N_("Face Width"), N_("Faces Width"), IfdId::canonFcd2Id, SectionId::makerTags, unsignedByte, |
751 | | -1, printValue}, |
752 | | {0x0002, "FacesDetected", N_("Faces Detected"), N_("Faces Detected"), IfdId::canonFcd2Id, SectionId::makerTags, |
753 | | unsignedByte, -1, printValue}, |
754 | | }; |
755 | | |
756 | | // Canon ContrastInfo, tag 0x001d |
757 | | constexpr TagDetails canonContrastInfo[] = { |
758 | | {0x0, N_("Off")}, |
759 | | {0x8, N_("On")}, |
760 | | {0xfff, N_("n/a")}, |
761 | | }; |
762 | | |
763 | | // Canon Contrast Info Tag |
764 | | constexpr TagInfo CanonMakerNote::tagInfoCo_[] = { |
765 | | {0x0004, "IntelligentContrast", N_("Intelligent Contrast"), N_("Intelligent Contrast"), IfdId::canonContrastId, |
766 | | SectionId::makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonContrastInfo)}, |
767 | | }; |
768 | | |
769 | | // Canon WhiteBalance Info Tag |
770 | | constexpr TagInfo CanonMakerNote::tagInfoWbi_[] = { |
771 | | {0x0002, "WB_GRGBLevelsAuto", N_("WB_G RGB Levels Auto"), N_("WB_G RGB Levels Auto"), IfdId::canonWbId, |
772 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
773 | | {0x000a, "WB_GRGBLevelsDaylight", N_("WB_G RGB Levels Daylight"), N_("WB_G RGB Levels Daylight"), IfdId::canonWbId, |
774 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
775 | | {0x0012, "WB_GRGBLevelsCloudy", N_("WB_G RGB Levels Cloudy"), N_("WB_G RGB Levels Cloudy"), IfdId::canonWbId, |
776 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
777 | | {0x001a, "WB_GRGBLevelsTungsten", N_("WB_G RGB Levels Tungsten"), N_("WB_G RGB Levels Tungsten"), IfdId::canonWbId, |
778 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
779 | | {0x0022, "WB_GRGBLevelsFluorescent", N_("WB_G RGB Levels Fluorescent"), N_("WB_G RGB Levels Fluorescent"), |
780 | | IfdId::canonWbId, SectionId::makerTags, unsignedLong, -1, printValue}, |
781 | | {0x002a, "WB_GRGBLevelsFluorHigh", N_("WB_G RGB Levels Fluorescent High"), N_("WB_G RGB Levels Fluorescent High"), |
782 | | IfdId::canonWbId, SectionId::makerTags, unsignedLong, -1, printValue}, |
783 | | {0x0032, "WB_GRGBLevelsFlash", N_("WB_G RGB Levels Flash"), N_("WB_G RGB Levels Flash"), IfdId::canonWbId, |
784 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
785 | | {0x003a, "WB_GRGBLevelsUnderwater", N_("WB_G RGB Levels Underwater"), N_("WB_G RGB Levels Underwater"), |
786 | | IfdId::canonWbId, SectionId::makerTags, unsignedLong, -1, printValue}, |
787 | | {0x0042, "WB_GRGBLevelsCustom1", N_("WB_G RGB Levels Custom 1"), N_("WB_G RGB Levels Custom 1"), IfdId::canonWbId, |
788 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
789 | | {0x004a, "WB_GRGBLevelsCustom2", N_("WB_G RGB Levels Custom 2"), N_("WB_G RGB Levels Custom 2"), IfdId::canonWbId, |
790 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
791 | | }; |
792 | | |
793 | | // Canon FaceDetect 3 Info Tag |
794 | | constexpr TagInfo CanonMakerNote::tagInfoFcd3_[] = { |
795 | | {0x0003, "FacesDetected", N_("Face Detected"), N_("Faces Detected"), IfdId::canonFcd3Id, SectionId::makerTags, |
796 | | unsignedShort, -1, printValue}, |
797 | | }; |
798 | | |
799 | | /* |
800 | | // Canon Aspect Info, tag 0x001d |
801 | | constexpr TagDetails canonAspectInfo[] = { |
802 | | { 0, N_("3:2") }, |
803 | | { 1, N_("1:1") }, |
804 | | { 2, N_("4:3") }, |
805 | | { 7, N_("16:9") }, |
806 | | { 8, N_("4:5") }, |
807 | | { 12, N_("3:2 (APS-H crop)") }, |
808 | | { 13, N_("3:2 (APS-C crop)") } |
809 | | }; |
810 | | */ |
811 | | |
812 | | // Canon Aspect Info Tag |
813 | | constexpr TagInfo CanonMakerNote::tagInfoAs_[] = { |
814 | | {0x0000, "AspectRatio", N_("Aspect Ratio"), N_("Aspect Ratio"), IfdId::canonAsId, SectionId::makerTags, |
815 | | unsignedLong, -1, printValue}, |
816 | | {0x0001, "CroppedImageWidth", N_("Cropped Image Width"), N_("Cropped Image Width"), IfdId::canonAsId, |
817 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
818 | | {0x0002, "CroppedImageHeight", N_("Cropped Image Height"), N_("Cropped Image Height"), IfdId::canonAsId, |
819 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
820 | | {0x0003, "CroppedImageLeft", N_("Cropped Image Left"), N_("Cropped Image Left"), IfdId::canonAsId, |
821 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
822 | | {0x0004, "CroppedImageTop", N_("Cropped Image Top"), N_("Cropped Image Top"), IfdId::canonAsId, |
823 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
824 | | }; |
825 | | |
826 | | // Canon Color Balance Info Tag |
827 | | constexpr TagInfo CanonMakerNote::tagInfoCbi_[] = { |
828 | | {0x0001, "WB_RGGBLevelsAuto", N_("WB_RGGB Levels Auto"), N_("WB_RGGB Levels Auto"), IfdId::canonCbId, |
829 | | SectionId::makerTags, signedShort, -1, printValue}, |
830 | | {0x0005, "WB_RGGBLevelsDaylight", N_("WB_RGGB Levels Daylight"), N_("WB_RGGB Levels Daylight"), IfdId::canonCbId, |
831 | | SectionId::makerTags, signedShort, -1, printValue}, |
832 | | {0x000d, "WB_RGGBLevelsShade", N_("WB_RGGB Levels Shade"), N_("WB_RGGB Levels Shade"), IfdId::canonCbId, |
833 | | SectionId::makerTags, signedShort, -1, printValue}, |
834 | | {0x001a, "WB_RGGBLevelsCloudy", N_("WB_RGGB Levels Cloudy"), N_("WB_RGGB Levels Cloudy"), IfdId::canonCbId, |
835 | | SectionId::makerTags, signedShort, -1, printValue}, |
836 | | {0x0011, "WB_RGGBLevelsTungsten", N_("WB_RGGB Levels Tungsten"), N_("WB_RGGB Levels Tungsten"), IfdId::canonCbId, |
837 | | SectionId::makerTags, signedShort, -1, printValue}, |
838 | | {0x0015, "WB_RGGBLevelsFluorescent", N_("WB_RGGB Levels Fluorescent"), N_("WB_RGGB Levels Fluorescent"), |
839 | | IfdId::canonCbId, SectionId::makerTags, signedShort, -1, printValue}, |
840 | | {0x0032, "WB_RGGBLevelsFlash", N_("WB_RGGB Levels Flash"), N_("WB_RGGB Levels Flash"), IfdId::canonCbId, |
841 | | SectionId::makerTags, signedShort, -1, printValue}, |
842 | | {0x001d, "WB_RGGBLevelsCustomBlackLevels", N_("WB_RGGB Levels Custom Black Levels"), |
843 | | N_("WB_RGGB Levels Custom Black Levels"), IfdId::canonCbId, SectionId::makerTags, signedShort, -1, printValue}, |
844 | | {0x0021, "WB_RGGBLevelsKelvin", N_("WB_RGGB Levels Kelvin"), N_("WB_RGGB Levels Kelvin"), IfdId::canonCbId, |
845 | | SectionId::makerTags, signedShort, -1, printValue}, |
846 | | {0x0025, "WB_RGGBBlackLevels", N_("WB_RGGB Black Levels"), N_("WB_RGGB Black Levels"), IfdId::canonCbId, |
847 | | SectionId::makerTags, signedShort, -1, printValue}, |
848 | | }; |
849 | | |
850 | | // Canon Flags Tag |
851 | | constexpr TagInfo CanonMakerNote::tagInfoFl_[] = { |
852 | | {0x0001, "ModifiedParamFlag", N_("Modified Param Flag"), N_("Modified Param Flag"), IfdId::canonFlId, |
853 | | SectionId::makerTags, signedShort, -1, printValue}, |
854 | | }; |
855 | | |
856 | | // Canon Modified ToneCurve Info, tag 0x0001 |
857 | | constexpr TagDetails canonModifiedToneCurve[] = { |
858 | | {0, N_("Standard")}, |
859 | | {1, N_("Manual")}, |
860 | | {2, N_("Custom")}, |
861 | | }; |
862 | | |
863 | | // Canon Modified Sharpness Freq Info, tag 0x0002 |
864 | | constexpr TagDetails canonModifiedSharpnessFreq[] = { |
865 | | {0, N_("n/a")}, {1, N_("Lowest")}, {2, N_("Low")}, {3, N_("Standard")}, {4, N_("High")}, {5, N_("Highest")}, |
866 | | }; |
867 | | |
868 | | // Canon ModifiedInfo Tag |
869 | | constexpr TagInfo CanonMakerNote::tagInfoMo_[] = { |
870 | | {0x0001, "ModifiedToneCurve", N_("Modified ToneCurve"), N_("Modified ToneCurve"), IfdId::canonMoID, |
871 | | SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonModifiedToneCurve)}, |
872 | | {0x0002, "ModifiedSharpness", N_("Modified Sharpness"), N_("Modified Sharpness"), IfdId::canonMoID, |
873 | | SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonModifiedSharpnessFreq)}, |
874 | | {0x0003, "ModifiedSharpnessFreq", N_("Modified Sharpness Freq"), N_("Modified Sharpness Freq"), IfdId::canonMoID, |
875 | | SectionId::makerTags, signedShort, -1, printValue}, |
876 | | {0x0004, "ModifiedSensorRedLevel", N_("Modified Sensor Red Level"), N_("Modified Sensor Red Level"), |
877 | | IfdId::canonMoID, SectionId::makerTags, signedShort, -1, printValue}, |
878 | | {0x0005, "ModifiedSensorBlueLevel", N_("Modified Sensor Blue Level"), N_("Modified Sensor Blue Level"), |
879 | | IfdId::canonMoID, SectionId::makerTags, signedShort, -1, printValue}, |
880 | | {0x0006, "ModifiedWhiteBalanceRed", N_("Modified White Balance Red"), N_("Modified White Balance Red"), |
881 | | IfdId::canonMoID, SectionId::makerTags, signedShort, -1, printValue}, |
882 | | {0x0007, "ModifiedWhiteBalanceBlue", N_("Modified White Balance Blue"), N_("Modified White Balance Blue"), |
883 | | IfdId::canonMoID, SectionId::makerTags, signedShort, -1, printValue}, |
884 | | {0x0008, "ModifiedWhiteBalance", N_("Modified White Balance"), N_("Modified White Balance"), IfdId::canonMoID, |
885 | | SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonSiWhiteBalance)}, |
886 | | {0x0009, "ModifiedColorTemp", N_("Modified Color Temp"), N_("Modified Color Temp"), IfdId::canonMoID, |
887 | | SectionId::makerTags, signedShort, -1, printValue}, |
888 | | {0x000a, "ModifiedPictureStyle", N_("Modified Picture Style"), N_("Modified Picture Style"), IfdId::canonMoID, |
889 | | SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonPictureStyle)}, |
890 | | {0x000b, "ModifiedDigitalGain", N_("Modified Param Flag"), N_("Modified Param Flag"), IfdId::canonMoID, |
891 | | SectionId::makerTags, signedShort, -1, printValue}, |
892 | | }; |
893 | | |
894 | | // Canon Preview Quality Info, tag 0x0001 |
895 | | constexpr TagDetails canonPreviewQuality[] = { |
896 | | {-1, N_("n/a")}, {1, N_("Economy")}, {2, N_("Normal")}, {3, N_("Fine")}, {4, N_("RAW")}, |
897 | | {5, N_("Superfine")}, {7, N_("CRAW")}, {130, N_("Normal Movie")}, {131, N_("Movie (2)")}, |
898 | | }; |
899 | | |
900 | | // Canon Preview Image Info Tag |
901 | | constexpr TagInfo CanonMakerNote::tagInfoPreI_[] = { |
902 | | {0x0001, "PreviewQuality", N_("Preview Quality"), N_("Preview Quality"), IfdId::canonPreID, SectionId::makerTags, |
903 | | unsignedLong, -1, EXV_PRINT_TAG(canonPreviewQuality)}, |
904 | | {0x0002, "PreviewImageLength", N_("Preview Image Length"), N_("Preview Image Length"), IfdId::canonPreID, |
905 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
906 | | {0x0003, "PreviewImageWidth", N_("Preview Image Width"), N_("Preview Image Width"), IfdId::canonPreID, |
907 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
908 | | {0x0004, "PreviewImageHeight", N_("Preview Image Height"), N_("Preview Image Height"), IfdId::canonPreID, |
909 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
910 | | {0x0005, "PreviewImageStart", N_("Preview Image Start"), N_("Preview Image Start"), IfdId::canonPreID, |
911 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
912 | | }; |
913 | | |
914 | | // Canon Color Info Tag |
915 | | constexpr TagInfo CanonMakerNote::tagInfoCi_[] = { |
916 | | {0x0001, "Saturation", N_("Saturation"), N_("Saturation"), IfdId::canonCiId, SectionId::makerTags, signedShort, -1, |
917 | | printValue}, |
918 | | {0x0002, "ColorTone", N_("Color Tone"), N_("Color Tone"), IfdId::canonCiId, SectionId::makerTags, signedShort, -1, |
919 | | printValue}, |
920 | | {0x0003, "ColorSpace", N_("Color Space"), N_("Color Space"), IfdId::canonCiId, SectionId::makerTags, signedShort, |
921 | | -1, EXV_PRINT_TAG(canonColorSpace)}, |
922 | | }; |
923 | | |
924 | | // Canon AFMicroAdjMode Quality Info, tag 0x0001 |
925 | | constexpr TagDetails canonAFMicroAdjMode[] = { |
926 | | {0, N_("Disable")}, |
927 | | {1, N_("Adjust all by the same amount")}, |
928 | | {2, N_("Adjust by lens")}, |
929 | | }; |
930 | | |
931 | | // Canon AFMicroAdj Info Tag |
932 | | constexpr TagInfo CanonMakerNote::tagInfoAfMiAdj_[] = { |
933 | | {0x0001, "AFMicroAdjMode", N_("AFMicroAdjMode"), N_("AFMicroAdjMode"), IfdId::canonAfMiAdjId, SectionId::makerTags, |
934 | | signedLong, -1, EXV_PRINT_TAG(canonAFMicroAdjMode)}, |
935 | | {0x0002, "AFMicroAdjValue", N_("AF Micro Adj Value"), N_("AF Micro Adj Value"), IfdId::canonAfMiAdjId, |
936 | | SectionId::makerTags, signedRational, -1, printValue}, |
937 | | {0xffff, "(UnknownCanonAFMicroAdjTag)", "(UnknownCanonAFMicroAdjTag)", N_("Unknown Canon AFMicroAdj tag"), |
938 | | IfdId::canonAfMiAdjId, SectionId::makerTags, signedShort, 1, printValue}, |
939 | | }; |
940 | | |
941 | | // Canon VignettingCorr Tag |
942 | | constexpr TagInfo CanonMakerNote::tagInfoVigCor_[] = { |
943 | | {0x0000, "VignettingCorrVersion", N_("Vignetting Corr Version"), N_("Vignetting Corr Version"), |
944 | | IfdId::canonVigCorId, SectionId::makerTags, unsignedShort, -1, printValue}, |
945 | | {0x0002, "PeripheralLighting", N_("Peripheral Lighting"), N_("Peripheral Lighting"), IfdId::canonVigCorId, |
946 | | SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)}, |
947 | | {0x0003, "DistortionCorrection", N_("Distortion Correction"), N_("Distortion Correction"), IfdId::canonVigCorId, |
948 | | SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)}, |
949 | | {0x0004, "ChromaticAberrationCorr", N_("Chromatic Aberration Corr"), N_("Chromatic Aberration Corr"), |
950 | | IfdId::canonVigCorId, SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)}, |
951 | | {0x0005, "ChromaticAberrationCorr", N_("Chromatic Aberration Corr"), N_("Chromatic Aberration Corr"), |
952 | | IfdId::canonVigCorId, SectionId::makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)}, |
953 | | {0x0006, "PeripheralLightingValue", N_("Peripheral Lighting Value"), N_("Peripheral Lighting Value"), |
954 | | IfdId::canonVigCorId, SectionId::makerTags, signedShort, -1, printValue}, |
955 | | {0x0009, "DistortionCorrectionValue", N_("Distortion Correction Value"), N_("Distortion Correction Value"), |
956 | | IfdId::canonVigCorId, SectionId::makerTags, signedShort, -1, printValue}, |
957 | | {0x000b, "OriginalImageWidth", N_("Original Image Width"), N_("Original Image Width"), IfdId::canonVigCorId, |
958 | | SectionId::makerTags, signedShort, -1, printValue}, |
959 | | {0x000c, "OriginalImageHeight", N_("Original Image Height"), N_("Original Image Height"), IfdId::canonVigCorId, |
960 | | SectionId::makerTags, signedShort, -1, printValue}, |
961 | | }; |
962 | | |
963 | | // Canon VignettingCorr2 Tag |
964 | | constexpr TagInfo CanonMakerNote::tagInfoVigCor2_[] = { |
965 | | {0x0005, "PeripheralLightingSetting", N_("Peripheral Lighting Setting"), N_("Peripheral Lighting Setting"), |
966 | | IfdId::canonVigCor2Id, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)}, |
967 | | {0x0006, "ChromaticAberrationSetting", N_("Chromatic Aberration Setting"), N_("Chromatic Aberration Setting"), |
968 | | IfdId::canonVigCor2Id, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)}, |
969 | | {0x0007, "DistortionCorrectionSetting", N_("Distortion Correction Setting"), N_("Distortion Correction Setting"), |
970 | | IfdId::canonVigCor2Id, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)}, |
971 | | {0xffff, "(UnknownVignettingCorr2Tag)", "(UnknownVignettingCorr2Tag)", N_("UnknownVignettingCorr2Tag Tag"), |
972 | | IfdId::canonVigCor2Id, SectionId::makerTags, signedLong, 1, printValue} // important to add end of tag |
973 | | }; |
974 | | |
975 | | // Canon AutoLightingOptimizer, tag 0x0002 |
976 | | constexpr TagDetails canonAutoLightingOptimizer[] = { |
977 | | {0, N_("Standard")}, |
978 | | {1, N_("Low")}, |
979 | | {2, N_("Strong")}, |
980 | | {3, N_("Off")}, |
981 | | }; |
982 | | |
983 | | // Canon HighISONoiseReduction, tag 0x0004 |
984 | | constexpr TagDetails canonLongExposureNoiseReduction[] = { |
985 | | {0, N_("Off")}, |
986 | | {1, N_("Auto")}, |
987 | | {2, N_("On")}, |
988 | | }; |
989 | | |
990 | | // Canon HighISONoiseReduction, tag 0x0005 |
991 | | constexpr TagDetails canonHighISONoiseReduction[] = { |
992 | | {0, N_("Standard")}, |
993 | | {1, N_("Low")}, |
994 | | {2, N_("Strong")}, |
995 | | {3, N_("Off")}, |
996 | | }; |
997 | | |
998 | | // Canon DigitalLensOptimizer, tag 0x000a |
999 | | constexpr TagDetails canonDigitalLensOptimizer[] = { |
1000 | | {0, N_("Off")}, |
1001 | | {1, N_("Standard")}, |
1002 | | {2, N_("High")}, |
1003 | | }; |
1004 | | |
1005 | | // Canon DualPixelRaw, tag 0x000b |
1006 | | constexpr TagDetails canonDualPixelRaw[] = { |
1007 | | {0, N_("Off")}, |
1008 | | {1, N_("On")}, |
1009 | | }; |
1010 | | |
1011 | | // Canon LightingOpt Tag |
1012 | | constexpr TagInfo CanonMakerNote::tagInfoLiOp_[] = { |
1013 | | {0x0001, "PeripheralIlluminationCorr", N_("Peripheral Lighting Setting"), N_("Peripheral Lighting Setting"), |
1014 | | IfdId::canonLiOpId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)}, |
1015 | | {0x0002, "AutoLightingOptimizer", N_("Auto Lighting Optimizer"), N_("Auto Lighting Optimizer"), IfdId::canonLiOpId, |
1016 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAutoLightingOptimizer)}, |
1017 | | {0x0003, "HighlightTonePriority", N_("Highlight Tone Priority"), N_("Highlight Tone Priority"), IfdId::canonLiOpId, |
1018 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)}, |
1019 | | {0x0004, "LongExposureNoiseReduction", N_("Long Exposure Noise Reduction"), N_("Long Exposure Noise Reduction"), |
1020 | | IfdId::canonLiOpId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonLongExposureNoiseReduction)}, |
1021 | | {0x0005, "HighISONoiseReduction", N_("High ISO Noise Reduction"), N_("High ISO Noise Reduction"), |
1022 | | IfdId::canonLiOpId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonHighISONoiseReduction)}, |
1023 | | {0x000a, "DigitalLensOptimizer", N_("Digital Lens Optimizer"), N_("Digital Lens Optimizer"), IfdId::canonLiOpId, |
1024 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonDigitalLensOptimizer)}, |
1025 | | {0x000b, "DualPixelRaw", N_("Dual Pixel Raw"), N_("Dual Pixel Raw"), IfdId::canonLiOpId, SectionId::makerTags, |
1026 | | signedLong, -1, EXV_PRINT_TAG(canonDualPixelRaw)}, |
1027 | | {0xffff, "(UnknownLightingOptimizationTag)", "(UnknownLightingOptimizationTag)", |
1028 | | N_("UnknownLightingOptimizationTag Selection Tag"), IfdId::canonLiOpId, SectionId::makerTags, signedLong, 1, |
1029 | | printValue} // important to add end of tag |
1030 | | }; |
1031 | | |
1032 | | // Canon LensInfo Tag |
1033 | | constexpr TagInfo CanonMakerNote::tagInfoLe_[] = { |
1034 | | {0x0000, "LensSerialNumber", N_("Lens Serial Number"), |
1035 | | N_("Lens Serial Number. Convert each byte to hexadecimal to get two " |
1036 | | "digits of the lens serial number."), |
1037 | | IfdId::canonLeId, SectionId::makerTags, unsignedByte, -1, printLe0x0000}, |
1038 | | {0xffff, "(UnknownCanonLensInfoTag)", "(UnknownCanonLensInfoTag)", N_("UnknownCanonLensInfoTag"), IfdId::canonLeId, |
1039 | | SectionId::makerTags, undefined, 1, printValue} // important to add end of tag |
1040 | | }; |
1041 | | |
1042 | | // Canon AmbienceSelection, tag 0x0001 |
1043 | | constexpr TagDetails canonAmbienceSelection[] = { |
1044 | | {0, N_("Standard")}, {1, N_("Vivid")}, {2, N_("Warm")}, {3, N_("Soft")}, {4, N_("Cool")}, |
1045 | | {5, N_("Intense")}, {6, N_("Brighter")}, {7, N_("Darker")}, {8, N_("Monochrome")}, |
1046 | | }; |
1047 | | |
1048 | | // Canon Ambience Tag |
1049 | | constexpr TagInfo CanonMakerNote::tagInfoAm_[] = { |
1050 | | {0x0001, "AmbienceSelection", N_("Ambience Selection"), N_("Ambience Selection"), IfdId::canonAmId, |
1051 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAmbienceSelection)}, |
1052 | | {0xffff, "(AmbienceSelectionTag)", "(AmbienceSelectionTag)", N_("UAmbience Selection Tag"), IfdId::canonAmId, |
1053 | | SectionId::makerTags, signedLong, 1, printValue} // important to add end of tag |
1054 | | }; |
1055 | | |
1056 | | // Canon MultiExposure, tag 0x0001 |
1057 | | constexpr TagDetails canonMultiExposure[] = { |
1058 | | {0, N_("Off")}, |
1059 | | {1, N_("On")}, |
1060 | | {2, N_("On (RAW)")}, |
1061 | | }; |
1062 | | |
1063 | | // Canon MultiExposureControl, tag 0x0001 |
1064 | | constexpr TagDetails canonMultiExposureControl[] = { |
1065 | | {0, N_("Additive")}, |
1066 | | {1, N_("Average")}, |
1067 | | {2, N_("Bright (comparative)")}, |
1068 | | {3, N_("Dark (comparative)")}, |
1069 | | }; |
1070 | | |
1071 | | // Canon MultiExp Tag |
1072 | | constexpr TagInfo CanonMakerNote::tagInfoMe_[] = { |
1073 | | {0x0001, "MultiExposure", N_("Multi Exposure"), N_("Multi Exposure"), IfdId::canonMeId, SectionId::makerTags, |
1074 | | signedLong, -1, EXV_PRINT_TAG(canonMultiExposure)}, |
1075 | | {0x0002, "MultiExposureControl", N_("Multi Exposure Control"), N_("Multi Exposure Control"), IfdId::canonMeId, |
1076 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonMultiExposureControl)}, |
1077 | | {0x0003, "MultiExposureShots", N_("Multi Exposure Shots"), N_("Multi Exposure Shots"), IfdId::canonMeId, |
1078 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonMultiExposure)}, |
1079 | | {0xffff, "(UnknownMultiExposureTag)", "(UnknownMultiExposureTag)", N_("UnknownMultiExposureTag"), IfdId::canonMeId, |
1080 | | SectionId::makerTags, signedLong, 1, printValue} // important to add end of tag |
1081 | | }; |
1082 | | |
1083 | | // Canon FilterInfo, tag 0x0001 |
1084 | | constexpr TagDetails canonFilterInfo[] = { |
1085 | | {-1, N_("Off")}, |
1086 | | }; |
1087 | | |
1088 | | // Canon MiniatureFilterOrientation, tag 0x0001 |
1089 | | constexpr TagDetails canonMiniatureFilterOrientation[] = { |
1090 | | {0, N_("Horizontal")}, |
1091 | | {1, N_("Vertical")}, |
1092 | | }; |
1093 | | |
1094 | | // Canon Filter Info Tag |
1095 | | constexpr TagInfo CanonMakerNote::tagInfoFil_[] = { |
1096 | | {0x0101, "GrainyBWFilter", N_("Grainy BW Filter"), N_("Grainy BW Filter"), IfdId::canonFilId, SectionId::makerTags, |
1097 | | asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1098 | | {0x0201, "SoftFocusFilter", N_("Soft Focus Filter"), N_("Soft Focus Filter"), IfdId::canonFilId, |
1099 | | SectionId::makerTags, asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1100 | | {0x0301, "ToyCameraFilter", N_("Toy Camera Filter"), N_("Toy Camera Filter"), IfdId::canonFilId, |
1101 | | SectionId::makerTags, asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1102 | | {0x0401, "MiniatureFilter", N_("Miniature Filter"), N_("Miniature Filter"), IfdId::canonFilId, SectionId::makerTags, |
1103 | | asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1104 | | {0x0402, "MiniatureFilterOrientation", N_("Miniature Filter Orientation"), N_("Miniature Filter Orientation"), |
1105 | | IfdId::canonFilId, SectionId::makerTags, asciiString, -1, EXV_PRINT_TAG(canonMiniatureFilterOrientation)}, |
1106 | | {0x0403, "MiniatureFilterPosition", N_("Miniature Filter Position"), N_("Miniature Filter Position"), |
1107 | | IfdId::canonFilId, SectionId::makerTags, asciiString, -1, printValue}, |
1108 | | {0x0404, "MiniatureFilterParameter", N_("Miniature Filter Parameter"), N_("Miniature Filter Parameter"), |
1109 | | IfdId::canonFilId, SectionId::makerTags, asciiString, -1, printValue}, |
1110 | | {0x0501, "FisheyeFilter", N_("Fisheye Filter"), N_("Fisheye Filter"), IfdId::canonFilId, SectionId::makerTags, |
1111 | | asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1112 | | {0x0601, "PaintingFilter", N_("Painting Filter"), N_("Painting Filter"), IfdId::canonFilId, SectionId::makerTags, |
1113 | | asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1114 | | {0x0701, "WatercolorFilter", N_("Watercolor Filter"), N_("Watercolor Filter"), IfdId::canonFilId, |
1115 | | SectionId::makerTags, asciiString, -1, EXV_PRINT_TAG(canonFilterInfo)}, |
1116 | | {0xffff, "(UnknownFilterTag)", "(UnknownFilterTag)", N_("UnknownFilterTag"), IfdId::canonFilId, |
1117 | | SectionId::makerTags, signedLong, 1, printValue} // important to add end of tag |
1118 | | }; |
1119 | | |
1120 | | // Canon HDR, tag 0x0001 |
1121 | | constexpr TagDetails canonHdr[] = { |
1122 | | {0, N_("Off")}, |
1123 | | {1, N_("On")}, |
1124 | | {2, N_("On (RAW")}, |
1125 | | }; |
1126 | | |
1127 | | // Canon HDREffect, tag 0x0001 |
1128 | | constexpr TagDetails canonHdrEffect[] = { |
1129 | | {0, N_("Natural")}, {1, N_("Art (standard)")}, {2, N_("Art (vivid)")}, |
1130 | | {3, N_("Art (bold)")}, {4, N_("Art (embossed)")}, |
1131 | | }; |
1132 | | |
1133 | | // Canon HDR Info Tag |
1134 | | constexpr TagInfo CanonMakerNote::tagInfoHdr_[] = { |
1135 | | {0x0001, "HDR", N_("HDR"), N_("HDR"), IfdId::canonHdrId, SectionId::makerTags, signedLong, -1, |
1136 | | EXV_PRINT_TAG(canonHdr)}, |
1137 | | {0x0002, "HDREffect", N_("HDR Effect"), N_("HDR Effect"), IfdId::canonHdrId, SectionId::makerTags, signedLong, -1, |
1138 | | EXV_PRINT_TAG(canonHdrEffect)}, |
1139 | | {0xffff, "(UnknownHDRTag)", "(UnknownHDRTag)", N_("Unknown Canon HDR Tag"), IfdId::canonHdrId, SectionId::makerTags, |
1140 | | signedLong, 1, printValue}, |
1141 | | }; |
1142 | | |
1143 | | // Canon AIServoFirstImage, tag 0x0001 |
1144 | | constexpr TagDetails canonAIServoFirstImage[] = { |
1145 | | {0, N_("Equal Priority")}, |
1146 | | {1, N_("Release Priority")}, |
1147 | | {2, N_("Focus Priority")}, |
1148 | | }; |
1149 | | |
1150 | | // Canon AIServoSecondImage, tag 0x0001 |
1151 | | constexpr TagDetails canonAIServoSecondImage[] = { |
1152 | | {0, N_("Equal Priority")}, {1, N_("Release Priority")}, {2, N_("Focus Priority")}, |
1153 | | {3, N_("Release High Priority")}, {4, N_("Focus High Priority")}, |
1154 | | }; |
1155 | | |
1156 | | // Canon USMLensElectronicMF, tag 0x0001 |
1157 | | constexpr TagDetails canonUSMLensElectronicMF[] = { |
1158 | | {0, N_("Enable After AF")}, |
1159 | | {1, N_("Disable After AF")}, |
1160 | | {2, N_("Disable in AF Mode")}, |
1161 | | }; |
1162 | | |
1163 | | // Canon AFAssistBeam, tag 0x0001 |
1164 | | constexpr TagDetails canonAFAssistBeam[] = { |
1165 | | {0, N_("Enable")}, |
1166 | | {1, N_("Disable")}, |
1167 | | {2, N_("IR AF Assist Beam Mode")}, |
1168 | | }; |
1169 | | |
1170 | | // Canon OneShotAFRelease, tag 0x0001 |
1171 | | constexpr TagDetails canonOneShotAFRelease[] = { |
1172 | | {0, N_("Focus Priority")}, |
1173 | | {1, N_("Release Priority")}, |
1174 | | }; |
1175 | | |
1176 | | // Canon AutoAFPointSelEOSiTRAF, tag 0x0001 |
1177 | | constexpr TagDetails canonAutoAFPointSelEOSiTRAF[] = { |
1178 | | {0, N_("Enable")}, |
1179 | | {1, N_("Disable")}, |
1180 | | }; |
1181 | | |
1182 | | // Canon LensDriveWhenAFImpossible, tag 0x0001 |
1183 | | constexpr TagDetails canonLensDriveWhenAFImpossible[] = { |
1184 | | {0, N_("Continue Focus Search")}, |
1185 | | {1, N_("Stop Focus Search")}, |
1186 | | }; |
1187 | | |
1188 | | // Canon SelectAFAreaSelectionMode, tag 0x0001 |
1189 | | constexpr TagDetails canonSelectAFAreaSelectionMode[] = { |
1190 | | {0, N_("Single-Point-AF")}, {1, N_("Auto")}, |
1191 | | {2, N_("Zone AF")}, {3, N_("AF Point Expansion (4 point)")}, |
1192 | | {4, N_("Spot AF")}, {5, N_("AF Point Expansion (8 point)")}, |
1193 | | }; |
1194 | | |
1195 | | // Canon AFAreaSelectionMethod, tag 0x0001 |
1196 | | constexpr TagDetails canonAFAreaSelectionMethod[] = { |
1197 | | {0, N_("M-Fn Button")}, |
1198 | | {1, N_("Main Dial")}, |
1199 | | }; |
1200 | | |
1201 | | // Canon OrientationLinkedAF, tag 0x0001 |
1202 | | constexpr TagDetails canonOrientationLinkedAF[] = { |
1203 | | {0, N_("Same for Vert/Horiz Points")}, |
1204 | | {1, N_("Separate for Vert/Horiz Points")}, |
1205 | | {2, N_("Separate Area+Points")}, |
1206 | | }; |
1207 | | |
1208 | | // Canon ManualAFPointSelPattern, tag 0x0001 |
1209 | | constexpr TagDetails canonManualAFPointSelPattern[] = { |
1210 | | {0, N_("Stops at AF Area Edges")}, |
1211 | | {1, N_("Continuous")}, |
1212 | | }; |
1213 | | |
1214 | | // Canon AFPointDisplayDuringFocus, tag 0x0001 |
1215 | | constexpr TagDetails canonAFPointDisplayDuringFocus[] = { |
1216 | | {0, N_("Selected (constant)")}, {1, N_("All (constant)")}, {1, N_("Selected (pre-AF, focused)")}, |
1217 | | {1, N_("Selected (focused)")}, {1, N_("Disabled")}, |
1218 | | }; |
1219 | | |
1220 | | // Canon VFDisplayIllumination, tag 0x0001 |
1221 | | constexpr TagDetails canonAVFDisplayIllumination[] = { |
1222 | | {0, N_("Auto")}, |
1223 | | {1, N_("Enable")}, |
1224 | | {2, N_("Disable")}, |
1225 | | }; |
1226 | | |
1227 | | // Canon AFStatusViewfinder, tag 0x0001 |
1228 | | constexpr TagDetails canonAFStatusViewfinder[] = { |
1229 | | {0, N_("Auto")}, |
1230 | | {1, N_("Enable")}, |
1231 | | {2, N_("Disable")}, |
1232 | | }; |
1233 | | |
1234 | | // Canon InitialAFPointInServo, tag 0x0001 |
1235 | | constexpr TagDetails canonInitialAFPointInServo[] = { |
1236 | | {0, N_("Initial AF Point Selected")}, |
1237 | | {1, N_("Manual AF Point")}, |
1238 | | {2, N_("Auto")}, |
1239 | | }; |
1240 | | |
1241 | | // Canon AFConfig Tags |
1242 | | constexpr TagInfo CanonMakerNote::tagInfoAfC_[] = { |
1243 | | {0x0001, "AFConfigTool", N_("AF Config Tool"), N_("AF Config Tool"), IfdId::canonAfCId, SectionId::makerTags, |
1244 | | signedLong, -1, printValue}, |
1245 | | {0x0002, "AFTrackingSensitivity", N_("AF Tracking Sensitivity"), N_("AF Tracking Sensitivity"), IfdId::canonAfCId, |
1246 | | SectionId::makerTags, signedLong, -1, printValue}, |
1247 | | {0x0003, "AFAccelDecelTracking", N_("AF Accel Decel Tracking"), N_("AF Accel Decel Tracking"), IfdId::canonAfCId, |
1248 | | SectionId::makerTags, signedLong, -1, printValue}, |
1249 | | {0x0004, "AFPointSwitching", N_("AF Point Switching"), N_("AF Point Switching"), IfdId::canonAfCId, |
1250 | | SectionId::makerTags, signedLong, -1, printValue}, |
1251 | | {0x0005, "AIServoFirstImage", N_("AI Servo First Image"), N_("AI Servo First Image"), IfdId::canonAfCId, |
1252 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAIServoFirstImage)}, |
1253 | | {0x0006, "AIServoSecondImage", N_("AI Servo Second Image"), N_("AI Servo Second Image"), IfdId::canonAfCId, |
1254 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAIServoSecondImage)}, |
1255 | | {0x0007, "USMLensElectronicMF", N_("USM Lens Electronic MF"), N_("USM Lens Electronic MF"), IfdId::canonAfCId, |
1256 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonUSMLensElectronicMF)}, |
1257 | | {0x0008, "AFAssistBeam", N_("AF Assist Beam"), N_("AF Assist Beam"), IfdId::canonAfCId, SectionId::makerTags, |
1258 | | signedLong, -1, EXV_PRINT_TAG(canonAFAssistBeam)}, |
1259 | | {0x0009, "OneShotAFRelease", N_("One Shot AF Release"), N_("One Shot AF Release"), IfdId::canonAfCId, |
1260 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOneShotAFRelease)}, |
1261 | | {0x000a, "AutoAFPointSelEOSiTRAF", N_("Auto AF Point Sel EOS iTRAF"), N_("Auto AF Point Sel EOS iTRAF"), |
1262 | | IfdId::canonAfCId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAutoAFPointSelEOSiTRAF)}, |
1263 | | {0x000b, "LensDriveWhenAFImpossible", N_("Lens Drive When AF Impossible"), N_("Lens Drive When AF Impossible"), |
1264 | | IfdId::canonAfCId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonLensDriveWhenAFImpossible)}, |
1265 | | {0x000c, "SelectAFAreaSelectionMode", N_("Select AF Area Selection Mode"), N_("Select AF Area Selection Mode"), |
1266 | | IfdId::canonAfCId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonSelectAFAreaSelectionMode)}, |
1267 | | {0x000d, "AFAreaSelectionMethod", N_("AF Area Selection Method"), N_("AF Area Selection Method"), IfdId::canonAfCId, |
1268 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAFAreaSelectionMethod)}, |
1269 | | {0x000e, "OrientationLinkedAF", N_("Orientation Linked AF"), N_("Orientation Linked AF"), IfdId::canonAfCId, |
1270 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonOrientationLinkedAF)}, |
1271 | | {0x000f, "ManualAFPointSelPattern", N_("Manual AF Point Sel Pattern"), N_("Manual AF Point Sel Pattern"), |
1272 | | IfdId::canonAfCId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonManualAFPointSelPattern)}, |
1273 | | {0x0010, "AFPointDisplayDuringFocus", N_("AF Point Display During Focus"), N_("AF Point Display During Focus"), |
1274 | | IfdId::canonAfCId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAFPointDisplayDuringFocus)}, |
1275 | | {0x0011, "VFDisplayIllumination", N_("VF Display Illumination"), N_("VF Display Illumination"), IfdId::canonAfCId, |
1276 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAVFDisplayIllumination)}, |
1277 | | {0x0012, "AFStatusViewfinder", N_("AF Status Viewfinder"), N_("AF Status Viewfinder"), IfdId::canonAfCId, |
1278 | | SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonAFStatusViewfinder)}, |
1279 | | {0x0013, "InitialAFPointInServo", N_("Initial AF Point In Servo"), N_("Initial AF Point In Servo"), |
1280 | | IfdId::canonAfCId, SectionId::makerTags, signedLong, -1, EXV_PRINT_TAG(canonInitialAFPointInServo)}, |
1281 | | {0xffff, "(UnknownCanonAFTag)", "(UnknownCanonAFTag)", N_("UnknownCanonAFTag"), IfdId::canonAfCId, |
1282 | | SectionId::makerTags, signedLong, 1, printValue} // important to add end of tag |
1283 | | }; |
1284 | | |
1285 | | // Canon RawBurstInfo Info Tag |
1286 | | constexpr TagInfo CanonMakerNote::tagInfoRawB_[] = { |
1287 | | {0x0001, "RawBurstImageNum", N_("Raw Burst Image Num"), N_("Raw Burst Image Num"), IfdId::canonRawBId, |
1288 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
1289 | | {0x0002, "RawBurstImageCount", N_("Raw Burst Image Count"), N_("Raw Burst Image Count"), IfdId::canonRawBId, |
1290 | | SectionId::makerTags, unsignedLong, -1, printValue}, |
1291 | | {0xffff, "(UnknownRawBurstTag)", "(UnknownRawBurstTag)", N_("UnknownRawBurstTag"), IfdId::canonRawBId, |
1292 | | SectionId::makerTags, signedLong, 1, printValue} // important to add end of tag |
1293 | | }; |
1294 | | |
1295 | | //! Macro, tag 0x0001 |
1296 | | constexpr TagDetails canonCsMacro[] = { |
1297 | | {1, N_("On")}, |
1298 | | {2, N_("Off")}, |
1299 | | }; |
1300 | | |
1301 | | //! Quality, tag 0x0003 |
1302 | | constexpr TagDetails canonCsQuality[] = { |
1303 | | {-1, N_("n/a")}, {0, N_("unknown")}, {1, N_("Economy")}, {2, N_("Normal")}, {3, N_("Fine")}, |
1304 | | {4, N_("RAW")}, {5, N_("Superfine")}, {7, N_("CRAW")}, {130, N_("Normal Movie")}, {131, N_("Movie (2)")}, |
1305 | | }; |
1306 | | |
1307 | | //! FlashMode, tag 0x0004 |
1308 | | constexpr TagDetails canonCsFlashMode[] = { |
1309 | | {0, N_("Off")}, {1, N_("Auto")}, {2, N_("On")}, {3, N_("Red-eye")}, |
1310 | | {4, N_("Slow sync")}, {5, N_("Auto + red-eye")}, {6, N_("On + red-eye")}, {16, N_("External")}, |
1311 | | }; |
1312 | | |
1313 | | //! DriveMode, tag 0x0005 |
1314 | | constexpr TagDetails canonCsDriveMode[] = { |
1315 | | {0, N_("Single / timer")}, |
1316 | | {1, N_("Continuous")}, |
1317 | | {2, N_("Movie")}, |
1318 | | {3, N_("Continuous, speed priority")}, |
1319 | | {3, N_("Continuous, tracking priority")}, |
1320 | | {4, N_("Continuous, low")}, |
1321 | | {5, N_("Continuous, high")}, |
1322 | | {6, N_("Silent Single")}, |
1323 | | {9, N_("Single, Silent")}, |
1324 | | {10, N_("Continuous, Silent")}, |
1325 | | }; |
1326 | | |
1327 | | //! FocusMode, tag 0x0007 |
1328 | | constexpr TagDetails canonCsFocusMode[] = { |
1329 | | {0, N_("One shot AF")}, {1, N_("AI servo AF")}, {2, N_("AI focus AF")}, {3, N_("Manual focus (3)")}, |
1330 | | {4, N_("Single")}, {5, N_("Continuous")}, {6, N_("Manual focus (6)")}, {16, N_("Pan focus")}, |
1331 | | {256, N_("AF + MF")}, {512, N_("Movie Snap Focus")}, {519, N_("Movie Servo AF")}, |
1332 | | }; |
1333 | | |
1334 | | //! RecordMode, tag 0x0009 |
1335 | | constexpr TagDetails canonCsRecordMode[] = { |
1336 | | {1, N_("JPEG")}, {2, N_("CRW+THM")}, {3, N_("AVI+THM")}, {4, N_("TIF")}, {5, N_("TIF+JPEG")}, |
1337 | | {6, N_("CR2")}, {7, N_("CR2+JPEG")}, {9, N_("MOV")}, {10, N_("MP4")}, {11, N_("CRM")}, |
1338 | | {12, N_("CR3")}, {13, N_("CR3+JPEG")}, {14, N_("HIF")}, {15, N_("CR3+HIF")}, |
1339 | | }; |
1340 | | |
1341 | | //! ImageSize, tag 0x000a |
1342 | | constexpr TagDetails canonCsImageSize[] = { |
1343 | | {0, N_("Large")}, |
1344 | | {1, N_("Medium")}, |
1345 | | {2, N_("Small")}, |
1346 | | {5, N_("Medium 1")}, |
1347 | | {6, N_("Medium 2")}, |
1348 | | {7, N_("Medium 3")}, |
1349 | | {8, N_("Postcard")}, |
1350 | | {9, N_("Widescreen")}, |
1351 | | {10, N_("Medium Widescreen")}, |
1352 | | {14, N_("Small 1")}, |
1353 | | {15, N_("Small 2")}, |
1354 | | {16, N_("Small 3")}, |
1355 | | {128, N_("640x480 Movie")}, |
1356 | | {129, N_("Medium Movie")}, |
1357 | | {130, N_("Small Movie")}, |
1358 | | {137, N_("1280x720 Movie")}, |
1359 | | {142, N_("1920x1080 Movie")}, |
1360 | | {143, N_("4096x2160 Movie")}, |
1361 | | }; |
1362 | | |
1363 | | //! EasyMode, tag 0x000b |
1364 | | constexpr TagDetails canonCsEasyMode[] = { |
1365 | | {0, N_("Full auto")}, |
1366 | | {1, N_("Manual")}, |
1367 | | {2, N_("Landscape")}, |
1368 | | {3, N_("Fast shutter")}, |
1369 | | {4, N_("Slow shutter")}, |
1370 | | {5, N_("Night")}, |
1371 | | {6, N_("Gray Scale")}, |
1372 | | {7, N_("Sepia")}, |
1373 | | {8, N_("Portrait")}, |
1374 | | {9, N_("Sports")}, |
1375 | | {10, N_("Macro")}, |
1376 | | {11, N_("Black & White")}, |
1377 | | {12, N_("Pan focus")}, |
1378 | | {13, N_("Vivid")}, |
1379 | | {14, N_("Neutral")}, |
1380 | | {15, N_("Flash Off")}, |
1381 | | {16, N_("Long Shutter")}, |
1382 | | {17, N_("Super Macro")}, |
1383 | | {18, N_("Foliage")}, |
1384 | | {19, N_("Indoor")}, |
1385 | | {20, N_("Fireworks")}, |
1386 | | {21, N_("Beach")}, |
1387 | | {22, N_("Underwater")}, |
1388 | | {23, N_("Snow")}, |
1389 | | {24, N_("Kids & Pets")}, |
1390 | | {25, N_("Night Snapshot")}, |
1391 | | {26, N_("Digital Macro")}, |
1392 | | {27, N_("My Colors")}, |
1393 | | {28, N_("Movie Snap")}, |
1394 | | {29, N_("Super Macro 2")}, |
1395 | | {30, N_("Color Accent")}, |
1396 | | {31, N_("Color Swap")}, |
1397 | | {32, N_("Aquarium")}, |
1398 | | {33, N_("ISO 3200")}, |
1399 | | {34, N_("ISO 6400")}, |
1400 | | {35, N_("Creative Light Effect")}, |
1401 | | {36, N_("Easy")}, |
1402 | | {37, N_("Quick Shot")}, |
1403 | | {38, N_("Creative Auto")}, |
1404 | | {39, N_("Zoom Blur")}, |
1405 | | {40, N_("Low Light")}, |
1406 | | {41, N_("Nostalgic")}, |
1407 | | {42, N_("Super Vivid")}, |
1408 | | {43, N_("Poster Effect")}, |
1409 | | {44, N_("Face Self-timer")}, |
1410 | | {45, N_("Smile")}, |
1411 | | {46, N_("Wink Self-timer")}, |
1412 | | {47, N_("Fisheye Effect")}, |
1413 | | {48, N_("Miniature Effect")}, |
1414 | | {49, N_("High-speed Burst")}, |
1415 | | {50, N_("Best Image Selection")}, |
1416 | | {51, N_("High Dynamic Range")}, |
1417 | | {52, N_("Handheld Night Scene")}, |
1418 | | {53, N_("Movie Digest")}, |
1419 | | {54, N_("Live View Control")}, |
1420 | | {55, N_("Discreet")}, |
1421 | | {56, N_("Blur Reduction")}, |
1422 | | {57, N_("Monochrome")}, |
1423 | | {58, N_("Toy Camera Effect")}, |
1424 | | {59, N_("Scene Intelligent Auto")}, |
1425 | | {60, N_("High-speed Burst HQ")}, |
1426 | | {61, N_("Smooth Skin")}, |
1427 | | {62, N_("Soft Focus")}, |
1428 | | {257, N_("Spotlight")}, |
1429 | | {258, N_("Night 2")}, |
1430 | | {259, N_("Night+")}, |
1431 | | {260, N_("Super Night")}, |
1432 | | {261, N_("Sunset")}, |
1433 | | {263, N_("Night Scene")}, |
1434 | | {264, N_("Surface")}, |
1435 | | {265, N_("Low Light 2")}, |
1436 | | }; |
1437 | | |
1438 | | //! DigitalZoom, tag 0x000c |
1439 | | constexpr TagDetails canonCsDigitalZoom[] = { |
1440 | | {0, N_("None")}, |
1441 | | {1, "2x"}, |
1442 | | {2, "4x"}, |
1443 | | {3, N_("Other")}, |
1444 | | }; |
1445 | | |
1446 | | //! Contrast, Saturation Sharpness, tags 0x000d, 0x000e, 0x000f |
1447 | | constexpr TagDetails canonCsLnh[] = { |
1448 | | {0xffff, N_("Low")}, |
1449 | | {0x0000, N_("Normal")}, |
1450 | | {0x0001, N_("High")}, |
1451 | | }; |
1452 | | |
1453 | | //! ISOSpeeds, tag 0x0010 |
1454 | | constexpr TagDetails canonCsISOSpeed[] = { |
1455 | | {0, N_("n/a")}, {14, N_("Auto High")}, {15, N_("Auto")}, {16, "50"}, {17, "100"}, {18, "200"}, |
1456 | | {19, "400"}, {20, "800"}, {16464, "80"}, {16484, "100"}, {16509, "125"}, {16544, "160"}, |
1457 | | {16584, "200"}, {16634, "250"}, {16704, "320"}, {16784, "400"}, {16884, "500"}, {17024, "640"}, |
1458 | | {17184, "800"}, {17384, "1000"}, {17634, "1250"}, {17984, "1600"}, {18384, "2000"}, {18884, "2500"}, |
1459 | | {19584, "3200"}, {20384, "4000"}, {21384, "5000"}, {22784, "6400"}, {24384, "8000"}, {26384, "10000"}, |
1460 | | {29184, "12800"}, {29184, "16000"}, {29184, "20000"}, {29184, "25600"}, {29184, "32000"}, {29184, "40000"}, |
1461 | | {29184, "H1(51200)"}, {29184, "H2(102400)"}, |
1462 | | }; |
1463 | | |
1464 | | //! MeteringMode, tag 0x0011 |
1465 | | constexpr TagDetails canonCsMeteringMode[] = { |
1466 | | {0, N_("Default")}, {1, N_("Spot")}, {2, N_("Average")}, |
1467 | | {3, N_("Evaluative")}, {4, N_("Partial")}, {5, N_("Center-weighted average")}, |
1468 | | }; |
1469 | | |
1470 | | //! FocusType, tag 0x0012 |
1471 | | constexpr TagDetails canonCsFocusType[] = { |
1472 | | {0, N_("Manual")}, {1, N_("Auto")}, {2, N_("Not known")}, {3, N_("Macro")}, |
1473 | | {4, N_("Very close")}, {5, N_("Close")}, {6, N_("Middle range")}, {7, N_("Far range")}, |
1474 | | {8, N_("Pan focus")}, {9, N_("Super macro")}, {10, N_("Infinity")}, |
1475 | | }; |
1476 | | |
1477 | | //! AFPoint, tag 0x0013 |
1478 | | constexpr TagDetails canonCsAfPoint[] = { |
1479 | | {0x2005, N_("Manual AF point selection")}, |
1480 | | {0x3000, N_("None (MF)")}, |
1481 | | {0x3001, N_("Auto-selected")}, |
1482 | | {0x3002, N_("Right")}, |
1483 | | {0x3003, N_("Center")}, |
1484 | | {0x3004, N_("Left")}, |
1485 | | {0x4001, N_("Auto AF point selection")}, |
1486 | | {0x4006, N_("Face Detect")}, |
1487 | | }; |
1488 | | |
1489 | | //! ExposureProgram, tag 0x0014 |
1490 | | constexpr TagDetails canonCsExposureProgram[] = { |
1491 | | {0, N_("Easy shooting (Auto)")}, |
1492 | | {1, N_("Program (P)")}, |
1493 | | {2, N_("Shutter priority (Tv)")}, |
1494 | | {3, N_("Aperture priority (Av)")}, |
1495 | | {4, N_("Manual (M)")}, |
1496 | | {5, N_("A-DEP")}, |
1497 | | {6, N_("M-DEP")}, |
1498 | | {7, N_("Bulb")}, |
1499 | | }; |
1500 | | |
1501 | | //! LensType, tag 0x0016 |
1502 | | constexpr TagDetails canonCsLensType[] = { |
1503 | | {1, "Canon EF 50mm f/1.8"}, |
1504 | | {2, "Canon EF 28mm f/2.8"}, |
1505 | | {2, "Sigma 24mm f/2.8 Super Wide II"}, // 1 |
1506 | | {3, "Canon EF 135mm f/2.8 Soft"}, |
1507 | | {4, "Canon EF 35-105mm f/3.5-4.5"}, |
1508 | | {4, "Sigma UC Zoom 35-135mm f/4-5.6"}, // 1 |
1509 | | {5, "Canon EF 35-70mm f/3.5-4.5"}, |
1510 | | {6, "Canon EF 28-70mm f/3.5-4.5"}, |
1511 | | {6, "Sigma 18-50mm f/3.5-5.6 DC"}, // 1 |
1512 | | {6, "Sigma 18-125mm f/3.5-5.6 DC IF ASP"}, // 2 |
1513 | | {6, "Tokina AF 193-2 19-35mm f/3.5-4.5"}, // 3 |
1514 | | {6, "Sigma 28-80mm f/3.5-5.6 II Macro"}, // 4 |
1515 | | {6, "Sigma 28-300mm f/3.5-6.3 DG Macro"}, // 5 |
1516 | | {7, "Canon EF 100-300mm f/5.6L"}, |
1517 | | {8, "Canon EF 100-300mm f/5.6"}, |
1518 | | {8, "Sigma 70-300mm f/4-5.6 [APO] DG Macro"}, // 1 |
1519 | | {8, "Tokina AT-X 242 AF 24-200mm f/3.5-5.6"}, // 2 |
1520 | | {9, "Canon EF 70-210mm f/4"}, |
1521 | | {9, "Sigma 55-200mm f/4-5.6 DC"}, // 1 |
1522 | | {10, "Canon EF 50mm f/2.5 Macro"}, |
1523 | | {10, "Sigma 50mm f/2.8 EX"}, // 1 |
1524 | | {10, "Sigma 28mm f/1.8"}, // 2 |
1525 | | {10, "Sigma 105mm f/2.8 Macro EX"}, // 3 |
1526 | | {10, "Sigma 70mm f/2.8 EX DG Macro EF"}, // 4 |
1527 | | {11, "Canon EF 35mm f/2"}, |
1528 | | {13, "Canon EF 15mm f/2.8 Fisheye"}, |
1529 | | {14, "Canon EF 50-200mm f/3.5-4.5L"}, |
1530 | | {15, "Canon EF 50-200mm f/3.5-4.5"}, |
1531 | | {16, "Canon EF 35-135mm f/3.5-4.5"}, |
1532 | | {17, "Canon EF 35-70mm f/3.5-4.5A"}, |
1533 | | {18, "Canon EF 28-70mm f/3.5-4.5"}, |
1534 | | {20, "Canon EF 100-200mm f/4.5A"}, |
1535 | | {21, "Canon EF 80-200mm f/2.8L"}, |
1536 | | {22, "Canon EF 20-35mm f/2.8L"}, |
1537 | | {22, "Tokina AT-X 280 AF Pro 28-80mm f/2.8 Aspherical"}, // 1 |
1538 | | {23, "Canon EF 35-105mm f/3.5-4.5"}, |
1539 | | {24, "Canon EF 35-80mm f/4-5.6 Power Zoom"}, |
1540 | | {25, "Canon EF 35-80mm f/4-5.6 Power Zoom"}, |
1541 | | {26, "Canon EF 100mm f/2.8 Macro"}, |
1542 | | {26, "Cosina 100mm f/3.5 Macro AF"}, // 1 |
1543 | | {26, "Tamron SP AF 90mm f/2.8 Di Macro"}, // 2 |
1544 | | {26, "Tamron SP AF 180mm f/3.5 Di Macro"}, // 3 |
1545 | | {26, "Carl Zeiss Planar T* 50mm f/1.4"}, // 4 |
1546 | | {26, "Voigtlander APO Lanthar 125mm f/2.5 SL Macro"}, // 5 |
1547 | | {26, "Carl Zeiss Planar T 85mm f/1.4 ZE"}, // 6 |
1548 | | {27, "Canon EF 35-80mm f/4-5.6"}, |
1549 | | {28, "Canon EF 80-200mm f/4.5-5.6"}, |
1550 | | {28, "Tamron SP AF 28-105mm f/2.8 LD Aspherical IF"}, // 1 |
1551 | | {28, "Tamron SP AF 28-75mm f/2.8 XR Di LD Aspherical [IF] Macro"}, // 2 |
1552 | | {28, "Tamron AF 70-300mm f/4-5.6 Di LD 1:2 Macro"}, // 3 |
1553 | | {28, "Tamron AF Aspherical 28-200mm f/3.8-5.6"}, // 4 |
1554 | | {29, "Canon EF 50mm f/1.8 II"}, |
1555 | | {30, "Canon EF 35-105mm f/4.5-5.6"}, |
1556 | | {31, "Canon EF 75-300mm f/4-5.6"}, |
1557 | | {31, "Tamron SP AF 300mm f/2.8 LD IF"}, // 1 |
1558 | | {32, "Canon EF 24mm f/2.8"}, |
1559 | | {32, "Sigma 15mm f/2.8 EX Fisheye"}, // 1 |
1560 | | {33, "Voigtlander Ultron 40mm f/2 SLII Aspherical"}, |
1561 | | {33, "Voigtlander Color Skopar 20mm f/3.5 SLII Aspherical"}, // 1 |
1562 | | {33, "Voigtlander APO-Lanthar 90mm f/3.5 SLII Close Focus"}, // 2 |
1563 | | {33, "Carl Zeiss Distagon T* 15mm f/2.8 ZE"}, // 3 |
1564 | | {33, "Carl Zeiss Distagon T* 18mm f/3.5 ZE"}, // 4 |
1565 | | {33, "Carl Zeiss Distagon T* 21mm f/2.8 ZE"}, // 5 |
1566 | | {33, "Carl Zeiss Distagon T* 25mm f/2 ZE"}, // 6 |
1567 | | {33, "Carl Zeiss Distagon T* 28mm f/2 ZE"}, // 7 |
1568 | | {33, "Carl Zeiss Distagon T* 35mm f/2 ZE"}, // 8 |
1569 | | {33, "Carl Zeiss Distagon T* 35mm f/1.4 ZE"}, // 9 |
1570 | | {33, "Carl Zeiss Planar T* 50mm f/1.4 ZE"}, // 10 |
1571 | | {33, "Carl Zeiss Makro-Planar T* 50mm f/2 ZE"}, // 11 |
1572 | | {33, "Carl Zeiss Makro-Planar T* 100mm f/2 ZE"}, // 12 |
1573 | | {33, "Carl Zeiss Apo-Sonnar T* 135mm f/2 ZE"}, // 13 |
1574 | | {35, "Canon EF 35-80mm f/4-5.6 II"}, |
1575 | | {36, "Canon EF 38-76mm f/4.5-5.6"}, |
1576 | | {37, "Canon EF 35-80mm f/4-5.6 III"}, |
1577 | | {37, "Tamron 70-200mm f/2.8 Di LD IF Macro"}, // 1 |
1578 | | {37, "Tamron AF 28-300mm f/3.5-6.3 XR Di VC LD Aspherical [IF] Macro"}, // 2 |
1579 | | {37, "Tamron SP AF 17-50mm f/2.8 XR Di II VC LD Aspherical [IF]"}, // 3 |
1580 | | {37, "Tamron AF 18-270mm f/3.5-6.3 Di II VC LD Aspherical [IF] Macro"}, // 4 |
1581 | | {38, "Canon EF 80-200mm f/4.5-5.6 II"}, |
1582 | | {39, "Canon EF 75-300mm f/4-5.6"}, |
1583 | | {40, "Canon EF 28-80mm f/3.5-5.6"}, |
1584 | | {41, "Canon EF 28-90mm f/4-5.6"}, |
1585 | | {42, "Canon EF 28-200mm f/3.5-5.6"}, |
1586 | | {42, "Tamron AF 28-300mm f/3.5-6.3 XR Di VC LD Aspherical [IF] Macro"}, // 1 |
1587 | | {43, "Canon EF 28-105mm f/4-5.6"}, |
1588 | | {44, "Canon EF 90-300mm f/4.5-5.6"}, |
1589 | | {45, "Canon EF-S 18-55mm f/3.5-5.6 [II]"}, |
1590 | | {46, "Canon EF 28-90mm f/4-5.6"}, |
1591 | | {47, "Zeiss Milvus 35mm f/2"}, |
1592 | | {47, "Zeiss Milvus 50mm f/2 Makro"}, // 1 |
1593 | | {47, "Zeiss Milvus 135mm f/2 ZE"}, // 2 |
1594 | | {48, "Canon EF-S 18-55mm f/3.5-5.6 IS"}, |
1595 | | {49, "Canon EF-S 55-250mm f/4-5.6 IS"}, |
1596 | | {50, "Canon EF-S 18-200mm f/3.5-5.6 IS"}, |
1597 | | {51, "Canon EF-S 18-135mm f/3.5-5.6 IS"}, |
1598 | | {52, "Canon EF-S 18-55mm f/3.5-5.6 IS II"}, |
1599 | | {53, "Canon EF-S 18-55mm f/3.5-5.6 III"}, |
1600 | | {54, "Canon EF-S 55-250mm f/4-5.6 IS II"}, |
1601 | | {60, "Irix 11mm f/4"}, |
1602 | | {80, "Canon TS-E 50mm f/2.8L Macro"}, |
1603 | | {81, "Canon TS-E 90mm f/2.8L Macro"}, |
1604 | | {82, "Canon TS-E 135mm f/4L Macro"}, |
1605 | | {94, "Canon TS-E 17mm f/4L"}, |
1606 | | {95, "Canon TS-E 24mm f/3.5L II"}, |
1607 | | {103, "Samyang AF 14mm f/2.8 EF"}, |
1608 | | {103, "Rokinon SP 14mm f/2.4"}, // 1 |
1609 | | {103, "Rokinon AF 14mm f/2.8 EF"}, // 2 |
1610 | | {106, "Rokinon SP / Samyang XP 35mm f/1.2"}, |
1611 | | {112, "Sigma 28mm f/1.5 FF High-speed Prime"}, |
1612 | | {112, "Sigma 40mm f/1.5 FF High-speed Prime"}, // 1 |
1613 | | {112, "Sigma 105mm f/1.5 FF High-speed Prime"}, // 2 |
1614 | | {117, "Tamron 35-150mm f/2.8-4.0 Di VC OSD"}, |
1615 | | {117, "Tamron SP 15-30mm f/2.8 Di VC USD G2"}, |
1616 | | {117, "Tamron SP 35mm f/1.4 Di USD"}, // 1 |
1617 | | {124, "Canon MP-E 65mm f/2.8 1-5x Macro Photo"}, |
1618 | | {125, "Canon TS-E 24mm f/3.5L"}, |
1619 | | {126, "Canon TS-E 45mm f/2.8"}, |
1620 | | {127, "Canon TS-E 90mm f/2.8"}, |
1621 | | {127, "Tamron 18-200mm f/3.5-6.3 Di II VC"}, // 1 |
1622 | | {129, "Canon EF 300mm f/2.8L USM"}, |
1623 | | {130, "Canon EF 50mm f/1.0L USM"}, |
1624 | | {131, "Canon EF 28-80mm f/2.8-4L USM"}, |
1625 | | {131, "Sigma 8mm f/3.5 EX DG Circular Fisheye"}, // 1 |
1626 | | {131, "Sigma 17-35mm f/2.8-4 EX DG Aspherical HSM"}, // 2 |
1627 | | {131, "Sigma 17-70mm f/2.8-4.5 DC Macro"}, // 3 |
1628 | | {131, "Sigma APO 50-150mm f/2.8 [II] EX DC HSM"}, // 4 |
1629 | | {131, "Sigma APO 120-300mm f/2.8 EX DG HSM"}, // 5 |
1630 | | {131, "Sigma 70-200mm f/2.8 APO EX HSM"}, // 6 |
1631 | | {131, "Sigma 28-70mm f/2.8-4 DG"}, // 7 |
1632 | | {132, "Canon EF 1200mm f/5.6L USM"}, |
1633 | | {134, "Canon EF 600mm f/4L IS USM"}, |
1634 | | {135, "Canon EF 200mm f/1.8L USM"}, |
1635 | | {136, "Canon EF 300mm f/2.8L USM"}, |
1636 | | {136, "Tamron SP 15-30mm f/2.8 Di VC USD"}, // 1 |
1637 | | {137, "Canon EF 85mm f/1.2L USM"}, |
1638 | | {137, "Sigma 18-50mm f/2.8-4.5 DC OS HSM"}, // 1 |
1639 | | {137, "Sigma 50-200mm f/4-5.6 DC OS HSM"}, // 2 |
1640 | | {137, "Sigma 18-250mm f/3.5-6.3 DC OS HSM"}, // 3 |
1641 | | {137, "Sigma 24-70mm f/2.8 IF EX DG HSM"}, // 4 |
1642 | | {137, "Sigma 18-125mm f/3.8-5.6 DC OS HSM"}, // 5 |
1643 | | {137, "Sigma 17-70mm f/2.8-4 DC Macro OS HSM | C"}, // 6 |
1644 | | {137, "Sigma 17-50mm f/2.8 OS HSM"}, // 7 |
1645 | | {137, "Sigma 18-200mm f/3.5-6.3 DC OS HSM [II]"}, // 8 |
1646 | | {137, "Tamron AF 18-270mm f/3.5-6.3 Di II VC PZD"}, // 9 |
1647 | | {137, "Sigma 8-16mm f/4.5-5.6 DC HSM"}, // 10 |
1648 | | {137, "Tamron SP 17-50mm f/2.8 XR Di II VC"}, // 11 |
1649 | | {137, "Tamron SP 60mm f/2 Macro Di II"}, // 12 |
1650 | | {137, "Sigma 10-20mm f/3.5 EX DC HSM"}, // 13 |
1651 | | {137, "Tamron SP 24-70mm f/2.8 Di VC USD"}, // 14 |
1652 | | {137, "Sigma 18-35mm f/1.8 DC HSM | A"}, // 15 |
1653 | | {137, "Sigma 12-24mm f/4.5-5.6 DG HSM II"}, // 16 |
1654 | | {137, "Sigma 70-300mm f/4-5.6 DG OS"}, // 17 |
1655 | | {138, "Canon EF 28-80mm f/2.8-4L"}, |
1656 | | {139, "Canon EF 400mm f/2.8L USM"}, |
1657 | | {140, "Canon EF 500mm f/4.5L USM"}, |
1658 | | {141, "Canon EF 500mm f/4.5L USM"}, |
1659 | | {142, "Canon EF 300mm f/2.8L IS USM"}, |
1660 | | {143, "Canon EF 500mm f/4L IS USM"}, |
1661 | | {143, "Sigma 17-70mm f/2.8-4 DC Macro OS HSM"}, // 1 |
1662 | | {143, "Sigma 24-105mm f/4 DG OS HSM | A"}, // 2 |
1663 | | {144, "Canon EF 35-135mm f/4-5.6 USM"}, |
1664 | | {145, "Canon EF 100-300mm f/4.5-5.6 USM"}, |
1665 | | {146, "Canon EF 70-210mm f/3.5-4.5 USM"}, |
1666 | | {147, "Canon EF 35-135mm f/4-5.6 USM"}, |
1667 | | {148, "Canon EF 28-80mm f/3.5-5.6 USM"}, |
1668 | | {149, "Canon EF 100mm f/2 USM"}, |
1669 | | {150, "Canon EF 14mm f/2.8L USM"}, |
1670 | | {150, "Sigma 20mm EX f/1.8"}, // 1 |
1671 | | {150, "Sigma 30mm f/1.4 DC HSM"}, // 2 |
1672 | | {150, "Sigma 24mm f/1.8 DG Macro EX"}, // 3 |
1673 | | {150, "Sigma 28mm f/1.8 DG Macro EX"}, // 4 |
1674 | | {150, "Sigma 18-35mm f/1.8 DC HSM | A"}, // 5 |
1675 | | {151, "Canon EF 200mm f/2.8L USM"}, |
1676 | | {152, "Canon EF 300mm f/4L IS USM"}, |
1677 | | {152, "Sigma 12-24mm f/4.5-5.6 EX DG ASPHERICAL HSM"}, // 1 |
1678 | | {152, "Sigma 14mm f/2.8 EX Aspherical HSM"}, // 2 |
1679 | | {152, "Sigma 10-20mm f/4-5.6"}, // 3 |
1680 | | {152, "Sigma 100-300mm f/4"}, // 4 |
1681 | | {152, "Sigma 300-800mm f/5.6 APO EX DG HSM"}, // 5 |
1682 | | {153, "Canon EF 35-350mm f/3.5-5.6L USM"}, |
1683 | | {153, "Sigma 50-500mm f/4-6.3 APO HSM EX"}, // 1 |
1684 | | {153, "Tamron AF 28-300mm f/3.5-6.3 XR LD Aspherical [IF] Macro"}, // 2 |
1685 | | {153, "Tamron AF 18-200mm f/3.5-6.3 XR Di II LD Aspherical [IF] Macro"}, // 3 |
1686 | | {153, "Tamron 18-250mm f/3.5-6.3 Di II LD Aspherical [IF] Macro"}, // 4 |
1687 | | {154, "Canon EF 20mm f/2.8 USM"}, |
1688 | | {154, "Zeiss Milvus 21mm f/2.8"}, // 1 |
1689 | | {154, "Zeiss Milvus 15mm f/2.8 ZE"}, // 2 |
1690 | | {154, "Zeiss Milvus 18mm f/2.8 ZE"}, // 3 |
1691 | | {155, "Canon EF 85mm f/1.8 USM"}, |
1692 | | {155, "Sigma 14mm f/1.8 DG HSM | A"}, // 1 |
1693 | | {156, "Canon EF 28-105mm f/3.5-4.5 USM"}, |
1694 | | {156, "Tamron SP 70-300mm f/4-5.6 Di VC USD"}, // 1 |
1695 | | {156, "Tamron SP AF 28-105mm f/2.8 LD Aspherical IF"}, // 2 |
1696 | | {160, "Canon EF 20-35mm f/3.5-4.5 USM"}, |
1697 | | {160, "Tamron AF 19-35mm f/3.5-4.5"}, // 1 |
1698 | | {160, "Tokina AT-X 124 AF Pro DX 12-24mm f/4"}, // 2 |
1699 | | {160, "Tokina AT-X 107 AF DX 10-17mm f/3.5-4.5 Fisheye"}, // 3 |
1700 | | {160, "Tokina AT-X 116 AF Pro DX 11-16mm f/2.8"}, // 4 |
1701 | | {160, "Tokina AT-X 11-20 f/2.8 PRO DX Aspherical 11-20mm f/2.8"}, // 5 |
1702 | | {161, "Canon EF 28-70mm f/2.8L USM"}, |
1703 | | {161, "Sigma 24-70mm f/2.8 EX"}, // 1 |
1704 | | {161, "Sigma 28-70mm f/2.8 EX"}, // 2 |
1705 | | {161, "Sigma 24-60mm f/2.8 EX DG"}, // 3 |
1706 | | {161, "Tamron AF 17-50mm f/2.8 Di-II LD Aspherical"}, // 4 |
1707 | | {161, "Tamron 90mm f/2.8"}, // 5 |
1708 | | {161, "Tamron SP AF 17-35mm f/2.8-4 Di LD Aspherical IF"}, // 6 |
1709 | | {161, "Tamron SP AF 28-75mm f/2.8 XR Di LD Aspherical [IF] Macro"}, // 7 |
1710 | | {161, "Tokina AT-X 24-70mm f/2.8 PRO FX (IF)"}, // 8 |
1711 | | {162, "Canon EF 200mm f/2.8L USM"}, |
1712 | | {163, "Canon EF 300mm f/4L"}, |
1713 | | {164, "Canon EF 400mm f/5.6L"}, |
1714 | | {165, "Canon EF 70-200mm f/2.8L USM"}, |
1715 | | {166, "Canon EF 70-200mm f/2.8L USM + 1.4x"}, |
1716 | | {167, "Canon EF 70-200mm f/2.8L USM + 2x"}, |
1717 | | {168, "Canon EF 28mm f/1.8 USM"}, |
1718 | | {168, "Sigma 50-100mm f/1.8 DC HSM | A"}, // 1 |
1719 | | {169, "Canon EF 17-35mm f/2.8L USM"}, |
1720 | | {169, "Sigma 18-200mm f/3.5-6.3 DC OS"}, // 1 |
1721 | | {169, "Sigma 15-30mm f/3.5-4.5 EX DG Aspherical"}, // 2 |
1722 | | {169, "Sigma 18-50mm f/2.8 Macro"}, // 3 |
1723 | | {169, "Sigma 50mm f/1.4 EX DG HSM"}, // 4 |
1724 | | {169, "Sigma 85mm f/1.4 EX DG HSM"}, // 5 |
1725 | | {169, "Sigma 30mm f/1.4 EX DC HSM"}, // 6 |
1726 | | {169, "Sigma 35mm f/1.4 DG HSM"}, // 7 |
1727 | | {169, "Sigma 35mm f/1.5 FF High-Speed Prime | 017"}, // 8 |
1728 | | {169, "Sigma 70mm f/2.8 Macro EX DG"}, // 9 |
1729 | | {170, "Canon EF 200mm f/2.8L II USM"}, |
1730 | | {170, "Sigma 300mm f/2.8 APO EX DG HSM"}, // 1 |
1731 | | {170, "Sigma 800mm f/5.6 APO EX DG HSM"}, // 2 |
1732 | | {171, "Canon EF 300mm f/4L USM"}, |
1733 | | {172, "Canon EF 400mm f/5.6L USM"}, |
1734 | | {172, "Sigma 150-600mm f/5-6.3 DG OS HSM | S"}, // 1 |
1735 | | {172, "Sigma 500mm f/4.5 APO EX DG HSM"}, // 2 |
1736 | | {172, "Sigma 150-500mm f/5-6.3 APO DG OS HSM + 1.4x"}, // 3 |
1737 | | {173, "Canon EF 180mm Macro f/3.5L USM"}, |
1738 | | {173, "Sigma 180mm EX HSM Macro f/3.5"}, // 1 |
1739 | | {173, "Sigma APO Macro 150mm f/2.8 EX DG HSM"}, // 2 |
1740 | | {173, "Sigma 10mm f/2.8 EX DC Fisheye"}, // 3 |
1741 | | {173, "Sigma 15mm f/2.8 EX DG Diagonal Fisheye"}, // 4 |
1742 | | {173, "Venus Laowa 100mm f/2.8 2X Ultra Macro APO"}, // 5 |
1743 | | {173, "Sigma 150-500mm f/5-6.3 APO DG OS HSM + 2x"}, // 6 |
1744 | | {174, "Canon EF 135mm f/2L USM"}, |
1745 | | {174, "Sigma 70-200mm f/2.8 EX DG APO OS HSM"}, // 1 |
1746 | | {174, "Sigma 50-500mm f/4.5-6.3 APO DG OS HSM"}, // 2 |
1747 | | {174, "Sigma 150-500mm f/5-6.3 APO DG OS HSM"}, // 3 |
1748 | | {174, "Zeiss Milvus 100mm f/2 Makro"}, // 4 |
1749 | | {174, "Sigma APO 50-150mm f/2.8 EX DC OS HSM"}, // 5 |
1750 | | {174, "Sigma APO 120-300mm f/2.8 EX DG OS HSM"}, // 6 |
1751 | | {174, "Sigma 120-300mm f/2.8 DG OS HSM S013"}, // 7 |
1752 | | {174, "Sigma 120-400mm f/4.5-5.6 APO DG OS HSM"}, // 8 |
1753 | | {174, "Sigma 200-500mm f/2.8 APO EX DG"}, // 9 |
1754 | | {175, "Canon EF 400mm f/2.8L USM"}, |
1755 | | {176, "Canon EF 24-85mm f/3.5-4.5 USM"}, |
1756 | | {177, "Canon EF 300mm f/4L IS USM"}, |
1757 | | {178, "Canon EF 28-135mm f/3.5-5.6 IS"}, |
1758 | | {179, "Canon EF 24mm f/1.4L USM"}, |
1759 | | {180, "Canon EF 35mm f/1.4L USM"}, |
1760 | | {180, "Sigma 50mm f/1.4 DG HSM | A"}, // 1 |
1761 | | {180, "Sigma 24mm f/1.4 DG HSM | A"}, // 2 |
1762 | | {180, "Zeiss Milvus 50mm f/1.4"}, // 3 |
1763 | | {180, "Zeiss Milvus 85mm f/1.4"}, // 4 |
1764 | | {180, "Zeiss Otus 28mm f/1.4 ZE"}, // 5 |
1765 | | {180, "Sigma 24mm f/1.5 FF High-Speed Prime | 017"}, // 6 |
1766 | | {180, "Sigma 50mm f/1.5 FF High-Speed Prime | 017"}, // 7 |
1767 | | {180, "Sigma 85mm f/1.5 FF High-Speed Prime | 017"}, // 8 |
1768 | | {180, "Tokina Opera 50mm f/1.4 FF"}, // 9 |
1769 | | {180, "Sigma 20mm f/1.4 DG HSM | A"}, // 10 |
1770 | | {181, "Canon EF 100-400mm f/4.5-5.6L IS USM + 1.4x"}, |
1771 | | {181, "Sigma 150-600mm f/5-6.3 DG OS HSM | S + 1.4x"}, // 1 |
1772 | | {182, "Canon EF 100-400mm f/4.5-5.6L IS USM + 2x"}, |
1773 | | {182, "Sigma 150-600mm f/5-6.3 DG OS HSM | S + 2x"}, // 1 |
1774 | | {183, "Canon EF 100-400mm f/4.5-5.6L IS USM"}, |
1775 | | {183, "Sigma 150mm f/2.8 EX DG OS HSM APO Macro"}, // 1 |
1776 | | {183, "Sigma 105mm f/2.8 EX DG OS HSM Macro"}, // 2 |
1777 | | {183, "Sigma 180mm f/2.8 EX DG OS HSM APO Macro"}, // 3 |
1778 | | {183, "Sigma 150-600mm f/5-6.3 DG OS HSM | C"}, // 4 |
1779 | | {183, "Sigma 150-600mm f/5-6.3 DG OS HSM | S"}, // 5 |
1780 | | {183, "Sigma 100-400mm f/5-6.3 DG OS HSM"}, // 6 |
1781 | | {183, "Sigma 180mm f/3.5 APO Macro EX DG IF HSM"}, // 7 |
1782 | | {184, "Canon EF 400mm f/2.8L USM + 2x"}, |
1783 | | {185, "Canon EF 600mm f/4L IS USM"}, |
1784 | | {186, "Canon EF 70-200mm f/4L USM"}, |
1785 | | {187, "Canon EF 70-200mm f/4L USM + 1.4x"}, |
1786 | | {188, "Canon EF 70-200mm f/4L USM + 2x"}, |
1787 | | {189, "Canon EF 70-200mm f/4L USM + 2.8x"}, |
1788 | | {190, "Canon EF 100mm f/2.8 Macro USM"}, |
1789 | | {191, "Canon EF 400mm f/4 DO IS"}, |
1790 | | {191, "Sigma 500mm f/4 DG OS HSM"}, // 1 |
1791 | | {193, "Canon EF 35-80mm f/4-5.6 USM"}, |
1792 | | {194, "Canon EF 80-200mm f/4.5-5.6 USM"}, |
1793 | | {195, "Canon EF 35-105mm f/4.5-5.6 USM"}, |
1794 | | {196, "Canon EF 75-300mm f/4-5.6 USM"}, |
1795 | | {197, "Canon EF 75-300mm f/4-5.6 IS USM"}, |
1796 | | {197, "Sigma 18-300mm f/3.5-6.3 DC Macro OS HSM"}, // 1 |
1797 | | {198, "Canon EF 50mm f/1.4 USM"}, |
1798 | | {198, "Zeiss Otus 55mm f/1.4 ZE"}, // 1 |
1799 | | {198, "Zeiss Otus 85mm f/1.4 ZE"}, // 2 |
1800 | | {198, "Zeiss Milvus 25mm f/1.4"}, // 3 |
1801 | | {198, "Zeiss Otus 100mm f/1.4"}, // 4 |
1802 | | {198, "Zeiss Milvus 35mm f/1.4 ZE"}, // 5 |
1803 | | {198, "Yongnuo YN 35mm f/2"}, // 6 |
1804 | | {199, "Canon EF 28-80mm f/3.5-5.6 USM"}, |
1805 | | {200, "Canon EF 75-300mm f/4-5.6 USM"}, |
1806 | | {201, "Canon EF 28-80mm f/3.5-5.6 USM"}, |
1807 | | {202, "Canon EF 28-80mm f/3.5-5.6 USM IV"}, |
1808 | | {208, "Canon EF 22-55mm f/4-5.6 USM"}, |
1809 | | {209, "Canon EF 55-200mm f/4.5-5.6"}, |
1810 | | {210, "Canon EF 28-90mm f/4-5.6 USM"}, |
1811 | | {211, "Canon EF 28-200mm f/3.5-5.6 USM"}, |
1812 | | {212, "Canon EF 28-105mm f/4-5.6 USM"}, |
1813 | | {213, "Canon EF 90-300mm f/4.5-5.6 USM"}, |
1814 | | {213, "Tamron SP 150-600mm f/5-6.3 Di VC USD"}, // 1 |
1815 | | {213, "Tamron 16-300mm f/3.5-6.3 Di II VC PZD Macro"}, // 2 |
1816 | | {213, "Tamron SP 35mm f/1.8 Di VC USD"}, // 3 |
1817 | | {213, "Tamron SP 45mm f/1.8 Di VC USD"}, // 4 |
1818 | | {213, "Tamron SP 70-300mm f/4-5.6 Di VC USD"}, // 5 |
1819 | | {214, "Canon EF-S 18-55mm f/3.5-5.6 USM"}, |
1820 | | {215, "Canon EF 55-200mm f/4.5-5.6 II USM"}, |
1821 | | {217, "Tamron AF 18-270mm f/3.5-6.3 Di II VC PZD"}, |
1822 | | {220, "Yongnuo YN 50mm f/1.8"}, |
1823 | | {224, "Canon EF 70-200mm f/2.8L IS USM"}, |
1824 | | {225, "Canon EF 70-200mm f/2.8L IS USM + 1.4x"}, |
1825 | | {226, "Canon EF 70-200mm f/2.8L IS USM + 2x"}, |
1826 | | {227, "Canon EF 70-200mm f/2.8L IS USM + 2.8x"}, |
1827 | | {228, "Canon EF 28-105mm f/3.5-4.5 USM"}, |
1828 | | {229, "Canon EF 16-35mm f/2.8L USM"}, |
1829 | | {230, "Canon EF 24-70mm f/2.8L USM"}, |
1830 | | {231, "Canon EF 17-40mm f/4L USM"}, |
1831 | | {231, "Sigma 12-24mm f/4 DG HSM A016"}, // 1 |
1832 | | {232, "Canon EF 70-300mm f/4.5-5.6 DO IS USM"}, |
1833 | | {233, "Canon EF 28-300mm f/3.5-5.6L IS USM"}, |
1834 | | {234, "Canon EF-S 17-85mm f/4-5.6 IS USM"}, |
1835 | | {234, "Tokina AT-X 12-28 PRO DX 12-28mm f/4"}, // 1 |
1836 | | {235, "Canon EF-S 10-22mm f/3.5-4.5 USM"}, |
1837 | | {236, "Canon EF-S 60mm f/2.8 Macro USM"}, |
1838 | | {237, "Canon EF 24-105mm f/4L IS USM"}, |
1839 | | {238, "Canon EF 70-300mm f/4-5.6 IS USM"}, |
1840 | | {239, "Canon EF 85mm f/1.2L II USM"}, |
1841 | | {239, "Rokinon SP 85mm f/1.2"}, // 1 |
1842 | | {240, "Canon EF-S 17-55mm f/2.8 IS USM"}, |
1843 | | {240, "Sigma 17-50mm f/2.8 EX DC OS HSM"}, // 1 |
1844 | | {241, "Canon EF 50mm f/1.2L USM"}, |
1845 | | {242, "Canon EF 70-200mm f/4L IS USM"}, |
1846 | | {243, "Canon EF 70-200mm f/4L IS USM + 1.4x"}, |
1847 | | {244, "Canon EF 70-200mm f/4L IS USM + 2x"}, |
1848 | | {245, "Canon EF 70-200mm f/4L IS USM + 2.8x"}, |
1849 | | {246, "Canon EF 16-35mm f/2.8L II USM"}, |
1850 | | {247, "Canon EF 14mm f/2.8L II USM"}, |
1851 | | {248, "Canon EF 200mm f/2L IS USM"}, |
1852 | | {248, "Sigma 24-35mm f/2 DG HSM | A"}, // 1 |
1853 | | {248, "Sigma 135mm f/2 FF High-Speed Prime | 017"}, // 2 |
1854 | | {248, "Sigma 24-35mm f/2.2 FF Zoom | 017"}, // 3 |
1855 | | {248, "Sigma 135mm f/1.8 DG HSM A017"}, // 4 |
1856 | | {249, "Canon EF 800mm f/5.6L IS USM"}, |
1857 | | {250, "Canon EF 24mm f/1.4L II USM"}, |
1858 | | {250, "Sigma 20mm f/1.4 DG HSM | A"}, // 1 |
1859 | | {250, "Sigma 20mm f/1.5 FF High-Speed Prime | 017"}, // 2 |
1860 | | {250, "Tokina Opera 16-28mm f/2.8 FF"}, // 3 |
1861 | | {250, "Sigma 85mm f/1.4 DG HSM A016"}, // 4 |
1862 | | {251, "Canon EF 70-200mm f/2.8L IS II USM"}, |
1863 | | {251, "Canon EF 70-200mm f/2.8L IS III USM"}, // 1 |
1864 | | {252, "Canon EF 70-200mm f/2.8L IS II USM + 1.4x"}, |
1865 | | {252, "Canon EF 70-200mm f/2.8L IS III USM + 1.4x"}, // 1 |
1866 | | {253, "Canon EF 70-200mm f/2.8L IS II USM + 2x"}, |
1867 | | {253, "Canon EF 70-200mm f/2.8L IS III USM + 2x"}, // 1 |
1868 | | {254, "Canon EF 100mm f/2.8L Macro IS USM"}, // 1 |
1869 | | {254, "Tamron SP 90mm f/2.8 Di VC USD Macro 1:1"}, // 2 |
1870 | | {255, "Sigma 24-105mm f/4 DG OS HSM | A"}, |
1871 | | {255, "Sigma 180mm f/2.8 EX DG OS HSM APO Macro"}, // 1 |
1872 | | {368, "Sigma 14-24mm f/2.8 DG HSM | A"}, |
1873 | | {368, "Sigma 20mm f/1.4 DG HSM | A"}, // 1 |
1874 | | {368, "Sigma 50mm f/1.4 DG HSM | A"}, // 2 |
1875 | | {368, "Sigma 40mm f/1.4 DG HSM | A"}, // 3 |
1876 | | {368, "Sigma 60-600mm f/4.5-6.3 DG OS HSM | S"}, // 4 |
1877 | | {368, "Sigma 28mm f/1.4 DG HSM | A"}, // 5 |
1878 | | {368, "Sigma 150-600mm f/5-6.3 DG OS HSM | S"}, // 6 |
1879 | | {368, "Sigma 85mm f/1.4 DG HSM | A"}, // 7 |
1880 | | {368, "Sigma 105mm f/1.4 DG HSM"}, // 8 |
1881 | | {368, "Sigma 70mm f/2.8 DG Macro"}, // 9 |
1882 | | {368, "Sigma 18-35mm f/1.8 DC HSM | A"}, // 10 |
1883 | | {368, "Sigma 35mm f/1.4 DG HSM | A"}, // 11 |
1884 | | {488, "Canon EF-S 15-85mm f/3.5-5.6 IS USM"}, |
1885 | | {489, "Canon EF 70-300mm f/4-5.6L IS USM"}, |
1886 | | {490, "Canon EF 8-15mm f/4L Fisheye USM"}, |
1887 | | {491, "Canon EF 300mm f/2.8L IS II USM"}, |
1888 | | {491, "Tamron SP 70-200mm f/2.8 Di VC USD G2"}, // 1 |
1889 | | {491, "Tamron 18-400mm f/3.5-6.3 Di II VC HLD"}, // 2 |
1890 | | {491, "Tamron 100-400mm f/4.5-6.3 Di VC USD"}, // 3 |
1891 | | {491, "Tamron 70-210mm f/4 Di VC USD"}, // 4 |
1892 | | {491, "Tamron 70-210mm f/4 Di VC USD + 1.4x"}, // 5 |
1893 | | {491, "Tamron SP 24-70mm f/2.8 Di VC USD G2"}, // 6 |
1894 | | {492, "Canon EF 400mm f/2.8L IS II USM"}, |
1895 | | {493, "Canon EF 500mm f/4L IS II USM"}, |
1896 | | {493, "Canon EF 24-105mm f/4L IS USM"}, // 1 |
1897 | | {494, "Canon EF 600mm f/4L IS II USM"}, |
1898 | | {495, "Canon EF 24-70mm f/2.8L II USM"}, |
1899 | | {495, "Sigma 24-70mm f/2.8 DG OS HSM | A"}, // 1 |
1900 | | {496, "Canon EF 200-400mm f/4L IS USM"}, |
1901 | | {499, "Canon EF 200-400mm f/4L IS USM + 1.4x"}, |
1902 | | {502, "Canon EF 28mm f/2.8 IS USM"}, |
1903 | | {502, "Tamron 35mm f/1.8 Di VC USD"}, // 1 |
1904 | | {503, "Canon EF 24mm f/2.8 IS USM"}, |
1905 | | {504, "Canon EF 24-70mm f/4L IS USM"}, |
1906 | | {505, "Canon EF 35mm f/2 IS USM"}, |
1907 | | {506, "Canon EF 400mm f/4 DO IS II USM"}, |
1908 | | {507, "Canon EF 16-35mm f/4L IS USM"}, |
1909 | | {508, "Canon EF 11-24mm f/4L USM"}, |
1910 | | {508, "Tamron 10-24mm f/3.5-4.5 Di II VC HLD"}, // 1 |
1911 | | {624, "Sigma 50-100mm f/1.8 DC HSM Art"}, |
1912 | | {624, "Sigma 70-200mm f/2.8 DG OS HSM | S"}, |
1913 | | {624, "Sigma 14mm f/1.8 DG HSM | A"}, // 1 |
1914 | | {624, "Sigma 150-600mm f/5-6.3 DG OS HSM | C"}, // 2 |
1915 | | {624, "Sigma 150-600mm f/5-6.3 DG OS HSM | C + 1.4x"}, // 3 |
1916 | | {747, "Canon EF 100-400mm f/4.5-5.6L IS II USM"}, |
1917 | | {747, "Tamron SP 150-600mm f/5-6.3 Di VC USD G2"}, // 1 |
1918 | | {748, "Canon EF 100-400mm f/4.5-5.6L IS II USM + 1.4x"}, |
1919 | | {748, "Tamron 100-400mm f/4.5-6.3 Di VC USD + 1.4x"}, // 1 |
1920 | | {748, "Tamron 70-210mm f/4 Di VC USD + 2x"}, // 2 |
1921 | | {749, "Tamron 100-400mm f/4.5-6.3 Di VC USD + 2x"}, |
1922 | | {749, "Canon EF 100-400mm f/4.5-5.6L IS II USM + 2x"}, // 1 |
1923 | | {750, "Canon EF 35mm f/1.4L II USM"}, |
1924 | | {750, "Tamron SP 85mm f/1.8 Di VC USD"}, // 1 |
1925 | | {750, "Tamron SP 45mm f/1.8 Di VC USD"}, // 2 |
1926 | | {751, "Canon EF 16-35mm f/2.8L III USM"}, |
1927 | | {752, "Canon EF 24-105mm f/4L IS II USM"}, |
1928 | | {753, "Canon EF 85mm f/1.4L IS USM"}, |
1929 | | {754, "Canon EF 70-200mm f/4L IS II USM"}, |
1930 | | {757, "Canon EF 400mm f/2.8L IS III USM"}, |
1931 | | {758, "Canon EF 600mm f/4L IS III USM"}, |
1932 | | {1136, "Sigma 24-70mm f/2.8 DG OS HSM | Art 017"}, |
1933 | | {4142, "Canon EF-S 18-135mm f/3.5-5.6 IS STM"}, |
1934 | | {4143, "Canon EF-M 18-55mm f/3.5-5.6 IS STM"}, |
1935 | | {4143, "Tamron 18-200mm f/3.5-6.3 Di III VC"}, // 1 |
1936 | | {4144, "Canon EF 40mm f/2.8 STM"}, |
1937 | | {4145, "Canon EF-M 22mm f/2 STM"}, |
1938 | | {4146, "Canon EF-S 18-55mm f/3.5-5.6 IS STM"}, |
1939 | | {4147, "Canon EF-M 11-22mm f/4-5.6 IS STM"}, |
1940 | | {4148, "Canon EF-S 55-250mm f/4-5.6 IS STM"}, |
1941 | | {4149, "Canon EF-M 55-200mm f/4.5-6.3 IS STM"}, |
1942 | | {4150, "Canon EF-S 10-18mm f/4.5-5.6 IS STM"}, |
1943 | | {4152, "Canon EF 24-105mm f/3.5-5.6 IS STM"}, |
1944 | | {4153, "Canon EF-M 15-45mm f/3.5-6.3 IS STM"}, |
1945 | | {4154, "Canon EF-S 24mm f/2.8 STM"}, |
1946 | | {4155, "Canon EF-M 28mm f/3.5 Macro IS STM"}, |
1947 | | {4156, "Canon EF 50mm f/1.8 STM"}, |
1948 | | {4157, "Canon EF-M 18-150mm f/3.5-6.3 IS STM"}, |
1949 | | {4158, "Canon EF-S 18-55mm f/4-5.6 IS STM"}, |
1950 | | {4159, "Canon EF-M 32mm f/1.4 STM"}, |
1951 | | {4160, "Canon EF-S 35mm f/2.8 Macro IS STM"}, |
1952 | | {4208, "Sigma 56mm f/1.4 DC DN | C"}, |
1953 | | {4208, "Sigma 30mm f/1.4 DC DN | C"}, |
1954 | | {36910, "Canon EF 70-300mm f/4-5.6 IS II USM"}, |
1955 | | {36912, "Canon EF-S 18-135mm f/3.5-5.6 IS USM"}, |
1956 | | {61491, "Canon CN-E 14mm T3.1 L F"}, |
1957 | | {61492, "Canon CN-E 24mm T1.5 L F"}, |
1958 | | {61494, "Canon CN-E 85mm T1.3 L F"}, |
1959 | | {61495, "Canon CN-E 135mm T2.2 L F"}, |
1960 | | {61496, "Canon CN-E 35mm T1.5 L F"}, |
1961 | | // All RF lenses seem to share the LensType value 61182; |
1962 | | // unique RFLensType tag below is to be preferred instead. |
1963 | | // Please keep this list in sync w/ RFLensType list |
1964 | | {61182, "Canon RF 50mm F1.2 L USM"}, |
1965 | | {61182, "Canon RF 24-105mm F4 L IS USM"}, |
1966 | | {61182, "Canon RF 28-70mm F2 L USM"}, |
1967 | | {61182, "Canon RF 35mm F1.8 MACRO IS STM"}, |
1968 | | {61182, "Canon RF 85mm F1.2 L USM"}, |
1969 | | {61182, "Canon RF 85mm F1.2 L USM DS"}, |
1970 | | {61182, "Canon RF 24-70mm F2.8 L IS USM"}, |
1971 | | {61182, "Canon RF 15-35mm F2.8 L IS USM"}, |
1972 | | {61182, "Canon RF 24-240mm F4-6.3 IS USM"}, |
1973 | | {61182, "Canon RF 70-200mm F2.8 L IS USM"}, |
1974 | | {61182, "Canon RF 85mm F2 MACRO IS STM"}, |
1975 | | {61182, "Canon RF 600mm F11 IS STM"}, |
1976 | | {61182, "Canon RF 600mm F11 IS STM + RF1.4x"}, |
1977 | | {61182, "Canon RF 600mm F11 IS STM + RF2x"}, |
1978 | | {61182, "Canon RF 800mm F11 IS STM"}, |
1979 | | {61182, "Canon RF 800mm F11 IS STM + RF1.4x"}, |
1980 | | {61182, "Canon RF 800mm F11 IS STM + RF2x"}, |
1981 | | {61182, "Canon RF 24-105mm F4-7.1 IS STM"}, |
1982 | | {61182, "Canon RF 100-500mm F4.5-7.1 L IS USM"}, |
1983 | | {61182, "Canon RF 100-500mm F4.5-7.1 L IS USM + RF1.4x"}, |
1984 | | {61182, "Canon RF 100-500mm F4.5-7.1 L IS USM + RF2x"}, |
1985 | | {61182, "Canon RF 70-200mm F4 L IS USM"}, |
1986 | | {61182, "Canon RF 100mm F2.8 L MACRO IS USM"}, |
1987 | | {61182, "Canon RF 50mm F1.8 STM"}, |
1988 | | {61182, "Canon RF 14-35mm F4 L IS USM"}, |
1989 | | {61182, "Canon RF-S 18-45mm F4.5-6.3 IS STM"}, |
1990 | | {61182, "Canon RF 100-400mm F5.6-8 IS USM"}, |
1991 | | {61182, "Canon RF 100-400mm F5.6-8 IS USM + RF1.4x"}, |
1992 | | {61182, "Canon RF 100-400mm F5.6-8 IS USM + RF2x"}, |
1993 | | {61182, "Canon RF-S 18-150mm F3.5-6.3 IS STM"}, |
1994 | | {61182, "Canon RF 24mm F1.8 MACRO IS STM"}, |
1995 | | {61182, "Canon RF 16mm F2.8 STM"}, |
1996 | | {61182, "Canon RF 400mm F2.8 L IS USM"}, |
1997 | | {61182, "Canon RF 400mm F2.8 L IS USM + RF1.4x"}, |
1998 | | {61182, "Canon RF 400mm F2.8 L IS USM + RF2x"}, |
1999 | | {61182, "Canon RF 600mm F4 L IS USM"}, |
2000 | | {61182, "Canon RF 600mm F4 L IS USM + RF1.4x"}, |
2001 | | {61182, "Canon RF 600mm F4 L IS USM + RF2x"}, |
2002 | | {61182, "Canon RF 800mm F5.6 L IS USM"}, |
2003 | | {61182, "Canon RF 800mm F5.6 L IS USM + RF1.4x"}, |
2004 | | {61182, "Canon RF 800mm F5.6 L IS USM + RF2x"}, |
2005 | | {61182, "Canon RF 1200mm F8 L IS USM"}, |
2006 | | {61182, "Canon RF 1200mm F8 L IS USM + RF1.4x"}, |
2007 | | {61182, "Canon RF 1200mm F8 L IS USM + RF2x"}, |
2008 | | {61182, "Canon RF 5.2mm F2.8 L Dual Fisheye 3D VR"}, |
2009 | | {61182, "Canon RF 15-30mm F4.5-6.3 IS STM"}, |
2010 | | {61182, "Canon RF 135mm F1.8 L IS USM"}, |
2011 | | {61182, "Canon RF 24-50mm F4.5-6.3 IS STM"}, |
2012 | | {61182, "Canon RF-S 55-210mm F5-7.1 IS STM"}, |
2013 | | {61182, "Canon RF 100-300mm F2.8 L IS USM"}, |
2014 | | {61182, "Canon RF 100-300mm F2.8 L IS USM + RF1.4x"}, |
2015 | | {61182, "Canon RF 100-300mm F2.8 L IS USM + RF2x"}, |
2016 | | {61182, "Canon RF 200-800mm F6.3-9 IS USM"}, |
2017 | | {61182, "Canon RF 200-800mm F6.3-9 IS USM + RF1.4x"}, |
2018 | | {61182, "Canon RF 200-800mm F6.3-9 IS USM + RF2x"}, |
2019 | | {61182, "Canon RF 10-20mm F4 L IS STM"}, |
2020 | | {61182, "Canon RF 28mm F2.8 STM"}, |
2021 | | {61182, "Canon RF 24-105mm F2.8 L IS USM Z"}, |
2022 | | {61182, "Canon RF-S 10-18mm F4.5-6.3 IS STM"}, |
2023 | | {61182, "Canon RF 35mm F1.4 L VCM"}, |
2024 | | {61182, "Canon RF-S 3.9mm F3.5 STM Dual Fisheye"}, |
2025 | | {61182, "Canon RF 28-70mm F2.8 IS STM"}, |
2026 | | {61182, "Canon RF 70-200mm F2.8 L IS USM Z"}, |
2027 | | {61182, "Canon RF 70-200mm F2.8 L IS USM Z + RF1.4x"}, |
2028 | | {61182, "Canon RF 70-200mm F2.8 L IS USM Z + RF2x"}, |
2029 | | {61182, "Canon RF 16-28mm F2.8 IS STM"}, |
2030 | | {61182, "Canon RF-S 14-30mm F4-6.3 IS STM PZ"}, |
2031 | | {61182, "Canon RF 50mm F1.4 L VCM"}, |
2032 | | {61182, "Canon RF 24mm F1.4 L VCM"}, |
2033 | | {61182, "Canon RF 20mm F1.4 L VCM"}, |
2034 | | {61182, "Canon RF 85mm F1.4 L VCM"}, |
2035 | | {61182, "Canon RF 20-50mm F4 L IS USM PZ"}, |
2036 | | {61182, "Canon RF 45mm F1.2 STM"}, |
2037 | | {61182, "Canon RF 7-14mm F2.8-3.5 L Fisheye STM"}, |
2038 | | {61182, "Canon RF 14mm F1.4 L VCM"}, |
2039 | | {65535, N_("n/a")}, |
2040 | | }; |
2041 | | |
2042 | | //! FlashActivity, tag 0x001c |
2043 | | constexpr TagDetails canonCsFlashActivity[] = { |
2044 | | {0, N_("Did not fire")}, |
2045 | | {1, N_("Fired")}, |
2046 | | }; |
2047 | | |
2048 | | //! FlashDetails, tag 0x001d |
2049 | | constexpr TagDetailsBitmask canonCsFlashDetails[] = { |
2050 | | {0x4000, N_("External flash")}, {0x2000, N_("Internal flash")}, |
2051 | | {0x0001, N_("Manual")}, {0x0002, N_("TTL")}, |
2052 | | {0x0004, N_("A-TTL")}, {0x0008, N_("E-TTL")}, |
2053 | | {0x0010, N_("FP sync enabled")}, {0x0080, N_("2nd-curtain sync used")}, |
2054 | | {0x0800, N_("FP sync used")}, |
2055 | | }; |
2056 | | |
2057 | | //! FocusContinuous, tag 0x0020 |
2058 | | constexpr TagDetails canonCsFocusContinuous[] = { |
2059 | | {0, N_("Single")}, |
2060 | | {1, N_("Continuous")}, |
2061 | | {8, N_("Manual")}, |
2062 | | }; |
2063 | | |
2064 | | //! AESetting, tag 0x0021 |
2065 | | constexpr TagDetails canonCsAESetting[] = { |
2066 | | {0, N_("Normal AE")}, {1, N_("Exposure compensation")}, |
2067 | | {2, N_("AE lock")}, {3, N_("AE lock + exposure compensation")}, |
2068 | | {4, N_("No AE")}, {65535, N_("n/a")}, |
2069 | | }; |
2070 | | |
2071 | | //! ImageStabilization, tag 0x0022 |
2072 | | constexpr TagDetails canonCsImageStabilization[] = { |
2073 | | {0, N_("Off")}, {1, N_("On")}, |
2074 | | {2, N_("Shoot Only")}, {3, N_("Panning")}, |
2075 | | {4, N_("Dynamic")}, {256, N_("Off (2)")}, |
2076 | | {257, N_("On (2)")}, {258, N_("Shoot Only (2)")}, |
2077 | | {259, N_("Panning (2)")}, {260, N_("Dynamic (2)")}, |
2078 | | }; |
2079 | | |
2080 | | //! SpotMeteringMode, tag 0x0027 |
2081 | | constexpr TagDetails canonCsSpotMeteringMode[] = { |
2082 | | {0, N_("Center")}, |
2083 | | {1, N_("AF Point")}, |
2084 | | {65535, N_("n/a")}, |
2085 | | }; |
2086 | | |
2087 | | //! PhotoEffect, tag 0x0028 |
2088 | | constexpr TagDetails canonCsPhotoEffect[] = { |
2089 | | {0, N_("Off")}, {1, N_("Vivid")}, {2, N_("Neutral")}, {3, N_("Smooth")}, {4, N_("Sepia")}, |
2090 | | {5, N_("B&W")}, {6, N_("Custom")}, {100, N_("My color data")}, {65535, N_("n/a")}, |
2091 | | }; |
2092 | | |
2093 | | //! ManualFlashOutput, tag 0x0029 |
2094 | | [[maybe_unused]] constexpr TagDetails canonCsManualFlashOutput[] = { |
2095 | | {0x0000, N_("n/a")}, {0x0500, N_("Full")}, {0x0502, N_("Medium")}, {0x0504, N_("Low")}, {0x7fff, N_("n/a")}, |
2096 | | }; |
2097 | | |
2098 | | //! SRAWQuality, tag 0x002e |
2099 | | constexpr TagDetails canonCsSRAWQuality[] = { |
2100 | | {0, N_("n/a")}, |
2101 | | {1, N_("sRAW1 (mRAW)")}, |
2102 | | {2, N_("sRAW2 (sRAW)")}, |
2103 | | }; |
2104 | | |
2105 | | // Canon Camera Settings Tag Info |
2106 | | constexpr TagInfo CanonMakerNote::tagInfoCs_[] = { |
2107 | | {0x0001, "Macro", N_("Macro"), N_("Macro mode"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2108 | | EXV_PRINT_TAG(canonCsMacro)}, |
2109 | | {0x0002, "Selftimer", N_("Selftimer"), N_("Self timer"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2110 | | printCs0x0002}, |
2111 | | {0x0003, "Quality", N_("Quality"), N_("Quality"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2112 | | EXV_PRINT_TAG(canonCsQuality)}, |
2113 | | {0x0004, "FlashMode", N_("Flash Mode"), N_("Flash mode setting"), IfdId::canonCsId, SectionId::makerTags, |
2114 | | signedShort, 1, EXV_PRINT_TAG(canonCsFlashMode)}, |
2115 | | {0x0005, "DriveMode", N_("Drive Mode"), N_("Drive mode setting"), IfdId::canonCsId, SectionId::makerTags, |
2116 | | signedShort, 1, EXV_PRINT_TAG(canonCsDriveMode)}, |
2117 | | {0x0006, "0x0006", "0x0006", N_("Unknown"), IfdId::canonCsId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2118 | | {0x0007, "FocusMode", N_("Focus Mode"), N_("Focus mode setting"), IfdId::canonCsId, SectionId::makerTags, |
2119 | | signedShort, 1, EXV_PRINT_TAG(canonCsFocusMode)}, |
2120 | | {0x0008, "0x0008", "0x0008", N_("Unknown"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, printValue}, |
2121 | | {0x0009, "RecordMode", "RecordMode", N_("Record Mode"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2122 | | EXV_PRINT_TAG(canonCsRecordMode)}, |
2123 | | {0x000a, "ImageSize", N_("Image Size"), N_("Image size"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2124 | | EXV_PRINT_TAG(canonCsImageSize)}, |
2125 | | {0x000b, "EasyMode", N_("Easy Mode"), N_("Easy shooting mode"), IfdId::canonCsId, SectionId::makerTags, signedShort, |
2126 | | 1, EXV_PRINT_TAG(canonCsEasyMode)}, |
2127 | | {0x000c, "DigitalZoom", N_("Digital Zoom"), N_("Digital zoom"), IfdId::canonCsId, SectionId::makerTags, signedShort, |
2128 | | 1, EXV_PRINT_TAG(canonCsDigitalZoom)}, |
2129 | | {0x000d, "Contrast", N_("Contrast"), N_("Contrast setting"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2130 | | EXV_PRINT_TAG(canonCsLnh)}, |
2131 | | {0x000e, "Saturation", N_("Saturation"), N_("Saturation setting"), IfdId::canonCsId, SectionId::makerTags, |
2132 | | signedShort, 1, EXV_PRINT_TAG(canonCsLnh)}, |
2133 | | {0x000f, "Sharpness", N_("Sharpness"), N_("Sharpness setting"), IfdId::canonCsId, SectionId::makerTags, signedShort, |
2134 | | 1, EXV_PRINT_TAG(canonCsLnh)}, |
2135 | | {0x0010, "ISOSpeed", N_("ISO Speed Mode"), N_("ISO speed setting"), IfdId::canonCsId, SectionId::makerTags, |
2136 | | signedShort, 1, EXV_PRINT_TAG(canonCsISOSpeed)}, |
2137 | | {0x0011, "MeteringMode", N_("Metering Mode"), N_("Metering mode setting"), IfdId::canonCsId, SectionId::makerTags, |
2138 | | signedShort, 1, EXV_PRINT_TAG(canonCsMeteringMode)}, |
2139 | | {0x0012, "FocusType", N_("Focus Type"), N_("Focus type setting"), IfdId::canonCsId, SectionId::makerTags, |
2140 | | signedShort, 1, EXV_PRINT_TAG(canonCsFocusType)}, |
2141 | | {0x0013, "AFPoint", N_("AF Point"), N_("AF point selected"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2142 | | EXV_PRINT_TAG(canonCsAfPoint)}, |
2143 | | {0x0014, "ExposureProgram", N_("Exposure Program"), N_("Exposure mode setting"), IfdId::canonCsId, |
2144 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonCsExposureProgram)}, |
2145 | | {0x0015, "0x0015", "0x0015", N_("Unknown"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, printValue}, |
2146 | | {0x0016, "LensType", N_("Lens Type"), N_("Lens type"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2147 | | printCsLensType}, |
2148 | | {0x0017, "Lens", N_("Lens"), |
2149 | | N_("'long' and 'short' focal length of lens (in 'focal units') and 'focal units' per mm"), IfdId::canonCsId, |
2150 | | SectionId::makerTags, unsignedShort, 3, printCsLens}, |
2151 | | {0x0018, "ShortFocal", N_("Short Focal"), N_("Short focal"), IfdId::canonCsId, SectionId::makerTags, unsignedShort, |
2152 | | 1, printValue}, |
2153 | | {0x0019, "FocalUnits", N_("Focal Units"), N_("Focal units"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2154 | | printValue}, |
2155 | | {0x001a, "MaxAperture", N_("Max Aperture"), N_("Max aperture"), IfdId::canonCsId, SectionId::makerTags, signedShort, |
2156 | | 1, printSi0x0015}, |
2157 | | {0x001b, "MinAperture", N_("Min Aperture"), N_("Min aperture"), IfdId::canonCsId, SectionId::makerTags, signedShort, |
2158 | | 1, printSi0x0015}, |
2159 | | {0x001c, "FlashActivity", N_("Flash Activity"), N_("Flash activity"), IfdId::canonCsId, SectionId::makerTags, |
2160 | | signedShort, 1, EXV_PRINT_TAG(canonCsFlashActivity)}, |
2161 | | {0x001d, "FlashDetails", N_("Flash Details"), N_("Flash details"), IfdId::canonCsId, SectionId::makerTags, |
2162 | | signedShort, 1, EXV_PRINT_TAG_BITMASK(canonCsFlashDetails)}, |
2163 | | {0x001e, "0x001e", "0x001e", N_("Unknown"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, printValue}, |
2164 | | {0x001f, "0x001f", "0x001f", N_("Unknown"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, printValue}, |
2165 | | {0x0020, "FocusContinuous", N_("Focus Continuous"), N_("Focus continuous setting"), IfdId::canonCsId, |
2166 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonCsFocusContinuous)}, |
2167 | | {0x0021, "AESetting", N_("AESetting"), N_("AE setting"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2168 | | EXV_PRINT_TAG(canonCsAESetting)}, |
2169 | | {0x0022, "ImageStabilization", N_("Image Stabilization"), N_("Image stabilization"), IfdId::canonCsId, |
2170 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonCsImageStabilization)}, |
2171 | | {0x0023, "DisplayAperture", N_("Display Aperture"), N_("Display aperture"), IfdId::canonCsId, SectionId::makerTags, |
2172 | | signedShort, 1, printValue}, |
2173 | | {0x0024, "ZoomSourceWidth", N_("Zoom Source Width"), N_("Zoom source width"), IfdId::canonCsId, |
2174 | | SectionId::makerTags, signedShort, 1, printValue}, |
2175 | | {0x0025, "ZoomTargetWidth", N_("Zoom Target Width"), N_("Zoom target width"), IfdId::canonCsId, |
2176 | | SectionId::makerTags, signedShort, 1, printValue}, |
2177 | | {0x0026, "0x0026", "0x0026", N_("Unknown"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, printValue}, |
2178 | | {0x0027, "SpotMeteringMode", N_("Spot Metering Mode"), N_("Spot metering mode"), IfdId::canonCsId, |
2179 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonCsSpotMeteringMode)}, |
2180 | | {0x0028, "PhotoEffect", N_("Photo Effect"), N_("Photo effect"), IfdId::canonCsId, SectionId::makerTags, signedShort, |
2181 | | 1, EXV_PRINT_TAG(canonCsPhotoEffect)}, |
2182 | | {0x0029, "ManualFlashOutput", N_("Manual Flash Output"), N_("Manual flash output"), IfdId::canonCsId, |
2183 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonCsSRAWQuality)}, |
2184 | | {0x002a, "ColorTone", N_("Color Tone"), N_("Color tone"), IfdId::canonCsId, SectionId::makerTags, signedShort, 1, |
2185 | | printValue}, |
2186 | | {0x002e, "SRAWQuality", N_("SRAW Quality Tone"), N_("SRAW quality"), IfdId::canonCsId, SectionId::makerTags, |
2187 | | signedShort, 1, EXV_PRINT_TAG(canonCsSRAWQuality)}, |
2188 | | // End of list marker |
2189 | | {0xffff, "(UnknownCanonCsTag)", "(UnknownCanonCsTag)", N_("Unknown Canon Camera Settings 1 tag"), IfdId::canonCsId, |
2190 | | SectionId::makerTags, signedShort, 1, printValue}, |
2191 | | }; |
2192 | | |
2193 | | //! AFPointUsed, tag 0x000e |
2194 | | constexpr TagDetailsBitmask canonSiAFPointUsed[] = { |
2195 | | {0x0004, N_("left")}, |
2196 | | {0x0002, N_("center")}, |
2197 | | {0x0001, N_("right")}, |
2198 | | }; |
2199 | | |
2200 | | //! FlashBias, tag 0x000f |
2201 | | constexpr TagDetails canonSiFlashBias[] = { |
2202 | | {0xffc0, "-2 EV"}, {0xffcc, "-1.67 EV"}, {0xffd0, "-1.50 EV"}, {0xffd4, "-1.33 EV"}, {0xffe0, "-1 EV"}, |
2203 | | {0xffec, "-0.67 EV"}, {0xfff0, "-0.50 EV"}, {0xfff4, "-0.33 EV"}, {0x0000, "0 EV"}, {0x000c, "0.33 EV"}, |
2204 | | {0x0010, "0.50 EV"}, {0x0014, "0.67 EV"}, {0x0020, "1 EV"}, {0x002c, "1.33 EV"}, {0x0030, "1.50 EV"}, |
2205 | | {0x0034, "1.67 EV"}, {0x0040, "2 EV"}, |
2206 | | }; |
2207 | | |
2208 | | constexpr TagDetails cameraType[] = { |
2209 | | {0, "n/a"}, {248, "EOS High-end"}, {250, "Compact"}, {252, "EOS Mid-range"}, {255, "DV Camera"}, |
2210 | | }; |
2211 | | |
2212 | | constexpr TagDetails autoExposureBracketing[] = { |
2213 | | {65535, "On"}, {0, "Off"}, {1, "On (shot 1)"}, {2, "On (shot 2)"}, {3, "On (shot 3)"}, |
2214 | | }; |
2215 | | |
2216 | | constexpr TagDetails slowShutter[] = { |
2217 | | {65535, "n/a"}, {0, "Off"}, {1, "Night Scene"}, {2, "On"}, {3, "None"}, |
2218 | | }; |
2219 | | |
2220 | | constexpr TagDetails autoRotate[] = { |
2221 | | {-1, "n/a"}, {0, "None"}, {1, "Rotate 90 CW"}, {2, "Rotate 180"}, {3, "Rotate 270 CW"}, |
2222 | | }; |
2223 | | |
2224 | | constexpr TagDetails ndRotate[] = { |
2225 | | {65535, "n/a"}, |
2226 | | {0, "Off"}, |
2227 | | {1, "On"}, |
2228 | | }; |
2229 | | |
2230 | | constexpr TagDetails selfTimer2[] = { |
2231 | | {65535, "n/a"}, |
2232 | | {0, "Selftimer 2s"}, |
2233 | | {1, "Selftimer 10s"}, |
2234 | | }; |
2235 | | |
2236 | | // Canon Shot Info Tag |
2237 | | constexpr TagInfo CanonMakerNote::tagInfoSi_[] = { |
2238 | | {0x0001, "AutoISO", N_("AutoISO"), N_("AutoISO"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, 1, |
2239 | | printSi0x0001}, |
2240 | | {0x0002, "ISOSpeed", N_("ISO Speed Used"), N_("ISO speed used"), IfdId::canonSiId, SectionId::makerTags, |
2241 | | unsignedShort, 1, printSi0x0002}, |
2242 | | {0x0003, "MeasuredEV", N_("Measured EV"), N_("Measured EV"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, |
2243 | | 1, printSi0x0003}, |
2244 | | {0x0004, "TargetAperture", N_("Target Aperture"), N_("Target Aperture"), IfdId::canonSiId, SectionId::makerTags, |
2245 | | unsignedShort, 1, printSi0x0015}, |
2246 | | {0x0005, "TargetShutterSpeed", N_("Target Shutter Speed"), N_("Target shutter speed"), IfdId::canonSiId, |
2247 | | SectionId::makerTags, unsignedShort, 1, printSi0x0016}, |
2248 | | {0x0006, "ExposureCompensation", "Exposure Compensation", N_("Exposure Compensation"), IfdId::canonSiId, |
2249 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2250 | | {0x0007, "WhiteBalance", N_("White Balance"), N_("White balance setting"), IfdId::canonSiId, SectionId::makerTags, |
2251 | | unsignedShort, 1, EXV_PRINT_TAG(canonSiWhiteBalance)}, |
2252 | | {0x0008, "SlowShutter", N_("Slow Shutter"), N_("Slow shutter"), IfdId::canonSiId, SectionId::makerTags, |
2253 | | unsignedShort, 1, EXV_PRINT_TAG(slowShutter)}, |
2254 | | {0x0009, "Sequence", N_("Sequence"), N_("Sequence number (if in a continuous burst)"), IfdId::canonSiId, |
2255 | | SectionId::makerTags, unsignedShort, 1, printSi0x0009}, |
2256 | | {0x000a, "OpticalZoomCode", "Optical Zoom Code", N_("Optical Zoom Code"), IfdId::canonSiId, SectionId::makerTags, |
2257 | | unsignedShort, 1, printValue}, |
2258 | | {0x000b, "0x000b", "0x000b", N_("Unknown"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2259 | | {0x000c, "CameraTemperature", N_("Camera Temperature"), N_("Camera temperature"), IfdId::canonSiId, |
2260 | | SectionId::makerTags, signedShort, 1, printSi0x000c}, |
2261 | | {0x000d, "FlashGuideNumber", N_("Flash Guide Number"), N_("Flash guide number"), IfdId::canonSiId, |
2262 | | SectionId::makerTags, unsignedShort, 1, printSi0x000d}, |
2263 | | {0x000e, "AFPointUsed", N_("AF Point Used"), N_("AF point used"), IfdId::canonSiId, SectionId::makerTags, |
2264 | | unsignedShort, 1, printSi0x000e}, |
2265 | | {0x000f, "FlashBias", N_("Flash Bias"), N_("Flash bias"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, 1, |
2266 | | EXV_PRINT_TAG(canonSiFlashBias)}, |
2267 | | {0x0010, "AutoExposureBracketing", N_("Auto Exposure Bracketing"), N_("Auto exposure bracketing"), IfdId::canonSiId, |
2268 | | SectionId::makerTags, unsignedShort, 1, EXV_PRINT_TAG(autoExposureBracketing)}, |
2269 | | {0x0011, "AEBBracketValue", "AEB Bracket Value", N_("AEB Bracket Value"), IfdId::canonSiId, SectionId::makerTags, |
2270 | | unsignedShort, 1, printValue}, |
2271 | | {0x0012, "ControlMode", "Control Mode", N_("Control Mode"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, |
2272 | | 1, printValue}, |
2273 | | {0x0013, "SubjectDistance", N_("Subject Distance"), N_("Subject distance"), IfdId::canonSiId, SectionId::makerTags, |
2274 | | unsignedShort, 1, printSi0x0013}, |
2275 | | {0x0014, "0x0014", "0x0014", N_("Unknown"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2276 | | {0x0015, "ApertureValue", N_("Aperture Value"), N_("Aperture"), IfdId::canonSiId, SectionId::makerTags, |
2277 | | unsignedShort, 1, printSi0x0015}, |
2278 | | {0x0016, "ShutterSpeedValue", N_("Shutter Speed Value"), N_("Shutter speed"), IfdId::canonSiId, |
2279 | | SectionId::makerTags, unsignedShort, 1, printSi0x0016}, |
2280 | | {0x0017, "MeasuredEV2", N_("Measured EV 2"), N_("Measured EV 2"), IfdId::canonSiId, SectionId::makerTags, |
2281 | | unsignedShort, 1, printSi0x0017}, |
2282 | | {0x0018, "BulbDuration", N_("Bulb Duration"), N_("Bulb duration"), IfdId::canonSiId, SectionId::makerTags, |
2283 | | unsignedShort, 1, printSi0x0018}, |
2284 | | {0x0019, "0x0019", "0x0019", N_("Unknown"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2285 | | {0x001a, "CameraType", N_("Camera Type"), N_("Camera type"), IfdId::canonSiId, SectionId::makerTags, unsignedShort, |
2286 | | 1, EXV_PRINT_TAG(cameraType)}, |
2287 | | {0x001b, "AutoRotate", N_("Auto Rotate"), N_("Auto rotate"), IfdId::canonSiId, SectionId::makerTags, signedShort, 1, |
2288 | | EXV_PRINT_TAG(autoRotate)}, |
2289 | | {0x001c, "NDFilter", N_("ND Filter"), N_("ND filter"), IfdId::canonSiId, SectionId::makerTags, signedShort, 1, |
2290 | | EXV_PRINT_TAG(ndRotate)}, |
2291 | | {0x001d, "SelfTimer2", N_("Self Timer 2"), N_("Self timer2"), IfdId::canonSiId, SectionId::makerTags, signedShort, |
2292 | | 1, EXV_PRINT_TAG(selfTimer2)}, |
2293 | | {0x0021, "FlashOutput", N_("Flash Output"), N_("Flash output"), IfdId::canonSiId, SectionId::makerTags, signedShort, |
2294 | | 1, printValue}, |
2295 | | // End of list marker |
2296 | | {0xffff, "(UnknownCanonCsTag)", "(UnknownCanonCsTag)", N_("Unknown Canon Camera Settings 1 tag"), IfdId::canonCsId, |
2297 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2298 | | }; |
2299 | | |
2300 | | //! PanoramaDirection, tag 0x0005 |
2301 | | constexpr TagDetails canonPaDirection[] = { |
2302 | | {0, N_("Left to right")}, {1, N_("Right to left")}, {2, N_("Bottom to top")}, |
2303 | | {3, N_("Top to bottom")}, {4, N_("2x2 matrix (Clockwise)")}, |
2304 | | }; |
2305 | | |
2306 | | // Canon Panorama Info |
2307 | | constexpr TagInfo CanonMakerNote::tagInfoPa_[] = { |
2308 | | {0x0002, "PanoramaFrame", N_("Panorama Frame"), N_("Panorama frame number"), IfdId::canonPaId, SectionId::makerTags, |
2309 | | unsignedShort, 1, printValue}, |
2310 | | {0x0005, "PanoramaDirection", N_("Panorama Direction"), N_("Panorama direction"), IfdId::canonPaId, |
2311 | | SectionId::makerTags, unsignedShort, 1, EXV_PRINT_TAG(canonPaDirection)}, |
2312 | | // End of list marker |
2313 | | {0xffff, "(UnknownCanonCs2Tag)", "(UnknownCanonCs2Tag)", N_("Unknown Canon Panorama tag"), IfdId::canonPaId, |
2314 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2315 | | }; |
2316 | | |
2317 | | // Canon Custom Function Tag Info |
2318 | | constexpr TagInfo CanonMakerNote::tagInfoCf_[] = { |
2319 | | {0x0001, "NoiseReduction", N_("Noise Reduction"), N_("Long exposure noise reduction"), IfdId::canonCfId, |
2320 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2321 | | {0x0002, "ShutterAeLock", N_("Shutter Ae Lock"), N_("Shutter/AE lock buttons"), IfdId::canonCfId, |
2322 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2323 | | {0x0003, "MirrorLockup", N_("Mirror Lockup"), N_("Mirror lockup"), IfdId::canonCfId, SectionId::makerTags, |
2324 | | unsignedShort, 1, printValue}, |
2325 | | {0x0004, "ExposureLevelIncrements", N_("Exposure Level Increments"), N_("Tv/Av and exposure level"), |
2326 | | IfdId::canonCfId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2327 | | {0x0005, "AFAssist", N_("AF Assist"), N_("AF assist light"), IfdId::canonCfId, SectionId::makerTags, unsignedShort, |
2328 | | 1, printValue}, |
2329 | | {0x0006, "FlashSyncSpeedAv", N_("Flash Sync Speed Av"), N_("Shutter speed in Av mode"), IfdId::canonCfId, |
2330 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2331 | | {0x0007, "AEBSequence", N_("AEB Sequence"), N_("AEB sequence/auto cancellation"), IfdId::canonCfId, |
2332 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2333 | | {0x0008, "ShutterCurtainSync", N_("Shutter Curtain Sync"), N_("Shutter curtain sync"), IfdId::canonCfId, |
2334 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2335 | | {0x0009, "LensAFStopButton", N_("Lens AF Stop Button"), N_("Lens AF stop button Fn. Switch"), IfdId::canonCfId, |
2336 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2337 | | {0x000a, "FillFlashAutoReduction", N_("Fill Flash Auto Reduction"), N_("Auto reduction of fill flash"), |
2338 | | IfdId::canonCfId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2339 | | {0x000b, "MenuButtonReturn", N_("Menu Button Return"), N_("Menu button return position"), IfdId::canonCfId, |
2340 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2341 | | {0x000c, "SetButtonFunction", N_("Set Button Function"), N_("SET button func. when shooting"), IfdId::canonCfId, |
2342 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2343 | | {0x000d, "SensorCleaning", N_("Sensor Cleaning"), N_("Sensor cleaning"), IfdId::canonCfId, SectionId::makerTags, |
2344 | | unsignedShort, 1, printValue}, |
2345 | | {0x000e, "SuperimposedDisplay", N_("Superimposed Display"), N_("Superimposed display"), IfdId::canonCfId, |
2346 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2347 | | {0x000f, "ShutterReleaseNoCFCard", N_("Shutter Release No CF Card"), N_("Shutter Release W/O CF Card"), |
2348 | | IfdId::canonCfId, SectionId::makerTags, unsignedShort, 1, printValue}, |
2349 | | // End of list marker |
2350 | | {0xffff, "(UnknownCanonCfTag)", "(UnknownCanonCfTag)", N_("Unknown Canon Custom Function tag"), IfdId::canonCfId, |
2351 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2352 | | }; |
2353 | | |
2354 | | //! AFPointsUsed, tag 0x0016 |
2355 | | constexpr TagDetailsBitmask canonPiAFPointsUsed[] = { |
2356 | | {0x01, N_("right")}, {0x02, N_("mid-right")}, {0x04, N_("bottom")}, {0x08, N_("center")}, |
2357 | | {0x10, N_("top")}, {0x20, N_("mid-left")}, {0x40, N_("left")}, |
2358 | | }; |
2359 | | |
2360 | | //! AFPointsUsed20D, tag 0x001a |
2361 | | constexpr TagDetailsBitmask canonPiAFPointsUsed20D[] = { |
2362 | | {0x001, N_("top")}, {0x002, N_("upper-left")}, {0x004, N_("upper-right")}, |
2363 | | {0x008, N_("left")}, {0x010, N_("center")}, {0x020, N_("right")}, |
2364 | | {0x040, N_("lower-left")}, {0x080, N_("lower-right")}, {0x100, N_("bottom")}, |
2365 | | }; |
2366 | | |
2367 | | // Canon Picture Info Tag |
2368 | | constexpr TagInfo CanonMakerNote::tagInfoPi_[] = { |
2369 | | {0x0002, "ImageWidth", N_("Image Width"), N_("Image width"), IfdId::canonPiId, SectionId::makerTags, unsignedShort, |
2370 | | 1, printValue}, |
2371 | | {0x0003, "ImageHeight", N_("Image Height"), N_("Image height"), IfdId::canonPiId, SectionId::makerTags, |
2372 | | unsignedShort, 1, printValue}, |
2373 | | {0x0004, "ImageWidthAsShot", N_("Image Width As Shot"), N_("Image width (as shot)"), IfdId::canonPiId, |
2374 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2375 | | {0x0005, "ImageHeightAsShot", N_("Image Height As Shot"), N_("Image height (as shot)"), IfdId::canonPiId, |
2376 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2377 | | {0x0016, "AFPointsUsed", N_("AF Points Used"), N_("AF points used"), IfdId::canonPiId, SectionId::makerTags, |
2378 | | unsignedShort, 1, EXV_PRINT_TAG_BITMASK(canonPiAFPointsUsed)}, |
2379 | | {0x001a, "AFPointsUsed20D", N_("AF Points Used 20D"), N_("AF points used (20D)"), IfdId::canonPiId, |
2380 | | SectionId::makerTags, unsignedShort, 1, EXV_PRINT_TAG_BITMASK(canonPiAFPointsUsed20D)}, |
2381 | | // End of list marker |
2382 | | {0xffff, "(UnknownCanonPiTag)", "(UnknownCanonPiTag)", N_("Unknown Canon Picture Info tag"), IfdId::canonPiId, |
2383 | | SectionId::makerTags, unsignedShort, 1, printValue}, |
2384 | | }; |
2385 | | |
2386 | | //! BracketMode, tag 0x0003 |
2387 | | constexpr TagDetails canonBracketMode[] = { |
2388 | | {0, N_("Off")}, {1, N_("AEB")}, {2, N_("FEB")}, {3, N_("ISO")}, {4, N_("WB")}, |
2389 | | }; |
2390 | | |
2391 | | //! RawJpgSize, tag 0x0007 |
2392 | | constexpr TagDetails canonRawJpgSize[] = { |
2393 | | {-1, N_("n/a")}, |
2394 | | {0, N_("Large")}, |
2395 | | {1, N_("Medium")}, |
2396 | | {2, N_("Small")}, |
2397 | | {5, N_("Medium 1")}, |
2398 | | {6, N_("Medium 2")}, |
2399 | | {7, N_("Medium 3")}, |
2400 | | {8, N_("Postcard")}, |
2401 | | {9, N_("Widescreen")}, |
2402 | | {10, N_("Medium Widescreen")}, |
2403 | | {14, N_("Small 1")}, |
2404 | | {15, N_("Small 2")}, |
2405 | | {16, N_("Small 3")}, |
2406 | | {128, N_("640x480 Movie")}, |
2407 | | {129, N_("Medium Movie")}, |
2408 | | {130, N_("Small Movie")}, |
2409 | | {137, N_("1280x720 Movie")}, |
2410 | | {142, N_("1920x1080 Movie")}, |
2411 | | {143, N_("4096x2160 Movie")}, |
2412 | | }; |
2413 | | |
2414 | | //! NoiseReduction, tag 0x0008 |
2415 | | constexpr TagDetails canonNoiseReduction[] = { |
2416 | | {0, N_("Off")}, {1, N_("On 1")}, {2, N_("On 2")}, {3, N_("On")}, {4, N_("Auto")}, |
2417 | | }; |
2418 | | |
2419 | | //! WBBracketMode, tag 0x0009 |
2420 | | constexpr TagDetails canonWBBracketMode[] = { |
2421 | | {0, N_("Off")}, |
2422 | | {1, N_("On (shift AB)")}, |
2423 | | {2, N_("On (shift GM)")}, |
2424 | | }; |
2425 | | |
2426 | | //! FilterEffect, tag 0x000e |
2427 | | constexpr TagDetails canonFilterEffect[] = { |
2428 | | {0, N_("None")}, {1, N_("Yellow")}, {2, N_("Orange")}, {3, N_("Red")}, {4, N_("Green")}, |
2429 | | }; |
2430 | | |
2431 | | //! ToningEffect, tag 0x000e |
2432 | | constexpr TagDetails canonToningEffect[] = { |
2433 | | {0, N_("None")}, {1, N_("Sepia")}, {2, N_("Blue")}, {3, N_("Purple")}, {4, N_("Green")}, |
2434 | | }; |
2435 | | |
2436 | | //! ShutterMode, tag 0x0017 |
2437 | | constexpr TagDetails canonShutterMode[] = { |
2438 | | {0, N_("Mechanical")}, |
2439 | | {1, N_("Electronic First Curtain")}, |
2440 | | {2, N_("Electronic")}, |
2441 | | }; |
2442 | | |
2443 | | //! RFLensType, tag 0x003D |
2444 | | // from https://github.com/exiftool/exiftool/blob/13.59/lib/Image/ExifTool/Canon.pm#L7060 |
2445 | | constexpr TagDetails canonRFLensType[] = { |
2446 | | {0, N_("n/a")}, |
2447 | | {257, "Canon RF 50mm F1.2 L USM"}, |
2448 | | {258, "Canon RF 24-105mm F4 L IS USM"}, |
2449 | | {259, "Canon RF 28-70mm F2 L USM"}, |
2450 | | {260, "Canon RF 35mm F1.8 MACRO IS STM"}, |
2451 | | {261, "Canon RF 85mm F1.2 L USM"}, |
2452 | | {262, "Canon RF 85mm F1.2 L USM DS"}, |
2453 | | {263, "Canon RF 24-70mm F2.8 L IS USM"}, |
2454 | | {264, "Canon RF 15-35mm F2.8 L IS USM"}, |
2455 | | {265, "Canon RF 24-240mm F4-6.3 IS USM"}, |
2456 | | {266, "Canon RF 70-200mm F2.8 L IS USM"}, |
2457 | | {267, "Canon RF 85mm F2 MACRO IS STM"}, |
2458 | | {268, "Canon RF 600mm F11 IS STM"}, |
2459 | | {269, "Canon RF 600mm F11 IS STM + RF1.4x"}, |
2460 | | {270, "Canon RF 600mm F11 IS STM + RF2x"}, |
2461 | | {271, "Canon RF 800mm F11 IS STM"}, |
2462 | | {272, "Canon RF 800mm F11 IS STM + RF1.4x"}, |
2463 | | {273, "Canon RF 800mm F11 IS STM + RF2x"}, |
2464 | | {274, "Canon RF 24-105mm F4-7.1 IS STM"}, |
2465 | | {275, "Canon RF 100-500mm F4.5-7.1 L IS USM"}, |
2466 | | {276, "Canon RF 100-500mm F4.5-7.1 L IS USM + RF1.4x"}, |
2467 | | {277, "Canon RF 100-500mm F4.5-7.1 L IS USM + RF2x"}, |
2468 | | {278, "Canon RF 70-200mm F4 L IS USM"}, |
2469 | | {279, "Canon RF 100mm F2.8 L MACRO IS USM"}, |
2470 | | {280, "Canon RF 50mm F1.8 STM"}, |
2471 | | {281, "Canon RF 14-35mm F4 L IS USM"}, |
2472 | | {282, "Canon RF-S 18-45mm F4.5-6.3 IS STM"}, |
2473 | | {283, "Canon RF 100-400mm F5.6-8 IS USM"}, |
2474 | | {284, "Canon RF 100-400mm F5.6-8 IS USM + RF1.4x"}, |
2475 | | {285, "Canon RF 100-400mm F5.6-8 IS USM + RF2x"}, |
2476 | | {286, "Canon RF-S 18-150mm F3.5-6.3 IS STM"}, |
2477 | | {287, "Canon RF 24mm F1.8 MACRO IS STM"}, |
2478 | | {288, "Canon RF 16mm F2.8 STM"}, |
2479 | | {289, "Canon RF 400mm F2.8 L IS USM"}, |
2480 | | {290, "Canon RF 400mm F2.8 L IS USM + RF1.4x"}, |
2481 | | {291, "Canon RF 400mm F2.8 L IS USM + RF2x"}, |
2482 | | {292, "Canon RF 600mm F4 L IS USM"}, |
2483 | | {293, "Canon RF 600mm F4 L IS USM + RF1.4x"}, |
2484 | | {294, "Canon RF 600mm F4 L IS USM + RF2x"}, |
2485 | | {295, "Canon RF 800mm F5.6 L IS USM"}, |
2486 | | {296, "Canon RF 800mm F5.6 L IS USM + RF1.4x"}, |
2487 | | {297, "Canon RF 800mm F5.6 L IS USM + RF2x"}, |
2488 | | {298, "Canon RF 1200mm F8 L IS USM"}, |
2489 | | {299, "Canon RF 1200mm F8 L IS USM + RF1.4x"}, |
2490 | | {300, "Canon RF 1200mm F8 L IS USM + RF2x"}, |
2491 | | {301, "Canon RF 5.2mm F2.8 L Dual Fisheye 3D VR"}, |
2492 | | {302, "Canon RF 15-30mm F4.5-6.3 IS STM"}, |
2493 | | {303, "Canon RF 135mm F1.8 L IS USM"}, |
2494 | | {304, "Canon RF 24-50mm F4.5-6.3 IS STM"}, |
2495 | | {305, "Canon RF-S 55-210mm F5-7.1 IS STM"}, |
2496 | | {306, "Canon RF 100-300mm F2.8 L IS USM"}, |
2497 | | {307, "Canon RF 100-300mm F2.8 L IS USM + RF1.4x"}, |
2498 | | {308, "Canon RF 100-300mm F2.8 L IS USM + RF2x"}, |
2499 | | {309, "Canon RF 200-800mm F6.3-9 IS USM"}, |
2500 | | {310, "Canon RF 200-800mm F6.3-9 IS USM + RF1.4x"}, |
2501 | | {311, "Canon RF 200-800mm F6.3-9 IS USM + RF2x"}, |
2502 | | {312, "Canon RF 10-20mm F4 L IS STM"}, |
2503 | | {313, "Canon RF 28mm F2.8 STM"}, |
2504 | | {314, "Canon RF 24-105mm F2.8 L IS USM Z"}, |
2505 | | {315, "Canon RF-S 10-18mm F4.5-6.3 IS STM"}, |
2506 | | {316, "Canon RF 35mm F1.4 L VCM"}, |
2507 | | {317, "Canon RF-S 3.9mm F3.5 STM Dual Fisheye"}, |
2508 | | {318, "Canon RF 28-70mm F2.8 IS STM"}, |
2509 | | {319, "Canon RF 70-200mm F2.8 L IS USM Z"}, |
2510 | | {320, "Canon RF 70-200mm F2.8 L IS USM Z + RF1.4x"}, |
2511 | | {321, "Canon RF 70-200mm F2.8 L IS USM Z + RF2x"}, |
2512 | | {323, "Canon RF 16-28mm F2.8 IS STM"}, |
2513 | | {324, "Canon RF-S 14-30mm F4-6.3 IS STM PZ"}, |
2514 | | {325, "Canon RF 50mm F1.4 L VCM"}, |
2515 | | {326, "Canon RF 24mm F1.4 L VCM"}, |
2516 | | {327, "Canon RF 20mm F1.4 L VCM"}, |
2517 | | {328, "Canon RF 85mm F1.4 L VCM"}, |
2518 | | {329, "Canon RF 20-50mm F4 L IS USM PZ"}, |
2519 | | {330, "Canon RF 45mm F1.2 STM"}, |
2520 | | {331, "Canon RF 7-14mm F2.8-3.5 L Fisheye STM"}, |
2521 | | {332, "Canon RF 14mm F1.4 L VCM"}, |
2522 | | }; |
2523 | | |
2524 | | // Canon File Info Tag |
2525 | | constexpr TagInfo CanonMakerNote::tagInfoFi_[] = { |
2526 | | {0x0001, "FileNumber", N_("File Number"), N_("File Number"), IfdId::canonFiId, SectionId::makerTags, unsignedLong, |
2527 | | 1, printFiFileNumber}, |
2528 | | {0x0003, "BracketMode", N_("Bracket Mode"), N_("Bracket Mode"), IfdId::canonFiId, SectionId::makerTags, signedShort, |
2529 | | 1, EXV_PRINT_TAG(canonBracketMode)}, |
2530 | | {0x0004, "BracketValue", N_("Bracket Value"), N_("Bracket Value"), IfdId::canonFiId, SectionId::makerTags, |
2531 | | signedShort, 1, printValue}, |
2532 | | {0x0005, "BracketShotNumber", N_("Bracket Shot Number"), N_("Bracket Shot Number"), IfdId::canonFiId, |
2533 | | SectionId::makerTags, signedShort, 1, printValue}, |
2534 | | {0x0006, "RawJpgQuality", N_("Raw Jpg Quality"), N_("Raw Jpg Quality"), IfdId::canonFiId, SectionId::makerTags, |
2535 | | signedShort, 1, EXV_PRINT_TAG(canonCsQuality)}, |
2536 | | {0x0007, "RawJpgSize", N_("Raw Jpg Size"), N_("Raw Jpg Size"), IfdId::canonFiId, SectionId::makerTags, signedShort, |
2537 | | 1, EXV_PRINT_TAG(canonRawJpgSize)}, |
2538 | | {0x0008, "NoiseReduction", N_("Noise Reduction"), N_("Noise Reduction"), IfdId::canonFiId, SectionId::makerTags, |
2539 | | signedShort, 1, EXV_PRINT_TAG(canonNoiseReduction)}, |
2540 | | {0x0009, "WBBracketMode", N_("WB Bracket Mode"), N_("WB Bracket Mode"), IfdId::canonFiId, SectionId::makerTags, |
2541 | | signedShort, 1, EXV_PRINT_TAG(canonWBBracketMode)}, |
2542 | | {0x000c, "WBBracketValueAB", N_("WB Bracket Value AB"), N_("WB Bracket Value AB"), IfdId::canonFiId, |
2543 | | SectionId::makerTags, signedShort, 1, printValue}, |
2544 | | {0x000d, "WBBracketValueGM", N_("WB Bracket Value GM"), N_("WB Bracket Value GM"), IfdId::canonFiId, |
2545 | | SectionId::makerTags, signedShort, 1, printValue}, |
2546 | | {0x000e, "FilterEffect", N_("Filter Effect"), N_("Filter Effect"), IfdId::canonFiId, SectionId::makerTags, |
2547 | | signedShort, 1, EXV_PRINT_TAG(canonFilterEffect)}, |
2548 | | {0x000f, "ToningEffect", N_("Toning Effect"), N_("Toning Effect"), IfdId::canonFiId, SectionId::makerTags, |
2549 | | signedShort, 1, EXV_PRINT_TAG(canonToningEffect)}, |
2550 | | {0x0010, "MacroMagnification", N_("Macro Magnification"), N_("Macro magnification"), IfdId::canonFiId, |
2551 | | SectionId::makerTags, signedShort, 1, printValue}, |
2552 | | {0x0013, "LiveViewShooting", N_("Live View Shooting"), N_("Live view shooting"), IfdId::canonFiId, |
2553 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonOffOn)}, |
2554 | | {0x0014, "FocusDistanceUpper", N_("Focus Distance Upper"), N_("Focus Distance Upper"), IfdId::canonFiId, |
2555 | | SectionId::makerTags, unsignedShort, 1, printFiFocusDistance}, |
2556 | | {0x0015, "FocusDistanceLower", N_("Focus Distance Lower"), N_("Focus Distance Lower"), IfdId::canonFiId, |
2557 | | SectionId::makerTags, unsignedShort, 1, printFiFocusDistance}, |
2558 | | {0x0017, "ShutterMode", N_("Shutter Mode"), N_("Shutter mode"), IfdId::canonFiId, SectionId::makerTags, signedShort, |
2559 | | 1, EXV_PRINT_TAG(canonShutterMode)}, |
2560 | | {0x0019, "FlashExposureLock", N_("Flash Exposure Lock"), N_("Flash exposure lock"), IfdId::canonFiId, |
2561 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonOffOn)}, |
2562 | | {0x0020, "AntiFlicker", N_("Anti-Flicker"), N_("Anti-flicker"), IfdId::canonFiId, SectionId::makerTags, signedShort, |
2563 | | 1, EXV_PRINT_TAG(canonOffOn)}, |
2564 | | {0x003D, "RFLensType", N_("RF Lens Type"), N_("RF Lens Type"), IfdId::canonFiId, SectionId::makerTags, |
2565 | | unsignedShort, 1, EXV_PRINT_TAG(canonRFLensType)}, |
2566 | | // End of list marker |
2567 | | {0xffff, "(UnknownCanonFiTag)", "(UnknownCanonFiTag)", N_("Unknown Canon File Info tag"), IfdId::canonFiId, |
2568 | | SectionId::makerTags, signedShort, 1, printValue}, |
2569 | | }; |
2570 | | |
2571 | | //! Tone Curve Values |
2572 | | constexpr TagDetails canonToneCurve[] = { |
2573 | | {0, N_("Standard")}, |
2574 | | {1, N_("Manual")}, |
2575 | | {2, N_("Custom")}, |
2576 | | }; |
2577 | | |
2578 | | //! Sharpness Frequency Values |
2579 | | constexpr TagDetails canonSharpnessFrequency[] = { |
2580 | | {0, N_("n/a")}, {1, N_("Lowest")}, {2, N_("Low")}, {3, N_("Standard")}, {4, N_("High")}, {5, N_("Highest")}, |
2581 | | }; |
2582 | | |
2583 | | // Canon Processing Info Tag |
2584 | | constexpr TagInfo CanonMakerNote::tagInfoPr_[] = { |
2585 | | {0x0001, "ToneCurve", N_("ToneCurve"), N_("Tone curve"), IfdId::canonPrId, SectionId::makerTags, signedShort, 1, |
2586 | | EXV_PRINT_TAG(canonToneCurve)}, |
2587 | | {0x0002, "Sharpness", N_("Sharpness"), N_("Sharpness"), IfdId::canonPrId, SectionId::makerTags, signedShort, 1, |
2588 | | printValue}, |
2589 | | {0x0003, "SharpnessFrequency", N_("SharpnessFrequency"), N_("Sharpness frequency"), IfdId::canonPrId, |
2590 | | SectionId::makerTags, signedShort, 1, EXV_PRINT_TAG(canonSharpnessFrequency)}, |
2591 | | {0x0004, "SensorRedLevel", N_("SensorRedLevel"), N_("Sensor red level"), IfdId::canonPrId, SectionId::makerTags, |
2592 | | signedShort, 1, printValue}, |
2593 | | {0x0005, "SensorBlueLevel", N_("SensorBlueLevel"), N_("Sensor blue level"), IfdId::canonPrId, SectionId::makerTags, |
2594 | | signedShort, 1, printValue}, |
2595 | | {0x0006, "WhiteBalanceRed", N_("WhiteBalanceRed"), N_("White balance red"), IfdId::canonPrId, SectionId::makerTags, |
2596 | | signedShort, 1, printValue}, |
2597 | | {0x0007, "WhiteBalanceBlue", N_("WhiteBalanceBlue"), N_("White balance blue"), IfdId::canonPrId, |
2598 | | SectionId::makerTags, signedShort, 1, printValue}, |
2599 | | {0x0008, "WhiteBalance", N_("WhiteBalance"), N_("White balance"), IfdId::canonPrId, SectionId::makerTags, |
2600 | | signedShort, 1, EXV_PRINT_TAG(canonSiWhiteBalance)}, |
2601 | | {0x0009, "ColorTemperature", N_("ColorTemperature"), N_("Color Temperature"), IfdId::canonPrId, |
2602 | | SectionId::makerTags, signedShort, 1, printValue}, |
2603 | | {0x000a, "PictureStyle", N_("PictureStyle"), N_("Picture style"), IfdId::canonPrId, SectionId::makerTags, |
2604 | | signedShort, 1, EXV_PRINT_TAG(canonPictureStyle)}, |
2605 | | {0x000b, "DigitalGain", N_("DigitalGain"), N_("Digital gain"), IfdId::canonPrId, SectionId::makerTags, signedShort, |
2606 | | 1, printValue}, |
2607 | | {0x000c, "WBShiftAB", N_("WBShiftAB"), N_("WBShift AB"), IfdId::canonPrId, SectionId::makerTags, signedShort, 1, |
2608 | | printValue}, |
2609 | | {0x000d, "WBShiftGM", N_("WBShiftGM"), N_("WB Shift GM"), IfdId::canonPrId, SectionId::makerTags, signedShort, 1, |
2610 | | printValue}, |
2611 | | {0xffff, "(UnknownCanonPrTag)", "(UnknownCanonPrTag)", N_("Unknown Canon Processing Info tag"), IfdId::canonPrId, |
2612 | | SectionId::makerTags, signedShort, 1, printValue}, |
2613 | | }; |
2614 | | |
2615 | | //! canonTimeZoneCity - array of cityID/cityName used by Canon |
2616 | | constexpr TagDetails canonTimeZoneCity[] = { |
2617 | | {0x0000, N_("n/a")}, |
2618 | | {0x0001, N_("Chatham Islands")}, |
2619 | | {0x0002, N_("Wellington")}, |
2620 | | {0x0003, N_("Solomon Islands")}, |
2621 | | {0x0004, N_("Sydney")}, |
2622 | | {0x0005, N_("Adelaide")}, |
2623 | | {0x0006, N_("Tokyo")}, |
2624 | | {0x0007, N_("Hong Kong")}, |
2625 | | {0x0008, N_("Bangkok")}, |
2626 | | {0x0009, N_("Yangon")}, |
2627 | | {0x000a, N_("Dhaka")}, |
2628 | | {0x000b, N_("Kathmandu")}, |
2629 | | {0x000c, N_("Delhi")}, |
2630 | | {0x000d, N_("Karachi")}, |
2631 | | {0x000e, N_("Kabul")}, |
2632 | | {0x000f, N_("Dubai")}, |
2633 | | {0x0010, N_("Tehran")}, |
2634 | | {0x0011, N_("Moscow")}, |
2635 | | {0x0012, N_("Cairo")}, |
2636 | | {0x0013, N_("Paris")}, |
2637 | | {0x0014, N_("London")}, |
2638 | | {0x0015, N_("Azores")}, |
2639 | | {0x0016, N_("Fernando de Noronha")}, |
2640 | | {0x0017, N_("Sao Paulo")}, |
2641 | | {0x0018, N_("Newfoundland")}, |
2642 | | {0x0019, N_("Santiago")}, |
2643 | | {0x001a, N_("Caracas")}, |
2644 | | {0x001b, N_("New York")}, |
2645 | | {0x001c, N_("Chicago")}, |
2646 | | {0x001d, N_("Denver")}, |
2647 | | {0x001e, N_("Los Angeles")}, |
2648 | | {0x001f, N_("Anchorage")}, |
2649 | | {0x0020, N_("Honolulu")}, |
2650 | | {0x0021, N_("Samoa")}, |
2651 | | {0x7ffe, N_("(not set)")}, |
2652 | | }; |
2653 | | |
2654 | | // Canon Time Info Tag |
2655 | | constexpr TagInfo CanonMakerNote::tagInfoTi_[] = { |
2656 | | {0x0001, "TimeZone", N_("Time zone offset"), N_("Time zone offset in minutes"), IfdId::canonTiId, |
2657 | | SectionId::makerTags, signedLong, 1, printValue}, |
2658 | | {0x0002, "TimeZoneCity", N_("Time zone city"), N_("Time zone city"), IfdId::canonTiId, SectionId::makerTags, |
2659 | | signedLong, 1, EXV_PRINT_TAG(canonTimeZoneCity)}, |
2660 | | {0x0003, "DaylightSavings", N_("Daylight Savings"), N_("Daylight Saving Time"), IfdId::canonTiId, |
2661 | | SectionId::makerTags, signedLong, 1, printValue}, |
2662 | | {0xffff, "(UnknownCanonTiTag)", "(UnknownCanonTiTag)", N_("Unknown Canon Time Info tag"), IfdId::canonTiId, |
2663 | | SectionId::makerTags, signedLong, 1, printValue}, |
2664 | | }; |
2665 | | |
2666 | 454 | std::ostream& CanonMakerNote::printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata) { |
2667 | 454 | if (!metadata || value.typeId() != unsignedLong || value.count() == 0) { |
2668 | 243 | return os << "(" << value << ")"; |
2669 | 243 | } |
2670 | | |
2671 | 211 | auto pos = metadata->findKey(ExifKey("Exif.Image.Model")); |
2672 | 211 | if (pos == metadata->end()) |
2673 | 181 | return os << "(" << value << ")"; |
2674 | | |
2675 | | // Ported from Exiftool |
2676 | 30 | std::string model = pos->toString(); |
2677 | 30 | if (Internal::contains(model, "20D") || Internal::contains(model, "350D") || |
2678 | 28 | model.substr(model.size() - 8, 8) == "REBEL XT" || Internal::contains(model, "Kiss Digital N")) { |
2679 | 3 | uint32_t val = value.toUint32(); |
2680 | 3 | return os << stringFormat("{}-{:04}", (val & 0xffc0) >> 6, ((val >> 16) & 0xff) + ((val & 0x3f) << 8)); |
2681 | 3 | } |
2682 | 27 | if (Internal::contains(model, "30D") || Internal::contains(model, "400D") || Internal::contains(model, "REBEL XTi") || |
2683 | 24 | Internal::contains(model, "Kiss Digital X") || Internal::contains(model, "K236")) { |
2684 | 3 | uint32_t val = value.toUint32(); |
2685 | 3 | uint32_t dn = (val & 0xffc00) >> 10; |
2686 | 5 | while (dn < 100) |
2687 | 2 | dn += 0x40; |
2688 | 3 | return os << stringFormat("{}-{:04}", dn, ((val & 0x3ff) << 4) + ((val >> 20) & 0x0f)); |
2689 | 3 | } |
2690 | | |
2691 | 24 | return os << "(" << value << ")"; |
2692 | 27 | } |
2693 | | |
2694 | 952 | std::ostream& CanonMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData* metadata) { |
2695 | 952 | if (!metadata || value.count() < 4 || value.typeId() != unsignedShort) { |
2696 | 868 | return os << value; |
2697 | 868 | } |
2698 | | |
2699 | 84 | ExifKey key("Exif.CanonCs.Lens"); |
2700 | 84 | auto pos = metadata->findKey(key); |
2701 | 84 | if (pos != metadata->end() && pos->value().count() >= 3 && pos->value().typeId() == unsignedShort) { |
2702 | 47 | float fu = pos->value().toFloat(2); |
2703 | 47 | if (fu != 0.0F) { |
2704 | 36 | return os << stringFormat("{:.1f} mm", value.toFloat(1) / fu); |
2705 | 36 | } |
2706 | 47 | } |
2707 | | |
2708 | 48 | return os << value; |
2709 | 84 | } |
2710 | | |
2711 | 684 | std::ostream& CanonMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) { |
2712 | 684 | std::string n = value.toString(); |
2713 | 684 | if (n.length() < 4) |
2714 | 20 | return os << "(" << n << ")"; |
2715 | 664 | return os << n.substr(0, n.length() - 4) << "-" << n.substr(n.length() - 4); |
2716 | 684 | } |
2717 | | |
2718 | 0 | std::ostream& CanonMakerNote::print0x000a(std::ostream& os, const Value& value, const ExifData*) { |
2719 | 0 | try { |
2720 | 0 | uint32_t l = std::stoul(value.toString()); |
2721 | 0 | return os << stringFormat("{:04x}{:05}", (l >> 16) & 0xFFFF, l & 0xFFFF); |
2722 | 0 | } catch (const std::logic_error&) { |
2723 | 0 | return os << value; |
2724 | 0 | } |
2725 | 0 | } |
2726 | | |
2727 | 488 | std::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) { |
2728 | 488 | if (!exifData) { |
2729 | 244 | return os << value; |
2730 | 244 | } |
2731 | | |
2732 | 244 | ExifKey key("Exif.Canon.ModelID"); |
2733 | 244 | auto pos = exifData->findKey(key); |
2734 | | // if model is EOS D30 |
2735 | 244 | if (pos != exifData->end() && pos->value().count() == 1 && pos->value().toInt64() == 0x01140000) { |
2736 | 0 | try { |
2737 | 0 | uint32_t l = std::stoul(value.toString()); |
2738 | 0 | return os << stringFormat("{:04x}{:05}", (l >> 16) & 0xFFFF, l & 0xFFFF); |
2739 | 0 | } catch (const std::logic_error&) { |
2740 | 0 | return os << value; |
2741 | 0 | } |
2742 | 0 | } |
2743 | 244 | return os << value; |
2744 | 244 | } |
2745 | | |
2746 | 4.53k | std::ostream& CanonMakerNote::printCs0x0002(std::ostream& os, const Value& value, const ExifData*) { |
2747 | 4.53k | if (value.typeId() != unsignedShort || value.count() == 0) |
2748 | 0 | return os << value; |
2749 | | |
2750 | 4.53k | if (auto l = value.toInt64(); l == 0) { |
2751 | 3.68k | os << "Off"; |
2752 | 3.68k | } else { |
2753 | 856 | os << l / 10.0 << " s"; |
2754 | 856 | } |
2755 | 4.53k | return os; |
2756 | 4.53k | } |
2757 | | |
2758 | 31 | std::ostream& printCsLensFFFF(std::ostream& os, const Value& value, const ExifData* metadata) { |
2759 | 31 | try { |
2760 | | // 1140 |
2761 | 31 | const auto itModel = metadata->findKey(ExifKey("Exif.Image.Model")); |
2762 | 31 | const auto itLens = metadata->findKey(ExifKey("Exif.CanonCs.Lens")); |
2763 | 31 | const auto itApert = metadata->findKey(ExifKey("Exif.CanonCs.MaxAperture")); |
2764 | | |
2765 | 31 | if (itModel != metadata->end() && itModel->value().toString() == "Canon EOS 30D" && itLens != metadata->end() && |
2766 | 1 | itLens->value().toString() == "24 24 1" && itApert != metadata->end() && |
2767 | 0 | itApert->value().toString() == "95" // F2.8 |
2768 | 31 | ) { |
2769 | 0 | return os << "Canon EF-S 24mm f/2.8 STM"; |
2770 | 0 | } |
2771 | 31 | } catch (const std::exception&) { |
2772 | 0 | } |
2773 | | |
2774 | 31 | return EXV_PRINT_TAG(canonCsLensType)(os, value, metadata); |
2775 | 31 | } |
2776 | | |
2777 | | /** |
2778 | | * @brief convert string to float w/o considering locale |
2779 | | * |
2780 | | * Using std:stof to convert strings to float takes into account the locale |
2781 | | * and thus leads to wrong results when converting e.g. "5.6" with a DE locale |
2782 | | * which expects "," as decimal instead of ".". See GitHub issue #2746 |
2783 | | * |
2784 | | * Use std::from_chars once that's properly supported by compilers. |
2785 | | * |
2786 | | * @param str string to convert |
2787 | | * @return float value of string |
2788 | | */ |
2789 | 12.9k | float string_to_float(std::string_view str) { |
2790 | 12.9k | float val{}; |
2791 | 12.9k | std::stringstream ss; |
2792 | 12.9k | std::locale c_locale("C"); |
2793 | 12.9k | ss.imbue(c_locale); |
2794 | 12.9k | ss << str; |
2795 | 12.9k | ss >> val; |
2796 | | |
2797 | 12.9k | if (ss.fail()) { |
2798 | 0 | throw Error(ErrorCode::kerErrorMessage, "canonmn_int.cpp:string_to_float failed for: ", str); |
2799 | 0 | } |
2800 | | |
2801 | 12.9k | return val; |
2802 | 12.9k | } |
2803 | | |
2804 | 4.43k | std::ostream& printCsLensTypeByMetadata(std::ostream& os, const Value& value, const ExifData* metadata) { |
2805 | 4.43k | if (!metadata || value.typeId() != unsignedShort || value.count() == 0) |
2806 | 2.21k | return os << value; |
2807 | | |
2808 | 2.21k | auto const lensType = value.toInt64(); |
2809 | | |
2810 | 2.21k | if (lensType == 0xffff) { |
2811 | 31 | return printCsLensFFFF(os, value, metadata); |
2812 | 31 | } |
2813 | | |
2814 | | // get the values we need from the metadata container |
2815 | 2.18k | ExifKey lensKey("Exif.CanonCs.Lens"); |
2816 | 2.18k | auto pos = metadata->findKey(lensKey); |
2817 | | // catch possible error cases |
2818 | 2.18k | if (pos == metadata->end() || pos->value().count() < 3 || pos->value().typeId() != unsignedShort || |
2819 | 2.16k | pos->value().toFloat(2) == 0.0F) { |
2820 | 168 | os << "Unknown Lens (" << lensType << ")"; |
2821 | 168 | return os; |
2822 | 168 | } |
2823 | | |
2824 | 2.01k | auto const exifFlMin = static_cast<int>(static_cast<float>(pos->value().toInt64(1)) / pos->value().toFloat(2)); |
2825 | 2.01k | auto const exifFlMax = static_cast<int>(static_cast<float>(pos->value().toInt64(0)) / pos->value().toFloat(2)); |
2826 | | |
2827 | 2.01k | ExifKey aperKey("Exif.CanonCs.MaxAperture"); |
2828 | 2.01k | pos = metadata->findKey(aperKey); |
2829 | 2.01k | if (pos == metadata->end() || pos->value().count() != 1 || pos->value().typeId() != unsignedShort) { |
2830 | 5 | os << "Unknown Lens (" << lensType << ")"; |
2831 | 5 | return os; |
2832 | 5 | } |
2833 | | |
2834 | 2.01k | auto exifAperMax = fnumber(canonEv(static_cast<int16_t>(pos->value().toInt64(0)))); |
2835 | | |
2836 | | // regex to extract short and tele focal length, max aperture at short and tele position |
2837 | | // and the teleconverter factor from the lens label |
2838 | 2.01k | std::regex const lens_regex( |
2839 | | // anything at the start |
2840 | 2.01k | ".*?" |
2841 | | // maybe min focal length and hyphen, surely max focal length e.g.: 24-70mm |
2842 | 2.01k | R"((?:(\d+)-)?(\d+)mm)" |
2843 | | // anything in-between |
2844 | 2.01k | ".*?" |
2845 | | // maybe short focal length max aperture and hyphen, surely at least single max aperture e.g.: f/4.5-5.6 |
2846 | | // short and tele indicate apertures at the short (focal_length_min) and tele (focal_length_max) |
2847 | | // position of the lens |
2848 | 2.01k | R"((?:(?:f/)|T|F)(?:(\d+(?:\.\d+)?)-)?(\d+(?:\.\d)?))" |
2849 | | // check if there is a teleconverter pattern e.g. + 1.4x |
2850 | 2.01k | R"((?:.*?\+.*?(\d+(?:\.\d+)?)x)?)"); |
2851 | | |
2852 | 2.01k | bool unmatched = true; |
2853 | | // we loop over all our lenses to print out all matching lenses |
2854 | | // if we have multiple possibilities, they are concatenated by "*OR*" |
2855 | 1.07M | for (auto&& [val, label] : canonCsLensType) { |
2856 | 1.07M | if (val != lensType) { |
2857 | 1.07M | continue; |
2858 | 1.07M | } |
2859 | | |
2860 | 3.81k | std::cmatch base_match; |
2861 | 3.81k | if (!std::regex_search(label, base_match, lens_regex)) { |
2862 | | // this should never happen, as it would indicate the lens is specified incorrectly |
2863 | | // in the CanonCsLensType array |
2864 | 0 | throw Error(ErrorCode::kerErrorMessage, "Lens regex didn't match for: ", label); |
2865 | 0 | } |
2866 | | |
2867 | 3.81k | auto tc = base_match[5].length() > 0 ? string_to_float(base_match[5].str()) : 1.f; |
2868 | | |
2869 | 3.81k | auto flMax = static_cast<int>(string_to_float(base_match[2].str()) * tc); |
2870 | 3.81k | int flMin = base_match[1].length() > 0 ? static_cast<int>(string_to_float(base_match[1].str()) * tc) : flMax; |
2871 | | |
2872 | 3.81k | auto aperMaxTele = string_to_float(base_match[4].str()) * tc; |
2873 | 3.81k | auto aperMaxShort = base_match[3].length() > 0 ? string_to_float(base_match[3].str()) * tc : aperMaxTele; |
2874 | | |
2875 | 3.81k | if (flMin != exifFlMin || flMax != exifFlMax || exifAperMax < (aperMaxShort - (.1 * tc)) || |
2876 | 3.81k | exifAperMax > (aperMaxTele + (.1 * tc))) { |
2877 | 3.81k | continue; |
2878 | 3.81k | } |
2879 | | |
2880 | 3 | if (unmatched) { |
2881 | 2 | unmatched = false; |
2882 | 2 | os << label; |
2883 | 2 | continue; |
2884 | 2 | } |
2885 | | |
2886 | 1 | os << " *OR* " << label; |
2887 | 1 | } |
2888 | | |
2889 | | // if the entire for loop left us with unmatched==false |
2890 | | // we weren't able to find a single matching lens :( |
2891 | 2.01k | if (unmatched) { |
2892 | 2.00k | os << "Unknown Lens (" << lensType << ")"; |
2893 | 2.00k | } |
2894 | 2.01k | return os; |
2895 | 2.01k | } |
2896 | | |
2897 | | //! printCsLensType by searching the config file if necessary |
2898 | 4.43k | std::ostream& CanonMakerNote::printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata) { |
2899 | 4.43k | if (value.typeId() != unsignedShort || value.count() == 0) |
2900 | 0 | return os << "(" << value << ")"; |
2901 | | |
2902 | | // #1034 |
2903 | 4.43k | const std::string undefined("undefined"); |
2904 | 4.43k | const std::string section("canon"); |
2905 | 4.43k | if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) { |
2906 | 0 | return os << Internal::readExiv2Config(section, value.toString(), undefined); |
2907 | 0 | } |
2908 | | |
2909 | | // try our best to determine the lens based on metadata |
2910 | | // sometimes the result will be a set of multiple choices |
2911 | 4.43k | return printCsLensTypeByMetadata(os, value, metadata); |
2912 | 4.43k | } |
2913 | | |
2914 | 4.41k | std::ostream& CanonMakerNote::printCsLens(std::ostream& os, const Value& value, const ExifData*) { |
2915 | 4.41k | if (value.count() < 3 || value.typeId() != unsignedShort) { |
2916 | 244 | return os << "(" << value << ")"; |
2917 | 244 | } |
2918 | | |
2919 | 4.17k | float fu = value.toFloat(2); |
2920 | 4.17k | if (fu == 0.0F) |
2921 | 534 | return os << value; |
2922 | 3.63k | float len1 = value.toInt64(0) / fu; |
2923 | 3.63k | float len2 = value.toInt64(1) / fu; |
2924 | 3.63k | if (len1 == len2) { |
2925 | 120 | return os << stringFormat("{:.1f} mm", len1); |
2926 | 120 | } |
2927 | 3.51k | return os << stringFormat("{:.1f} - {:.1f} mm", len2, len1); |
2928 | 3.63k | } |
2929 | | |
2930 | 16 | std::ostream& CanonMakerNote::printLe0x0000(std::ostream& os, const Value& value, const ExifData*) { |
2931 | 16 | if (value.typeId() != unsignedByte || value.size() != 5) |
2932 | 4 | return os << "(" << value << ")"; |
2933 | 72 | for (size_t i = 0; i < value.size(); ++i) { |
2934 | 60 | os << stringFormat("{:02x}", value.toInt64(i)); |
2935 | 60 | } |
2936 | 12 | return os; |
2937 | 16 | } |
2938 | | |
2939 | 410 | std::ostream& CanonMakerNote::printSi0x0001(std::ostream& os, const Value& value, const ExifData*) { |
2940 | 410 | if (value.typeId() == unsignedShort && value.count() > 0) { |
2941 | 410 | os << std::exp2(canonEv(value.toInt64()) / 32) * 100.0F; |
2942 | 410 | } |
2943 | 410 | return os; |
2944 | 410 | } |
2945 | | |
2946 | 408 | std::ostream& CanonMakerNote::printSi0x0002(std::ostream& os, const Value& value, const ExifData*) { |
2947 | 408 | if (value.typeId() == unsignedShort && value.count() > 0) { |
2948 | | // Ported from Exiftool by Will Stokes |
2949 | 408 | os << std::exp2(canonEv(value.toInt64())) * (100.0F / 32.0F); |
2950 | 408 | } |
2951 | 408 | return os; |
2952 | 408 | } |
2953 | | |
2954 | 406 | std::ostream& CanonMakerNote::printSi0x0003(std::ostream& os, const Value& value, const ExifData*) { |
2955 | 406 | if (value.typeId() == unsignedShort && value.count() > 0) { |
2956 | | // The offset of '5' seems to be ok for most Canons (see Exiftool) |
2957 | | // It might be explained by the fact, that most Canons have a longest |
2958 | | // exposure of 30s which is 5 EV below 1s |
2959 | | // see also printSi0x0017 |
2960 | 406 | auto res = std::lround(100.0 * (static_cast<short>(value.toInt64()) / 32.0 + 5.0)); |
2961 | 406 | os << stringFormat("{:.2f}", res / 100.0); |
2962 | 406 | } |
2963 | 406 | return os; |
2964 | 406 | } |
2965 | | |
2966 | 398 | std::ostream& CanonMakerNote::printSi0x0009(std::ostream& os, const Value& value, const ExifData*) { |
2967 | 398 | if (value.typeId() != unsignedShort || value.count() == 0) |
2968 | 0 | return os << value; |
2969 | | |
2970 | 398 | const auto l = value.toInt64(); |
2971 | 398 | os << l << ""; |
2972 | | // Todo: determine unit |
2973 | 398 | return os; |
2974 | 398 | } |
2975 | | |
2976 | 396 | std::ostream& CanonMakerNote::printSi0x000c(std::ostream& os, const Value& value, const ExifData*) { |
2977 | 396 | if (value.toInt64() == 0) |
2978 | 66 | return os << "--"; |
2979 | | |
2980 | 330 | return os << value.toInt64() - 128 << " °C"; |
2981 | 396 | } |
2982 | | |
2983 | 396 | std::ostream& CanonMakerNote::printSi0x000d(std::ostream& os, const Value& value, const ExifData*) { |
2984 | 396 | if (value.toInt64() == 65535) |
2985 | 28 | return os << "--"; |
2986 | | |
2987 | 368 | return os << value.toInt64() / 32; |
2988 | 396 | } |
2989 | | |
2990 | 396 | std::ostream& CanonMakerNote::printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData) { |
2991 | 396 | if (value.typeId() != unsignedShort || value.count() == 0) |
2992 | 0 | return os << value; |
2993 | | |
2994 | 396 | const auto l = value.toUint32(); |
2995 | 396 | const auto num = (l & 0xf000U) >> 12; |
2996 | 396 | os << num << " focus points; "; |
2997 | 396 | if (auto used = l & 0x0fffU; used == 0) { |
2998 | 62 | os << "none"; |
2999 | 334 | } else { |
3000 | 334 | EXV_PRINT_TAG_BITMASK(canonSiAFPointUsed)(os, value, pExifData); |
3001 | 334 | } |
3002 | 396 | os << " used"; |
3003 | 396 | return os; |
3004 | 396 | } |
3005 | | |
3006 | 358 | std::ostream& CanonMakerNote::printSi0x0013(std::ostream& os, const Value& value, const ExifData*) { |
3007 | 358 | if (value.typeId() != unsignedShort || value.count() == 0) |
3008 | 0 | return os << value; |
3009 | | |
3010 | 358 | if (auto l = value.toInt64(); l == 0xffff) { |
3011 | 34 | return os << "Infinite"; |
3012 | 34 | } |
3013 | 324 | return os << value.toInt64() / 100.0 << " m"; |
3014 | 358 | } |
3015 | | |
3016 | 9.48k | std::ostream& CanonMakerNote::printSi0x0015(std::ostream& os, const Value& value, const ExifData*) { |
3017 | 9.48k | if (value.typeId() != unsignedShort || value.count() == 0) |
3018 | 0 | return os << value; |
3019 | | |
3020 | 9.48k | const auto val = static_cast<int16_t>(value.toInt64()); |
3021 | 9.48k | if (val < 0) |
3022 | 834 | return os << value; |
3023 | 8.65k | return os << stringFormat("F{:.2g}", fnumber(canonEv(val))); |
3024 | 9.48k | } |
3025 | | |
3026 | 752 | std::ostream& CanonMakerNote::printSi0x0016(std::ostream& os, const Value& value, const ExifData*) { |
3027 | 752 | if (value.typeId() != unsignedShort || value.count() == 0) |
3028 | 0 | return os << value; |
3029 | | |
3030 | 752 | auto [u, r] = exposureTime(canonEv(value.toInt64())); |
3031 | 752 | os << u; |
3032 | 752 | if (r > 1) { |
3033 | 148 | os << "/" << r; |
3034 | 148 | } |
3035 | 752 | return os << " s"; |
3036 | 752 | } |
3037 | | |
3038 | 354 | std::ostream& CanonMakerNote::printSi0x0017(std::ostream& os, const Value& value, const ExifData*) { |
3039 | 354 | if (value.typeId() != unsignedShort || value.count() == 0) |
3040 | 0 | return os << value; |
3041 | 354 | return os << stringFormat("{:.2f}", (value.toInt64() / 8.0) - 6.0); |
3042 | 354 | } |
3043 | | |
3044 | 352 | std::ostream& CanonMakerNote::printSi0x0018(std::ostream& os, const Value& value, const ExifData*) { |
3045 | 352 | return os << value.toInt64() / 10; |
3046 | 352 | } |
3047 | | |
3048 | 516 | std::ostream& CanonMakerNote::printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*) { |
3049 | 516 | if (value.typeId() != signedShort || value.count() == 0) |
3050 | 0 | return os << value; |
3051 | | |
3052 | 516 | auto l = value.toInt64(); |
3053 | 516 | if (l == -1) { |
3054 | 30 | return os << "Infinite"; |
3055 | 30 | } |
3056 | 486 | return os << stringFormat("{:.2f} m", l / 100.0); |
3057 | 516 | } |
3058 | | |
3059 | | // ***************************************************************************** |
3060 | | // free functions |
3061 | | |
3062 | 12.8k | float canonEv(int64_t val) { |
3063 | | // temporarily remove sign |
3064 | 12.8k | int sign = 1; |
3065 | 12.8k | if (val < 0) { |
3066 | 615 | sign = -1; |
3067 | 615 | val = -val; |
3068 | 615 | } |
3069 | | // remove fraction |
3070 | 12.8k | const auto remainder = val & 0x1f; |
3071 | 12.8k | val -= remainder; |
3072 | 12.8k | auto frac = static_cast<float>(remainder); |
3073 | | // convert 1/3 (0x0c) and 2/3 (0x14) codes |
3074 | 12.8k | if (frac == 0x0c) { |
3075 | 681 | frac = 32.0F / 3; |
3076 | 12.1k | } else if (frac == 0x14) { |
3077 | 358 | frac = 64.0F / 3; |
3078 | 11.8k | } else if ((val == 160) && (frac == 0x08)) { // for Sigma f/6.3 lenses that report f/6.2 to camera |
3079 | 32 | frac = 30.0F / 3; |
3080 | 32 | } |
3081 | 12.8k | return sign * (val + frac) / 32.0F; |
3082 | 12.8k | } |
3083 | | |
3084 | | } // namespace Exiv2::Internal |