-
Notifications
You must be signed in to change notification settings - Fork 286
/
Copy pathcanonmn_int.cpp
3227 lines (2978 loc) · 182 KB
/
canonmn_int.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2021 Exiv2 authors
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
/*
File: canonmn.cpp
Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
David Cannings (dc) <david@edeca.net>
Andi Clemens (ac) <andi.clemens@gmx.net>
*/
// *****************************************************************************
// included header files
#include "types.hpp"
#include "makernote_int.hpp"
#include "canonmn_int.hpp"
#include "tags_int.hpp"
#include "value.hpp"
#include "exif.hpp"
#include "i18n.h" // NLS support.
// + standard includes
#include <string>
#include <sstream>
#include <iomanip>
#include <ios>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <cmath>
// *****************************************************************************
// class member definitions
namespace Exiv2 {
namespace Internal {
//! OffOn, multiple tags
extern const TagDetails canonOffOn[] = {
{ 0, N_("Off") },
{ 1, N_("On") }
};
//! Special treatment pretty-print function for non-unique lens ids.
std::ostream& printCsLensByFocalLengthAndMaxAperture(std::ostream& os,
const Value& value,
const ExifData* metadata);
//! Special treatment pretty-print function for non-unique lens ids.
std::ostream& printCsLensByFocalLength(std::ostream& os,
const Value& value,
const ExifData* metadata);
//! Special treatment pretty-print function for non-unique lens ids.
std::ostream& printCsLensByFocalLengthTC(std::ostream& os,
const Value& value,
const ExifData* metadata);
//! Special treatment pretty-print function for non-unique lens ids.
std::ostream& printCsLensFFFF(std::ostream& os,
const Value& value,
const ExifData* metadata);
//! ModelId, tag 0x0010
extern const TagDetails canonModelId[] = {
{ (long int)0x00000811, "EOS M6 Mark II"},
{ (long int)0x00000804, "Powershot G5 X Mark II"},
{ (long int)0x00000805, "PowerShot SX70 HS"},
{ (long int)0x00000808, "PowerShot G7 X Mark III"},
{ (long int)0x00000812, "EOS M200"},
{ (long int)0x1010000, "PowerShot A30" },
{ (long int)0x1040000, "PowerShot S300 / Digital IXUS 300 / IXY Digital 300" },
{ (long int)0x1060000, "PowerShot A20" },
{ (long int)0x1080000, "PowerShot A10" },
{ (long int)0x1090000, "PowerShot S110 / Digital IXUS v / IXY Digital 200" },
{ (long int)0x1100000, "PowerShot G2" },
{ (long int)0x1110000, "PowerShot S40" },
{ (long int)0x1120000, "PowerShot S30" },
{ (long int)0x1130000, "PowerShot A40" },
{ (long int)0x1140000, "EOS D30" },
{ (long int)0x1150000, "PowerShot A100" },
{ (long int)0x1160000, "PowerShot S200 / Digital IXUS v2 / IXY Digital 200a" },
{ (long int)0x1170000, "PowerShot A200" },
{ (long int)0x1180000, "PowerShot S330 / Digital IXUS 330 / IXY Digital 300a" },
{ (long int)0x1190000, "PowerShot G3" },
{ (long int)0x1210000, "PowerShot S45" },
{ (long int)0x1230000, "PowerShot SD100 / Digital IXUS II / IXY Digital 30" },
{ (long int)0x1240000, "PowerShot S230 / Digital IXUS v3 / IXY Digital 320" },
{ (long int)0x1250000, "PowerShot A70" },
{ (long int)0x1260000, "PowerShot A60" },
{ (long int)0x1270000, "PowerShot S400 / Digital IXUS 400 / IXY Digital 400" },
{ (long int)0x1290000, "PowerShot G5" },
{ (long int)0x1300000, "PowerShot A300" },
{ (long int)0x1310000, "PowerShot S50" },
{ (long int)0x1340000, "PowerShot A80" },
{ (long int)0x1350000, "PowerShot SD10 / Digital IXUS i / IXY Digital L" },
{ (long int)0x1360000, "PowerShot S1 IS" },
{ (long int)0x1370000, "PowerShot Pro1" },
{ (long int)0x1380000, "PowerShot S70" },
{ (long int)0x1390000, "PowerShot S60" },
{ (long int)0x1400000, "PowerShot G6" },
{ (long int)0x1410000, "PowerShot S500 / Digital IXUS 500 / IXY Digital 500" },
{ (long int)0x1420000, "PowerShot A75" },
{ (long int)0x1440000, "PowerShot SD110 / Digital IXUS IIs / IXY Digital 30a" },
{ (long int)0x1450000, "PowerShot A400" },
{ (long int)0x1470000, "PowerShot A310" },
{ (long int)0x1490000, "PowerShot A85" },
{ (long int)0x1520000, "PowerShot S410 / Digital IXUS 430 / IXY Digital 450" },
{ (long int)0x1530000, "PowerShot A95" },
{ (long int)0x1540000, "PowerShot SD300 / Digital IXUS 40 / IXY Digital 50" },
{ (long int)0x1550000, "PowerShot SD200 / Digital IXUS 30 / IXY Digital 40" },
{ (long int)0x1560000, "PowerShot A520" },
{ (long int)0x1570000, "PowerShot A510" },
{ (long int)0x1590000, "PowerShot SD20 / Digital IXUS i5 / IXY Digital L2" },
{ (long int)0x1640000, "PowerShot S2 IS" },
{ (long int)0x1650000, "PowerShot SD430 / Digital IXUS Wireless / IXY Digital Wireless" },
{ (long int)0x1660000, "PowerShot SD500 / Digital IXUS 700 / IXY Digital 600" },
{ (long int)0x1668000, "EOS D60" },
{ (long int)0x1700000, "PowerShot SD30 / Digital IXUS i Zoom / IXY Digital L3" },
{ (long int)0x1740000, "PowerShot A430" },
{ (long int)0x1750000, "PowerShot A410" },
{ (long int)0x1760000, "PowerShot S80" },
{ (long int)0x1780000, "PowerShot A620" },
{ (long int)0x1790000, "PowerShot A610" },
{ (long int)0x1800000, "PowerShot SD630 / Digital IXUS 65 / IXY Digital 80" },
{ (long int)0x1810000, "PowerShot SD450 / Digital IXUS 55 / IXY Digital 60" },
{ (long int)0x1820000, "PowerShot TX1" },
{ (long int)0x1870000, "PowerShot SD400 / Digital IXUS 50 / IXY Digital 55" },
{ (long int)0x1880000, "PowerShot A420" },
{ (long int)0x1890000, "PowerShot SD900 / Digital IXUS 900 Ti / IXY Digital 1000" },
{ (long int)0x1900000, "PowerShot SD550 / Digital IXUS 750 / IXY Digital 700" },
{ (long int)0x1920000, "PowerShot A700" },
{ (long int)0x1940000, "PowerShot SD700 IS / Digital IXUS 800 IS / IXY Digital 800 IS" },
{ (long int)0x1950000, "PowerShot S3 IS" },
{ (long int)0x1960000, "PowerShot A540" },
{ (long int)0x1970000, "PowerShot SD600 / Digital IXUS 60 / IXY Digital 70" },
{ (long int)0x1980000, "PowerShot G7" },
{ (long int)0x1990000, "PowerShot A530" },
{ (long int)0x2000000, "PowerShot SD800 IS / Digital IXUS 850 IS / IXY Digital 900 IS" },
{ (long int)0x2010000, "PowerShot SD40 / Digital IXUS i7 / IXY Digital L4" },
{ (long int)0x2020000, "PowerShot A710 IS" },
{ (long int)0x2030000, "PowerShot A640" },
{ (long int)0x2040000, "PowerShot A630" },
{ (long int)0x2090000, "PowerShot S5 IS" },
{ (long int)0x2100000, "PowerShot A460" },
{ (long int)0x2120000, "PowerShot SD850 IS / Digital IXUS 950 IS / IXY Digital 810 IS" },
{ (long int)0x2130000, "PowerShot A570 IS" },
{ (long int)0x2140000, "PowerShot A560" },
{ (long int)0x2150000, "PowerShot SD750 / Digital IXUS 75 / IXY Digital 90" },
{ (long int)0x2160000, "PowerShot SD1000 / Digital IXUS 70 / IXY Digital 10" },
{ (long int)0x2180000, "PowerShot A550" },
{ (long int)0x2190000, "PowerShot A450" },
{ (long int)0x2230000, "PowerShot G9" },
{ (long int)0x2240000, "PowerShot A650 IS" },
{ (long int)0x2260000, "PowerShot A720 IS" },
{ (long int)0x2290000, "PowerShot SX100 IS" },
{ (long int)0x2300000, "PowerShot SD950 IS / Digital IXUS 960 IS / IXY Digital 2000 IS" },
{ (long int)0x2310000, "PowerShot SD870 IS / Digital IXUS 860 IS / IXY Digital 910 IS" },
{ (long int)0x2320000, "PowerShot SD890 IS / Digital IXUS 970 IS / IXY Digital 820 IS" },
{ (long int)0x2360000, "PowerShot SD790 IS / Digital IXUS 90 IS / IXY Digital 95 IS" },
{ (long int)0x2370000, "PowerShot SD770 IS / Digital IXUS 85 IS / IXY Digital 25 IS" },
{ (long int)0x2380000, "PowerShot A590 IS" },
{ (long int)0x2390000, "PowerShot A580" },
{ (long int)0x2420000, "PowerShot A470" },
{ (long int)0x2430000, "PowerShot SD1100 IS / Digital IXUS 80 IS / IXY Digital 20 IS" },
{ (long int)0x2460000, "PowerShot SX1 IS" },
{ (long int)0x2470000, "PowerShot SX10 IS" },
{ (long int)0x2480000, "PowerShot A1000 IS" },
{ (long int)0x2490000, "PowerShot G10" },
{ (long int)0x2510000, "PowerShot A2000 IS" },
{ (long int)0x2520000, "PowerShot SX110 IS" },
{ (long int)0x2530000, "PowerShot SD990 IS / Digital IXUS 980 IS / IXY Digital 3000 IS" },
{ (long int)0x2540000, "PowerShot SD880 IS / Digital IXUS 870 IS / IXY Digital 920 IS" },
{ (long int)0x2550000, "PowerShot E1" },
{ (long int)0x2560000, "PowerShot D10" },
{ (long int)0x2570000, "PowerShot SD960 IS / Digital IXUS 110 IS / IXY Digital 510 IS" },
{ (long int)0x2580000, "PowerShot A2100 IS" },
{ (long int)0x2590000, "PowerShot A480" },
{ (long int)0x2600000, "PowerShot SX200 IS" },
{ (long int)0x2610000, "PowerShot SD970 IS / Digital IXUS 990 IS / IXY Digital 830 IS" },
{ (long int)0x2620000, "PowerShot SD780 IS / Digital IXUS 100 IS / IXY Digital 210 IS" },
{ (long int)0x2630000, "PowerShot A1100 IS" },
{ (long int)0x2640000, "PowerShot SD1200 IS / Digital IXUS 95 IS / IXY Digital 110 IS" },
{ (long int)0x2700000, "PowerShot G11" },
{ (long int)0x2710000, "PowerShot SX120 IS" },
{ (long int)0x2720000, "PowerShot S90" },
{ (long int)0x2750000, "PowerShot SX20 IS" },
{ (long int)0x2760000, "PowerShot SD980 IS / Digital IXUS 200 IS / IXY Digital 930 IS" },
{ (long int)0x2770000, "PowerShot SD940 IS / Digital IXUS 120 IS / IXY Digital 220 IS" },
{ (long int)0x2800000, "PowerShot A495" },
{ (long int)0x2810000, "PowerShot A490" },
{ (long int)0x2820000, "PowerShot A3100/A3150 IS" },
{ (long int)0x2830000, "PowerShot A3000 IS" },
{ (long int)0x2840000, "PowerShot SD1400 IS / IXUS 130 / IXY 400F" },
{ (long int)0x2850000, "PowerShot SD1300 IS / IXUS 105 / IXY 200F" },
{ (long int)0x2860000, "PowerShot SD3500 IS / IXUS 210 / IXY 10S" },
{ (long int)0x2870000, "PowerShot SX210 IS" },
{ (long int)0x2880000, "PowerShot SD4000 IS / IXUS 300 HS / IXY 30S" },
{ (long int)0x2890000, "PowerShot SD4500 IS / IXUS 1000 HS / IXY 50S" },
{ (long int)0x2920000, "PowerShot G12" },
{ (long int)0x2930000, "PowerShot SX30 IS" },
{ (long int)0x2940000, "PowerShot SX130 IS" },
{ (long int)0x2950000, "PowerShot S95" },
{ (long int)0x2980000, "PowerShot A3300 IS" },
{ (long int)0x2990000, "PowerShot A3200 IS" },
{ (long int)0x3000000, "PowerShot ELPH 500 HS / IXUS 310 HS / IXY 31S" },
{ (long int)0x3010000, "PowerShot Pro90 IS" },
{ (long int)0x3010001, "PowerShot A800" },
{ (long int)0x3020000, "PowerShot ELPH 100 HS / IXUS 115 HS / IXY 210F" },
{ (long int)0x3030000, "PowerShot SX230 HS" },
{ (long int)0x3040000, "PowerShot ELPH 300 HS / IXUS 220 HS / IXY 410F" },
{ (long int)0x3050000, "PowerShot A2200" },
{ (long int)0x3060000, "PowerShot A1200" },
{ (long int)0x3070000, "PowerShot SX220 HS" },
{ (long int)0x3080000, "PowerShot G1 X" },
{ (long int)0x3090000, "PowerShot SX150 IS" },
{ (long int)0x3100000, "PowerShot ELPH 510 HS / IXUS 1100 HS / IXY 51S" },
{ (long int)0x3110000, "PowerShot S100 (new)" },
{ (long int)0x3130000, "PowerShot SX40 HS" },
{ (long int)0x3120000, "PowerShot ELPH 310 HS / IXUS 230 HS / IXY 600F" },
{ (long int)0x3140000, "IXY 32S" },
{ (long int)0x3160000, "PowerShot A1300" },
{ (long int)0x3170000, "PowerShot A810" },
{ (long int)0x3180000, "PowerShot ELPH 320 HS / IXUS 240 HS / IXY 420F" },
{ (long int)0x3190000, "PowerShot ELPH 110 HS / IXUS 125 HS / IXY 220F" },
{ (long int)0x3200000, "PowerShot D20" },
{ (long int)0x3210000, "PowerShot A4000 IS" },
{ (long int)0x3220000, "PowerShot SX260 HS" },
{ (long int)0x3230000, "PowerShot SX240 HS" },
{ (long int)0x3240000, "PowerShot ELPH 530 HS / IXUS 510 HS / IXY 1" },
{ (long int)0x3250000, "PowerShot ELPH 520 HS / IXUS 500 HS / IXY 3" },
{ (long int)0x3260000, "PowerShot A3400 IS" },
{ (long int)0x3270000, "PowerShot A2400 IS" },
{ (long int)0x3280000, "PowerShot A2300" },
{ (long int)0x3320000, "PowerShot S100V" },
{ (long int)0x3330000, "PowerShot G15" },
{ (long int)0x3340000, "PowerShot SX50 HS" },
{ (long int)0x3350000, "PowerShot SX160 IS" },
{ (long int)0x3360000, "PowerShot S110 (new)" },
{ (long int)0x3370000, "PowerShot SX500 IS" },
{ (long int)0x3380000, "PowerShot N" },
{ (long int)0x3390000, "IXUS 245 HS / IXY 430F" },
{ (long int)0x3400000, "PowerShot SX280 HS" },
{ (long int)0x3410000, "PowerShot SX270 HS" },
{ (long int)0x3420000, "PowerShot A3500 IS" },
{ (long int)0x3430000, "PowerShot A2600" },
{ (long int)0x3440000, "PowerShot SX275 HS" },
{ (long int)0x3450000, "PowerShot A1400" },
{ (long int)0x3460000, "PowerShot ELPH 130 IS / IXUS 140 / IXY 110F" },
{ (long int)0x3470000, "PowerShot ELPH 115/120 IS / IXUS 132/135 / IXY 90F/100F" },
{ (long int)0x3490000, "PowerShot ELPH 330 HS / IXUS 255 HS / IXY 610F" },
{ (long int)0x3510000, "PowerShot A2500" },
{ (long int)0x3540000, "PowerShot G16" },
{ (long int)0x3550000, "PowerShot S120" },
{ (long int)0x3560000, "PowerShot SX170 IS" },
{ (long int)0x3580000, "PowerShot SX510 HS" },
{ (long int)0x3590000, "PowerShot S200 (new)" },
{ (long int)0x3600000, "IXY 620F" },
{ (long int)0x3610000, "PowerShot N100" },
{ (long int)0x3640000, "PowerShot G1 X Mark II" },
{ (long int)0x3650000, "PowerShot D30" },
{ (long int)0x3660000, "PowerShot SX700 HS" },
{ (long int)0x3670000, "PowerShot SX600 HS" },
{ (long int)0x3680000, "PowerShot ELPH 140 IS / IXUS 150 / IXY 130" },
{ (long int)0x3690000, "PowerShot ELPH 135 / IXUS 145 / IXY 120" },
{ (long int)0x3700000, "PowerShot ELPH 340 HS / IXUS 265 HS / IXY 630" },
{ (long int)0x3710000, "PowerShot ELPH 150 IS / IXUS 155 / IXY 140" },
{ (long int)0x3740000, "EOS M3" },
{ (long int)0x3750000, "PowerShot SX60 HS" },
{ (long int)0x3760000, "PowerShot SX520 HS" },
{ (long int)0x3770000, "PowerShot SX400 IS" },
{ (long int)0x3780000, "PowerShot G7 X" },
{ (long int)0x3790000, "PowerShot N2" },
{ (long int)0x3800000, "PowerShot SX530 HS" },
{ (long int)0x3820000, "PowerShot SX710 HS" },
{ (long int)0x3830000, "PowerShot SX610 HS" },
{ (long int)0x3840000, "EOS M10" },
{ (long int)0x3850000, "PowerShot G3 X" },
{ (long int)0x3860000, "PowerShot ELPH 165 HS / IXUS 165 / IXY 160" },
{ (long int)0x3870000, "PowerShot ELPH 160 / IXUS 160" },
{ (long int)0x3880000, "PowerShot ELPH 350 HS / IXUS 275 HS / IXY 640" },
{ (long int)0x3890000, "PowerShot ELPH 170 IS / IXUS 170" },
{ (long int)0x3910000, "PowerShot SX410 IS" },
{ (long int)0x3930000, "PowerShot G9 X" },
{ (long int)0x3940000, "EOS M5" },
{ (long int)0x3950000, "PowerShot G5 X" },
{ (long int)0x3970000, "PowerShot G7 X Mark II" },
{ (long int)0x3980000, "EOS M100" },
{ (long int)0x3990000, "PowerShot ELPH 360 HS / IXUS 285 HS / IXY 650" },
{ (long int)0x4010000, "PowerShot SX540 HS" },
{ (long int)0x4020000, "PowerShot SX420 IS" },
{ (long int)0x4030000, "PowerShot ELPH 190 IS / IXUS 180 / IXY 190" },
{ (long int)0x4040000, "PowerShot G1" },
{ (long int)0x4040001, "PowerShot ELPH 180 IS / IXUS 175 / IXY 180" },
{ (long int)0x4050000, "PowerShot SX720 HS" },
{ (long int)0x4060000, "PowerShot SX620 HS" },
{ (long int)0x4070000, "EOS M6" },
{ (long int)0x4100000, "PowerShot G9 X Mark II" },
{ (long int)0x412, "EOS M50 / Kiss M" },
{ (long int)0x4150000, "PowerShot ELPH 185 / IXUS 185 / IXY 200" },
{ (long int)0x4160000, "PowerShot SX430 IS" },
{ (long int)0x4170000, "PowerShot SX730 HS" },
{ (long int)0x4180000, "PowerShot G1 X Mark III" },
{ (long int)0x6040000, "PowerShot S100 / Digital IXUS / IXY Digital" },
{ (long int)0x801, "PowerShot SX740 HS" },
{ (long int)0x804, "PowerShot G5 X Mark II" },
{ (long int)0x805, "PowerShot SX70 HS" },
{ (long int)0x808, "PowerShot G7 X Mark III" },
{ (long int)0x811, "EOS M6 Mark II" },
{ (long int)0x812, "EOS M200" },
{ (long int)0x4007d673, "DC19/DC21/DC22" },
{ (long int)0x4007d674, "XH A1" },
{ (long int)0x4007d675, "HV10" },
{ (long int)0x4007d676, "MD130/MD140/MD150/MD160/ZR850" },
{ (long int)0x4007d777, "DC50" },
{ (long int)0x4007d778, "HV20" },
{ (long int)0x4007d779, "DC211" },
{ (long int)0x4007d77a, "HG10" },
{ (long int)0x4007d77b, "HR10" },
{ (long int)0x4007d77d, "MD255/ZR950" },
{ (long int)0x4007d81c, "HF11" },
{ (long int)0x4007d878, "HV30" },
{ (long int)0x4007d87c, "XH A1S" },
{ (long int)0x4007d87e, "DC301/DC310/DC311/DC320/DC330" },
{ (long int)0x4007d87f, "FS100" },
{ (long int)0x4007d880, "HF10" },
{ (long int)0x4007d882, "HG20/HG21" },
{ (long int)0x4007d925, "HF21" },
{ (long int)0x4007d926, "HF S11" },
{ (long int)0x4007d978, "HV40" },
{ (long int)0x4007d987, "DC410/DC411/DC420" },
{ (long int)0x4007d988, "FS19/FS20/FS21/FS22/FS200" },
{ (long int)0x4007d989, "HF20/HF200" },
{ (long int)0x4007d98a, "HF S10/S100" },
{ (long int)0x4007da8e, "HF R10/R16/R17/R18/R100/R106" },
{ (long int)0x4007da8f, "HF M30/M31/M36/M300/M306" },
{ (long int)0x4007da90, "HF S20/S21/S200" },
{ (long int)0x4007da92, "FS31/FS36/FS37/FS300/FS305/FS306/FS307" },
{ (long int)0x4007dca0, "EOS C300" },
{ (long int)0x4007dda9, "HF G25" },
{ (long int)0x4007dfb4, "XC10" },
{ (long int)0x4007e1c3, "EOS C200" },
{ (long int)0x80000001, "EOS-1D" },
{ (long int)0x80000167, "EOS-1DS" },
{ (long int)0x80000168, "EOS 10D" },
{ (long int)0x80000169, "EOS-1D Mark III" },
{ (long int)0x80000170, "EOS Digital Rebel / 300D / Kiss Digital" },
{ (long int)0x80000174, "EOS-1D Mark II" },
{ (long int)0x80000175, "EOS 20D" },
{ (long int)0x80000176, "EOS Digital Rebel XSi / 450D / Kiss X2" },
{ (long int)0x80000188, "EOS-1Ds Mark II" },
{ (long int)0x80000189, "EOS Digital Rebel XT / 350D / Kiss Digital N" },
{ (long int)0x80000190, "EOS 40D" },
{ (long int)0x80000213, "EOS 5D" },
{ (long int)0x80000215, "EOS-1Ds Mark III" },
{ (long int)0x80000218, "EOS 5D Mark II" },
{ (long int)0x80000219, "WFT-E1" },
{ (long int)0x80000232, "EOS-1D Mark II N" },
{ (long int)0x80000234, "EOS 30D" },
{ (long int)0x80000236, "EOS Digital Rebel XTi / 400D / Kiss Digital X" },
{ (long int)0x80000241, "WFT-E2" },
{ (long int)0x80000246, "WFT-E3" },
{ (long int)0x80000250, "EOS 7D" },
{ (long int)0x80000252, "EOS Rebel T1i / 500D / Kiss X3" },
{ (long int)0x80000254, "EOS Rebel XS / 1000D / Kiss F" },
{ (long int)0x80000261, "EOS 50D" },
{ (long int)0x80000269, "EOS-1D X" },
{ (long int)0x80000270, "EOS Rebel T2i / 550D / Kiss X4" },
{ (long int)0x80000271, "WFT-E4" },
{ (long int)0x80000273, "WFT-E5" },
{ (long int)0x80000281, "EOS-1D Mark IV" },
{ (long int)0x80000285, "EOS 5D Mark III" },
{ (long int)0x80000286, "EOS Rebel T3i / 600D / Kiss X5" },
{ (long int)0x80000287, "EOS 60D" },
{ (long int)0x80000288, "EOS Rebel T3 / 1100D / Kiss X50" },
{ (long int)0x80000289, "EOS 7D Mark II" },
{ (long int)0x80000297, "WFT-E2 II" },
{ (long int)0x80000298, "WFT-E4 II" },
{ (long int)0x80000301, "EOS Rebel T4i / 650D / Kiss X6i" },
{ (long int)0x80000302, "EOS 6D" },
{ (long int)0x80000324, "EOS-1D C" },
{ (long int)0x80000325, "EOS 70D" },
{ (long int)0x80000326, "EOS Rebel T5i / 700D / Kiss X7i" },
{ (long int)0x80000327, "EOS Rebel T5 / 1200D / Kiss X70 / Hi" },
{ (long int)0x80000328, "EOS-1D X MARK II" },
{ (long int)0x80000331, "EOS M" },
{ (long int)0x80000350, "EOS 80D" },
{ (long int)0x80000355, "EOS M2" },
{ (long int)0x80000346, "EOS Rebel SL1 / 100D / Kiss X7" },
{ (long int)0x80000347, "EOS Rebel T6s / 760D / 8000D" },
{ (long int)0x80000349, "EOS 5D Mark IV" },
{ (long int)0x80000382, "EOS 5DS" },
{ (long int)0x80000393, "EOS Rebel T6i / 750D / Kiss X8i" },
{ (long int)0x80000401, "EOS 5DS R" },
{ (long int)0x80000404, "EOS Rebel T6 / 1300D / Kiss X80" },
{ (long int)0x80000405, "EOS Rebel T7i / 800D / Kiss X9i" },
{ (long int)0x80000406, "EOS 6D Mark II" },
{ (long int)0x80000408, "EOS 77D / 9000D" },
{ (long int)0x80000417, "EOS Rebel SL2 / 200D / Kiss X9" },
{ (long int)0x80000421, "EOS R5" },
{ (long int)0x80000422, "EOS Rebel T100 / 4000D / 3000D" },
{ (long int)0x80000424, "EOS R" },
{ (long int)0x80000428, "EOS-1D X Mark III" },
{ (long int)0x80000432, "EOS Rebel T7 / 2000D / 1500D / Kiss X90" },
{ (long int)0x80000433, "EOS RP" },
{ (long int)0x80000435, "EOS 850D / T8i / Kiss X10i" },
{ (long int)0x80000436, "EOS SL3 / 250D / Kiss X10" },
{ (long int)0x80000437, "EOS 90D" },
{ (long int)0x80000453, "EOS R6" },
//{ (long int)tbd, "EOS Ra" },
//{ (long int)tbd, "EOS M50 Mark II" },
{ (long int)0x80000520, "EOS D2000C" },
{ (long int)0x80000560, "EOS D6000C" }
};
//! SerialNumberFormat, tag 0x0015
extern const TagDetails canonSerialNumberFormat[] = {
{ (long int)0x90000000, N_("Format 1") },
{ (long int)0xa0000000, N_("Format 2") },
};
//! SuperMacro, tag 0x001a
extern const TagDetails canonSuperMacro[] = {
{ 0, N_("Off") },
{ 1, N_("On (1)") },
{ 2, N_("On (2)") }
};
// DateStampMode, tag 0x001c
extern const TagDetails canonDateStampMode[] = {
{ 0, N_("Off") },
{ 1, N_("Date") },
{ 2, N_("Date & Time") }
};
// Categories, tag 0x0023
extern const TagDetails canonCategories[] = {
{ 0x0001, N_("People") },
{ 0x0002, N_("Scenery") },
{ 0x0004, N_("Events") },
{ 0x0008, N_("User 1") },
{ 0x0016, N_("User 2") },
{ 0x0032, N_("User 3") },
{ 0x0064, N_("To Do") }
};
//! PictureStyle Values
extern const TagDetails canonPictureStyle[] = {
{ 0x00, N_("None") },
{ 0x01, N_("Standard") },
{ 0x02, N_("Portrait") },
{ 0x03, N_("High Saturation") },
{ 0x04, N_("Adobe RGB") },
{ 0x05, N_("Low Saturation") },
{ 0x06, N_("CM Set 1") },
{ 0x07, N_("CM Set 2") },
{ 0x21, N_("User Def. 1") },
{ 0x22, N_("User Def. 2") },
{ 0x23, N_("User Def. 3") },
{ 0x41, N_("PC 1") },
{ 0x42, N_("PC 2") },
{ 0x43, N_("PC 3") },
{ 0x81, N_("Standard") },
{ 0x82, N_("Portrait") },
{ 0x83, N_("Landscape") },
{ 0x84, N_("Neutral") },
{ 0x85, N_("Faithful") },
{ 0x86, N_("Monochrome") },
{ 0x87, N_("Auto") },
{ 0x88, N_("Fine Detail") }
};
//! WhiteBalance, multiple tags
extern const TagDetails canonSiWhiteBalance[] = {
{ 0, N_("Auto") },
{ 1, N_("Daylight") },
{ 2, N_("Cloudy") },
{ 3, N_("Tungsten") },
{ 4, N_("Fluorescent") },
{ 5, N_("Flash") },
{ 6, N_("Custom") },
{ 7, N_("Black & White") },
{ 8, N_("Shade") },
{ 9, N_("Manual Temperature (Kelvin)") },
{ 10, N_("PC Set 1") },
{ 11, N_("PC Set 2") },
{ 12, N_("PC Set 3") },
{ 14, N_("Daylight Fluorescent") },
{ 15, N_("Custom 1") },
{ 16, N_("Custom 2") },
{ 17, N_("Underwater") },
{ 18, N_("Custom 3") },
{ 19, N_("Custom 3") },
{ 20, N_("PC Set 4") },
{ 21, N_("PC Set 5") },
{ 23, N_("Auto (ambience priority)") }
};
//! ColorSpace, tag 0x00b4
extern const TagDetails canonColorSpace[] = {
{ 1, N_("sRGB") },
{ 2, N_("Adobe RGB") }
};
//! Canon AF Area Mode, tag 0x2601
extern const TagDetails canonAFAreaMode[] = {
{ 0, N_("Off (Manual Focus)") },
{ 1, N_("AF Point Expansion (surround)")},
{ 2, N_("Single-point AF") },
{ 4, N_("Multi-point AF") },
{ 5, N_("Face Detect AF") },
{ 6, N_("Face + Tracking") },
{ 7, N_("Zone AF") },
{ 8, N_("AF Point Expansion (4 point)") },
{ 9, N_("Spot AF") },
{ 10, N_("AF Point Expansion (8 point)") },
{ 11, N_("Flexizone Multi (49 point)") },
{ 12, N_("Flexizone Multi (9 point)") },
{ 13, N_("Flexizone Single") },
{ 14, N_("Large Zone AF") },
};
// Canon MakerNote Tag Info
const TagInfo CanonMakerNote::tagInfo_[] = {
TagInfo(0x0000, "0x0000", "0x0000", N_("Unknown"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0001, "CameraSettings", N_("Camera Settings"), N_("Various camera settings"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0002, "FocalLength", N_("Focal Length"), N_("Focal length"), canonId, makerTags, unsignedShort, -1, printFocalLength),
TagInfo(0x0003, "0x0003", "0x0003", N_("Unknown"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0004, "ShotInfo", N_("Shot Info"), N_("Shot information"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0005, "Panorama", N_("Panorama"), N_("Panorama"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0006, "ImageType", N_("Image Type"), N_("Image type"), canonId, makerTags, asciiString, -1, printValue),
TagInfo(0x0007, "FirmwareVersion", N_("Firmware Version"), N_("Firmware version"), canonId, makerTags, asciiString, -1, printValue),
TagInfo(0x0008, "FileNumber", N_("File Number"), N_("File number"), canonId, makerTags, unsignedLong, -1, print0x0008),
TagInfo(0x0009, "OwnerName", N_("Owner Name"), N_("Owner Name"), canonId, makerTags, asciiString, -1, printValue),
TagInfo(0x000a, "0x000a", N_("0x000a"), N_("Unknow"), canonId, makerTags, unsignedLong, -1, print0x000c),
TagInfo(0x000c, "SerialNumber", N_("Serial Number"), N_("Camera serial number"), canonId, makerTags, unsignedLong, -1, print0x000c),
TagInfo(0x000d, "CameraInfo", N_("Camera Info"), N_("Camera info"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x000e, "FileLength", N_("FileLength"), N_("FileLength"), canonId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x000f, "CustomFunctions", N_("Custom Functions"), N_("Custom Functions"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0010, "ModelID", N_("ModelID"), N_("Model ID"), canonId, makerTags, unsignedLong, -1, EXV_PRINT_TAG(canonModelId)),
TagInfo(0x0011, "MovieInfo", N_("MovieInfo"), N_("Movie info"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0012, "PictureInfo", N_("Picture Info"), N_("Picture info"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0013, "ThumbnailImageValidArea", N_("Thumbnail Image Valid Area"), N_("Thumbnail image valid area"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x0015, "SerialNumberFormat", N_("Serial Number Format"), N_("Serial number format"), canonId, makerTags, unsignedLong, -1, EXV_PRINT_TAG(canonSerialNumberFormat)),
TagInfo(0x001a, "SuperMacro", N_("Super Macro"), N_("Super macro"), canonId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonSuperMacro)),
TagInfo(0x001c, "DateStampMode", N_("DateStampMode"), N_("Data_Stamp_Mode"), canonId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonDateStampMode)),
TagInfo(0x001d, "MyColors", N_("MyColors"), N_("My_Colors"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x001e, "FirmwareRevision", N_("FirmwareRevision"), N_("Firmware_Revision"), canonId, makerTags, unsignedLong, -1, printValue),
// TagInfo(0x0023, "Categories", N_("Categories"), N_("Categories"), canonId, makerTags, unsignedLong -1, EXV_PRINT_TAG(canonCategories)),
TagInfo(0x0024, "FaceDetect1", N_("FaceDetect1"), N_("FaceDetect1"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0025, "FaceDetect2", N_("FaceDetect2"), N_("FaceDetect2"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0026, "AFInfo", N_("AF Info"), N_("AF info"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0027, "ContrastInfo", N_("ContrastInfo"), N_("ContrastInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0028, "ImageUniqueID", N_("ImageUniqueID"), N_("ImageUniqueID"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0029, "WBInfo", N_("WBInfo"), N_("WBInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x002f, "FaceDetect3", N_("FaceDetect3"), N_("FaceDetect3"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0035, "TimeInfo", N_("Time Info"), N_("Time zone information"), canonId, makerTags, signedLong, -1, printValue),
TagInfo(0x0038, "BatteryType", N_("BatteryType"), N_("BatteryType"), canonId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x003c, "AFInfo3", N_("AFInfo3"), N_("AFInfo3"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0081, "RawDataOffset", N_("RawDataOffset"), N_("RawDataOffset"), canonId, makerTags, signedLong, -1, printValue),
TagInfo(0x0083, "OriginalDecisionDataOffset", N_("Original Decision Data Offset"), N_("Original decision data offset"), canonId, makerTags, signedLong, -1, printValue),
TagInfo(0x00a4, "WhiteBalanceTable", N_("White Balance Table"), N_("White balance table"), canonId, makerTags, unsignedShort, -1, printValue),
// TagInfo(0x0090, "CustomFunctions1D", N_("CustomFunctions1D"), N_("CustomFunctions1D"), canonId, makerTags, unsignedShort, -1, printValue), // ToDo
// TagInfo(0x0091, "PersonalFunctions", N_("PersonalFunctions"), N_("PersonalFunctions"), canonId, makerTags, unsignedShort, -1, printValue), // ToDo
// TagInfo(0x0092, "PersonalFunctionValues", N_("PersonalFunctionValues"), N_("PersonalFunctionValues"), canonId, makerTags, unsignedShort, -1, printValue), // ToDo
TagInfo(0x0093, "CanonFileInfo", N_("CanonFileInfo"), N_("CanonFileInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0094, "AFPointsInFocus1D", N_("AFPointsInFocus1D"), N_("AFPointsInFocus1D"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0095, "LensModel", N_("Lens Model"), N_("Lens model"), canonId, makerTags, asciiString, -1, printValue),
TagInfo(0x0096, "InternalSerialNumber", N_("Internal Serial Number"), N_("Internal serial number"), canonId, makerTags, asciiString, -1, printValue),
TagInfo(0x0097, "DustRemovalData", N_("Dust Removal Data"), N_("Dust removal data"), canonId, makerTags, asciiString, -1, printValue),
TagInfo(0x0099, "CustomFunctions", N_("Custom Functions"), N_("Custom functions"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x009a, "AspectInfo", N_("AspectInfo"), N_("AspectInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00a0, "ProcessingInfo", N_("Processing Info"), N_("Processing info"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00a1, "ToneCurveTable", N_("ToneCurveTable"), N_("ToneCurveTable"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00a2, "SharpnessTable", N_("SharpnessTable"), N_("SharpnessTable"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00a3, "SharpnessFreqTable", N_("SharpnessTable"), N_("SharpnessTable"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00a4, "WhiteBalanceTable", N_("SharpnessTable"), N_("SharpnessTable"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00a9, "ColorBalance", N_("ColorBalance"), N_("ColorBalance"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00aa, "MeasuredColor", N_("Measured Color"), N_("Measured color"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00ae, "ColorTemperature", N_("ColorTemperature"), N_("ColorTemperature"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00b0, "CanonFlags", N_("CanonFlags"), N_("CanonFlags"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00b1, "ModifiedInfo", N_("ModifiedInfo"), N_("ModifiedInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00b2, "ToneCurveMatching", N_("ToneCurveMatching"), N_("ToneCurveMatching"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00b3, "WhiteBalanceMatching", N_("WhiteBalanceMatching"), N_("WhiteBalanceMatching"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00b4, "ColorSpace", N_("ColorSpace"), N_("ColorSpace"), canonId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonColorSpace)),
TagInfo(0x00b5, "0x00b5", "0x00b5", N_("Unknown"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00b6, "PreviewImageInfo", "PreviewImageInfo", N_("PreviewImageInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00c0, "0x00c0", "0x00c0", N_("Unknown"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00c1, "0x00c1", "0x00c1", N_("Unknown"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x00d0, "VRDOffset", N_("VRD Offset"), N_("VRD offset"), canonId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x00e0, "SensorInfo", N_("Sensor Info"), N_("Sensor info"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x2600, "AFInfoSize", N_("AF InfoSize"), N_("AF InfoSize"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2601, "AFAreaMode", N_("AF Area Mode"), N_("AF Area Mode"), canonId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonAFAreaMode)),
TagInfo(0x2602, "AFNumPoints", N_("AF NumPoints"), N_("AF NumPoints"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2603, "AFValidPoints", N_("AF ValidPoints"), N_("AF ValidPoints"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2604, "AFCanonImageWidth", N_("AF ImageWidth"), N_("AF ImageWidth"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2605, "AFCanonImageHeight", N_("AF ImageHeight"), N_("AF ImageHeight"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2606, "AFImageWidth", N_("AF Width"), N_("AF Width"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2607, "AFImageHeight", N_("AF Height"), N_("AF Height"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2608, "AFAreaWidths", N_("AF Area Widths"), N_("AF Area Widths"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x2609, "AFAreaHeights", N_("AF Area Heights"), N_("AF Area Heights"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x260a, "AFXPositions", N_("AF X Positions"), N_("AF X Positions"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x260b, "AFYPositions", N_("AF Y Positions"), N_("AF Y Positions"), canonId, makerTags, signedShort, -1, printValue),
TagInfo(0x260c, "AFPointsInFocus", N_("AF Points in Focus"), N_("AF Points in Focus"), canonId, makerTags, signedShort, -1,printBitmask),
TagInfo(0x260d, "AFPointsSelected", N_("AF Points Selected"), N_("AF Points Selected"), canonId, makerTags, signedShort, -1, printBitmask),
TagInfo(0x260e, "AFPointsUnusable", N_("AF Points Unusable"), N_("AF Points Unusable"), canonId, makerTags, signedShort, -1, printBitmask),
TagInfo(0x4001, "ColorData", N_("Color Data"), N_("Color data"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4002, "CRWParam", N_("CRWParam"), N_("CRWParam"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4003, "ColorInfo", N_("ColorInfo"), N_("ColorInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4005, "Flavor", N_("Flavor"), N_("Flavor"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4008, "PictureStyleUserDef", N_("PictureStyleUserDef"), N_("PictureStyleUserDef"), canonId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonPictureStyle)),
// TagInfo(0x4009, "PictureStylePC", N_("PictureStylePC"), N_("PictureStylePC"), canonId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonPictureStyle)),
TagInfo(0x4010, "CustomPictureStyleFileName", N_("CustomPictureStyleFileName"), N_("CustomPictureStyleFileName"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4013, "AFMicroAdj", N_("AFMicroAdj"), N_("AFMicroAdj"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4015, "VignettingCorr", N_("VignettingCorr"), N_("VignettingCorr"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4016, "VignettingCorr2", N_("VignettingCorr2"), N_("VignettingCorr2"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4018, "LightingOpt", N_("LightingOpt"), N_("LightingOpt"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4018, "LensInfo", N_("LensInfo"), N_("LensInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4020, "AmbienceInfo", N_("AmbienceInfo"), N_("AmbienceInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4021, "MultiExp", N_("MultiExp"), N_("MultiExp"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4024, "FilterInfo", N_("FilterInfo"), N_("FilterInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4025, "HDRInfo", N_("HDRInfo"), N_("HDRInfo"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x4028, "AFConfig", N_("AFConfig"), N_("AFConfig"), canonId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x403f, "RawBurstModeRoll", N_("RawBurstModeRoll"), N_("RawBurstModeRoll"), canonId, makerTags, unsignedShort, -1, printValue),
// End of list marker
TagInfo(0xffff, "(UnknownCanonMakerNoteTag)", "(UnknownCanonMakerNoteTag)", N_("Unknown CanonMakerNote tag"), canonId, makerTags, asciiString, -1, printValue)
};
const TagInfo* CanonMakerNote::tagList()
{
return tagInfo_;
}
// Canon Movie Info Tag
const TagInfo CanonMakerNote::tagInfoMv_[] = {
TagInfo(0x0001, "FrameRate", N_("FrameRate"), N_("FrameRate"), canonMvId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0002, "FrameCount", N_("FrameCount"), N_("FrameCount"), canonMvId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0004, "FrameCount", N_("FrameCount"), N_("FrameCount"), canonMvId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0006, "FrameRate", N_("FrameCount"), N_("FrameCount"), canonMvId, makerTags, unsignedRational, -1, printValue),
TagInfo(0x006a, "Duration", N_("Duration"), N_("Duration"), canonMvId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x006c, "AudioBitrate", N_("Audio Bitrate"), N_("Audio Bitrate"), canonMvId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x006e, "AudioSampleRate", N_("Audio Sample Rate"), N_("Audio Sample Rate"), canonMvId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0070, "AudioChannels", N_("Audio Channels"), N_("Audio Channels"), canonMvId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0074, "VideoCodec", N_("Video Codec"), N_("Video Codec"), canonMvId, makerTags, asciiString, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListMv()
{
return tagInfoMv_;
}
// MyColors, tag 0x001d
extern const TagDetails canonMyColors[] = {
{ 0, N_("Off") },
{ 1, N_("Positive Film") },
{ 2, N_("Light Skin Tone") },
{ 3, N_("Dark Skin Tone") },
{ 4, N_("Vivid Blue") },
{ 5, N_("Vivid Green") },
{ 6, N_("Vivid Red") },
{ 7, N_("Color Accent") },
{ 8, N_("Color Swap") },
{ 9, N_("Custom") },
{ 12, N_("Vivid") },
{ 13, N_("Neutral") },
{ 14, N_("Sepia") },
{ 15, N_("B&W") }
};
// Canon My Colors Info Tag
const TagInfo CanonMakerNote::tagInfoMc_[] = {
TagInfo(0x0002, "MyColorMode", N_("My Color Mode"), N_("My Color Mode"), canonMyColorID, makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonMyColors))
};
const TagInfo* CanonMakerNote::tagListMc()
{
return tagInfoMc_;
}
// Canon FaceDetect 1 Info Tag
const TagInfo CanonMakerNote::tagInfoFcd1_[] = {
TagInfo(0x0002, "FacesDetected", N_("Faces Detected"), N_("Faces Detected"), canonFcd1Id, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0003, "FacesDetectedFrameSize", N_("Faces Detected Frame Size"), N_("Faces Detected Frame Size"), canonFcd1Id, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0008, "Face1Position", N_("Face 1 Position"), N_("Face 1 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000a, "Face2Position", N_("Face 2 Position"), N_("Face 2 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000c, "Face3Position", N_("Face 3 Position"), N_("Face 3 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000e, "Face4Position", N_("Face 4 Position"), N_("Face 4 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0010, "Face5Position", N_("Face 5 Position"), N_("Face 5 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0012, "Face6Position", N_("Face 6 Position"), N_("Face 6 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0014, "Face7Position", N_("Face 7 Position"), N_("Face 7 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0016, "Face8Position", N_("Face 8 Position"), N_("Face 8 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0018, "Face9Position", N_("Face 9 Position"), N_("Face 9 Position"), canonFcd1Id, makerTags, signedShort, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListFcd1()
{
return tagInfoFcd1_;
}
// Canon FaceDetect 2 Info Tag
const TagInfo CanonMakerNote::tagInfoFcd2_[] = {
TagInfo(0x0001, "FaceWidth", N_("Face Width"), N_("Faces Width"), canonFcd2Id, makerTags, unsignedByte, -1, printValue),
TagInfo(0x0002, "FacesDetected", N_("Faces Detected"), N_("Faces Detected"), canonFcd2Id, makerTags, unsignedByte, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListFcd2()
{
return tagInfoFcd2_;
}
// Canon ContrastInfo, tag 0x001d
extern const TagDetails canonContrastInfo[] = {
{ 0x0, N_("Off") },
{ 0x8, N_("On") },
{ 0xfff, N_("n/a") }
};
// Canon Contrast Info Tag
const TagInfo CanonMakerNote::tagInfoCo_[] = {
TagInfo(0x0004, "IntelligentContrast", N_("Intelligent Contrast"), N_("Intelligent Contrast"), canonContrastId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(canonContrastInfo)),
};
const TagInfo* CanonMakerNote::tagListCo()
{
return tagInfoCo_;
}
// Canon WhiteBalance Info Tag
const TagInfo CanonMakerNote::tagInfoWbi_[] = {
TagInfo(0x0002, "WB_GRGBLevelsAuto", N_("WB_G RGB Levels Auto"), N_("WB_G RGB Levels Auto"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x000a, "WB_GRGBLevelsDaylight", N_("WB_G RGB Levels Daylight"), N_("WB_G RGB Levels Daylight"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0012, "WB_GRGBLevelsCloudy", N_("WB_G RGB Levels Cloudy"), N_("WB_G RGB Levels Cloudy"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x001a, "WB_GRGBLevelsTungsten", N_("WB_G RGB Levels Tungsten"), N_("WB_G RGB Levels Tungsten"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0022, "WB_GRGBLevelsFluorescent", N_("WB_G RGB Levels Flourescent"), N_("WB_G RGB Levels Flourescent"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x002a, "WB_GRGBLevelsFluorHigh", N_("WB_G RGB Levels Flourecent High"), N_("WB_G RGB Levels Flourecent High"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0032, "WB_GRGBLevelsFlash", N_("WB_G RGB Levels Flash"), N_("WB_G RGB Levels Flash"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x003a, "WB_GRGBLevelsUnderwater", N_("WB_G RGB Levels Underwater"), N_("WB_G RGB Levels Underwater"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0042, "WB_GRGBLevelsCustom1", N_("WB_G RGB Levels Custom 1"), N_("WB_G RGB Levels Custom 1"), canonWbId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x004a, "WB_GRGBLevelsCustom2", N_("WB_G RGB Levels Custom 2"), N_("WB_G RGB Levels Custom 2"), canonWbId, makerTags, unsignedLong, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListWbi()
{
return tagInfoWbi_;
}
// Canon FaceDetect 3 Info Tag
const TagInfo CanonMakerNote::tagInfoFcd3_[] = {
TagInfo(0x0003, "FacesDetected", N_("Face Detected"), N_("Faces Detected"), canonFcd3Id, makerTags, unsignedShort, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListFcd3()
{
return tagInfoFcd3_;
}
// Canon AFInfo2 Info Tag
const TagInfo CanonMakerNote::tagInfoAf2_[] = {
TagInfo(0x0000, "AFInfoSize", N_("AF InfoSize"), N_("AF InfoSize"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0001, "AFAreaMode", N_("AF Area Mode"), N_("AF Area Mode"), canonAf2Id, makerTags, signedShort, -1, EXV_PRINT_TAG(canonAFAreaMode)),
TagInfo(0x0002, "AFNumPoints", N_("AF NumPoints"), N_("AF NumPoints"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0003, "AFValidPoints", N_("AF ValidPoints"), N_("AF ValidPoints"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0004, "AFCanonImageWidth", N_("AF ImageWidth"), N_("AF ImageWidth"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0005, "AFCanonImageHeight", N_("AF ImageHeight"), N_("AF ImageHeight"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0006, "AFImageWidth", N_("AF Width"), N_("AF Width"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0007, "AFImageHeight", N_("AF Height"), N_("AF Height"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0008, "AFAreaWidths", N_("AF Area Widths"), N_("AF Area Widths"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0009, "AFAreaHeights", N_("AF Area Heights"), N_("AF Area Heights"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000a, "AFXPositions", N_("AF X Positions"), N_("AF X Positions"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000b, "AFYPositions", N_("AF Y Positions"), N_("AF Y Positions"), canonAf2Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000c, "AFPointsInFocus", N_("AF Points in Focus"), N_("AF Points in Focus"), canonAf2Id, makerTags, signedShort, -1,printBitmask),
TagInfo(0x000d, "AFPointsSelected", N_("AF Points Selected"), N_("AF Points Selected"), canonAf2Id, makerTags, signedShort, -1, printBitmask),
TagInfo(0x000e, "AFPrimaryPoint", N_("AF Primary Point"), N_("AF Primary Point"), canonAf2Id, makerTags, signedShort, -1, printBitmask),
};
const TagInfo* CanonMakerNote::tagListAf2()
{
return tagInfoAf2_;
}
// Canon AFInfo3 Info Tag
const TagInfo CanonMakerNote::tagInfoAf3_[] = {
TagInfo(0x0000, "AFInfoSize", N_("AF InfoSize"), N_("AF InfoSize"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0001, "AFAreaMode", N_("AF Area Mode"), N_("AF Area Mode"), canonAf3Id, makerTags, signedShort, -1, EXV_PRINT_TAG(canonAFAreaMode)),
TagInfo(0x0002, "AFNumPoints", N_("AF NumPoints"), N_("AF NumPoints"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0003, "AFValidPoints", N_("AF ValidPoints"), N_("AF ValidPoints"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0004, "AFCanonImageWidth", N_("AF ImageWidth"), N_("AF ImageWidth"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0005, "AFCanonImageHeight", N_("AF ImageHeight"), N_("AF ImageHeight"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0006, "AFImageWidth", N_("AF Width"), N_("AF Width"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0007, "AFImageHeight", N_("AF Height"), N_("AF Height"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0008, "AFAreaWidths", N_("AF Area Widths"), N_("AF Area Widths"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x0009, "AFAreaHeights", N_("AF Area Heights"), N_("AF Area Heights"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000a, "AFXPositions", N_("AF X Positions"), N_("AF X Positions"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000b, "AFYPositions", N_("AF Y Positions"), N_("AF Y Positions"), canonAf3Id, makerTags, signedShort, -1, printValue),
TagInfo(0x000c, "AFPointsInFocus", N_("AF Points in Focus"), N_("AF Points in Focus"), canonAf3Id, makerTags, signedShort, -1,printBitmask),
TagInfo(0x000d, "AFPointsSelected", N_("AF Points Selected"), N_("AF Points Selected"), canonAf3Id, makerTags, signedShort, -1, printBitmask),
TagInfo(0x000e, "AFPrimaryPoint", N_("AF Primary Point"), N_("AF Primary Point"), canonAf3Id, makerTags, signedShort, -1, printBitmask),
};
const TagInfo* CanonMakerNote::tagListAf3()
{
return tagInfoAf3_;
}
// Canon Aspect Info, tag 0x001d
extern const TagDetails canonAspectInfo[] = {
{ 0, N_("3:2") },
{ 1, N_("1:1") },
{ 2, N_("4:3") },
{ 7, N_("16:9") },
{ 8, N_("4:5") },
{ 12, N_("3:2 (APS-H crop)") },
{ 13, N_("3:2 (APS-C crop)") }
};
// Canon Aspect Info Tag
const TagInfo CanonMakerNote::tagInfoAs_[] = {
TagInfo(0x0000, "AspectRatio", N_("Aspect Ratio"), N_("Aspect Ratio"), canonAsId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0001, "CroppedImageWidth", N_("Cropped Image Width"), N_("Cropped Image Width"), canonAsId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0002, "CroppedImageHeight", N_("Cropped Image Height"), N_("Cropped Image Height"), canonAsId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0003, "CroppedImageLeft", N_("Cropped Image Left"), N_("Cropped Image Left"), canonAsId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0004, "CroppedImageTop", N_("Cropped Image Top"), N_("Cropped Image Top"), canonAsId, makerTags, unsignedLong, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListAs()
{
return tagInfoAs_;
}
// Canon Color Balance Info Tag
const TagInfo CanonMakerNote::tagInfoCbi_[] = {
TagInfo(0x0001, "WB_RGGBLevelsAuto", N_("WB_RGGB Levels Auto"), N_("WB_RGGB Levels Auto"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x0005, "WB_RGGBLevelsDaylight", N_("WB_RGGB Levels Daylight"), N_("WB_RGGB Levels Daylight"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x000d, "WB_RGGBLevelsShade", N_("WB_RGGB Levels Shade"), N_("WB_RGGB Levels Shade"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x001a, "WB_RGGBLevelsCloudy", N_("WB_RGGB Levels Cloudy"), N_("WB_RGGB Levels Cloudy"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x0011, "WB_RGGBLevelsTungsten", N_("WB_RGGB Levels Tungsten"), N_("WB_RGGB Levels Tungsten"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x0015, "WB_RGGBLevelsFlourescent", N_("WB_RGGB Levels Flourecent"), N_("WB_RGGB Levels Flourecent"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x0032, "WB_RGGBLevelsFlash", N_("WB_RGGB Levels Flash"), N_("WB_RGGB Levels Flash"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x001d, "WB_RGGBLevelsCustomBlackLevels", N_("WB_RGGB Levels Custom Black Levels"), N_("WB_RGGB Levels Custom Black Levels"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x0021, "WB_RGGBLevelsKelvin", N_("WB_RGGB Levels Kelvin"), N_("WB_RGGB Levels Kelvin"), canonCbId, makerTags, signedShort, -1, printValue),
TagInfo(0x0025, "WB_RGGBBlackLevels", N_("WB_RGGB Black Levels"), N_("WB_RGGB Black Levels"), canonCbId, makerTags, signedShort, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListCbi()
{
return tagInfoCbi_;
}
// Canon Flags Tag
const TagInfo CanonMakerNote::tagInfoFl_[] = {
TagInfo(0x0001, "ModifiedParamFlag", N_("Modified Param Flag"), N_("Modified Param Flag"), canonFlId, makerTags, signedShort, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListFl()
{
return tagInfoFl_;
}
// Canon Modified ToneCurve Info, tag 0x0001
extern const TagDetails canonModifiedToneCurve[] = {
{ 0, N_("Standard") },
{ 1, N_("Manual") },
{ 2, N_("Custom") }
};
// Canon Modified Sharpness Freq Info, tag 0x0002
extern const TagDetails canonModifiedSharpnessFreq[] = {
{ 0, N_("n/a") },
{ 1, N_("Lowest") },
{ 2, N_("Low") },
{ 3, N_("Standard") },
{ 4, N_("High") },
{ 5, N_("Highest") }
};
// Canon ModifiedInfo Tag
const TagInfo CanonMakerNote::tagInfoMo_[] = {
TagInfo(0x0001, "ModifiedToneCurve", N_("Modified ToneCurve"), N_("Modified ToneCurve"), canonMoID, makerTags, signedShort, -1, EXV_PRINT_TAG(canonModifiedToneCurve)),
TagInfo(0x0002, "ModifiedSharpness", N_("Modified Sharpness"), N_("Modified Sharpness"), canonMoID, makerTags, signedShort, -1, EXV_PRINT_TAG(canonModifiedSharpnessFreq)),
TagInfo(0x0003, "ModifiedSharpnessFreq", N_("Modified Sharpness Freq"), N_("Modified Sharpness Freq"), canonMoID, makerTags, signedShort, -1, printValue),
TagInfo(0x0004, "ModifiedSensorRedLevel", N_("Modified Sensor Red Level"), N_("Modified Sensor Red Level"), canonMoID, makerTags, signedShort, -1, printValue),
TagInfo(0x0005, "ModifiedSensorBlueLevel", N_("Modified Sensor Blue Level"), N_("Modified Sensor Blue Level"), canonMoID, makerTags, signedShort, -1, printValue),
TagInfo(0x0006, "ModifiedWhiteBalanceRed", N_("Modified White Balance Red"), N_("Modified White Balance Red"), canonMoID, makerTags, signedShort, -1, printValue),
TagInfo(0x0007, "ModifiedWhiteBalanceBlue", N_("Modified White Balance Blue"), N_("Modified White Balance Blue"), canonMoID, makerTags, signedShort, -1, printValue),
TagInfo(0x0008, "ModifiedWhiteBalance", N_("Modified White Balance"), N_("Modified White Balance"), canonMoID, makerTags, signedShort, -1, EXV_PRINT_TAG(canonSiWhiteBalance)),
TagInfo(0x0009, "ModifiedColorTemp", N_("Modified Color Temp"), N_("Modified Color Temp"), canonMoID, makerTags, signedShort, -1, printValue),
TagInfo(0x000a, "ModifiedPictureStyle", N_("Modified Picture Style"), N_("Modified Picture Style"), canonMoID, makerTags, signedShort, -1, EXV_PRINT_TAG(canonPictureStyle)),
TagInfo(0x000b, "ModifiedDigitalGain", N_("Modified Param Flag"), N_("Modified Param Flag"), canonMoID, makerTags, signedShort, -1, printValue),
};
const TagInfo* CanonMakerNote::tagListMo()
{
return tagInfoMo_;
}
// Canon Preview Quality Info, tag 0x0001
extern const TagDetails canonPreviewQuality[] = {
{ -1, N_("n/a") },
{ 1, N_("Economy") },
{ 2, N_("Normal") },
{ 3, N_("Fine") },
{ 4, N_("RAW") },
{ 5, N_("Superfine") },
{ 7, N_("CRAW") },
{ 130, N_("Normal Movie") },
{ 131, N_("Movie (2)") }
};
// Canon Preview Image Info Tag
const TagInfo CanonMakerNote::tagInfoPreI_[] = {
TagInfo(0x0001, "PreviewQuality", N_("Preview Quality"), N_("Preview Quality"), canonPreID, makerTags, unsignedLong, -1, EXV_PRINT_TAG(canonPreviewQuality)),
TagInfo(0x0002, "PreviewImageLength", N_("Preview Image Length"), N_("Preview Image Length"), canonPreID, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0003, "PreviewImageWidth", N_("Preview Image Width"), N_("Preview Image Width"), canonPreID, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0004, "PreviewImageHeight", N_("Preview Image Height"), N_("Preview Image Height"), canonPreID, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0005, "PreviewImageStart", N_("Preview Image Start"), N_("Preview Image Start"), canonPreID, makerTags, unsignedLong, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListPreI()
{
return tagInfoPreI_;
}
// Canon Color Info Tag
const TagInfo CanonMakerNote::tagInfoCi_[] = {
TagInfo(0x0001, "Saturation", N_("Saturation"), N_("Saturation"), canonCiId, makerTags, signedShort, -1, printValue),
TagInfo(0x0002, "ColorTone", N_("Color Tone"), N_("Color Tone"), canonCiId, makerTags, signedShort, -1, printValue),
TagInfo(0x0003, "ColorSpace", N_("Color Space"), N_("Color Space"), canonCiId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonColorSpace))
};
const TagInfo* CanonMakerNote::tagListCi()
{
return tagInfoCi_;
}
// Canon AFMicroAdjMode Quality Info, tag 0x0001
extern const TagDetails canonAFMicroAdjMode[] = {
{ 0, N_("Disable") },
{ 1, N_("Adjust all by the same amount") },
{ 2, N_("Adjust by lens") }
};
// Canon AFMicroAdj Info Tag
const TagInfo CanonMakerNote::tagInfoAfMiAdj_[] = {
TagInfo(0x0001, "AFMicroAdjMode", N_("AFMicroAdjMode"), N_("AFMicroAdjMode"), canonAfMiAdjId, makerTags, signedLong, -1, EXV_PRINT_TAG(canonAFMicroAdjMode)),
TagInfo(0x0002, "AFMicroAdjValue", N_("AF Micro Adj Value"), N_("AF Micro Adj Value"), canonAfMiAdjId, makerTags, signedRational, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListAfMiAdj()
{
return tagInfoAfMiAdj_;
}
// Canon VignettingCorr Tag
const TagInfo CanonMakerNote::tagInfoVigCor_[] = {
TagInfo(0x0000, "VignettingCorrVersion", N_("Vignetting Corr Version"), N_("Vignetting Corr Version"), canonVigCorId, makerTags, unsignedShort, -1, printValue),
TagInfo(0x0002, "PeripheralLighting", N_("Peripheral Lighting"), N_("Peripheral Lighting"), canonVigCorId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)),
TagInfo(0x0003, "DistortionCorrection", N_("Distortion Correction"), N_("Distortion Correction"), canonVigCorId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)),
TagInfo(0x0004, "ChromaticAberrationCorr", N_("Chromatic Aberration Corr"), N_("Chromatic Aberration Corr"), canonVigCorId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)),
TagInfo(0x0005, "ChromaticAberrationCorr", N_("Chromatic Aberration Corr"), N_("Chromatic Aberration Corr"), canonVigCorId, makerTags, signedShort, -1, EXV_PRINT_TAG(canonOffOn)),
TagInfo(0x0006, "PeripheralLightingValue", N_("Peripheral Lighting Value"), N_("Peripheral Lighting Value"), canonVigCorId, makerTags, signedShort, -1, printValue),
TagInfo(0x0009, "DistortionCorrectionValue", N_("Distortion Correction Value"), N_("Distortion Correction Value"), canonVigCorId, makerTags, signedShort, -1, printValue),
TagInfo(0x000b, "OriginalImageWidth", N_("Original Image Width"), N_("Original Image Width"), canonVigCorId, makerTags, signedShort, -1, printValue),
TagInfo(0x000c, "OriginalImageHeight", N_("Original Image Height"), N_("Original Image Height"), canonVigCorId, makerTags, signedShort, -1, printValue)
};
const TagInfo* CanonMakerNote::tagListVigCor()
{
return tagInfoVigCor_;
}
// Canon VignettingCorr2 Tag
const TagInfo CanonMakerNote::tagInfoVigCor2_[] = {
TagInfo(0x0005, "PeripheralLightingSetting", N_("Peripheral Lighting Setting"), N_("Peripheral Lighting Setting"), canonVigCor2Id, makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)),
TagInfo(0x0006, "ChromaticAberrationSetting", N_("Chromatic Aberration Setting"), N_("Chromatic Aberration Setting"), canonVigCor2Id, makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn)),
TagInfo(0x0007, "DistortionCorrectionSetting", N_("Distortion Correction Setting"), N_("Distortion Correction Setting"), canonVigCor2Id, makerTags, signedLong, -1, EXV_PRINT_TAG(canonOffOn))
};