-
Notifications
You must be signed in to change notification settings - Fork 282
/
minoltamn_int.cpp
2495 lines (2280 loc) · 118 KB
/
minoltamn_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.
*/
// *****************************************************************************
// included header files
#include "minoltamn_int.hpp"
#include "tags_int.hpp"
#include "makernote_int.hpp"
#include "value.hpp"
#include "exif.hpp"
#include "i18n.h" // NLS support.
#include "datasets.hpp"
#include <string>
#include <sstream>
#include <iomanip>
#include <cassert>
#include <cstring>
#include <stdio.h> // popen to call exiftool
#include <string.h>
// *****************************************************************************
// class member definitions
namespace Exiv2 {
namespace Internal {
// -- Standard Minolta Makernotes tags ---------------------------------------------------------------
//! Lookup table to translate Minolta color mode values to readable labels
extern const TagDetails minoltaColorMode[] = {
{ 0, N_("Natural Color") },
{ 1, N_("Black & White") },
{ 2, N_("Vivid Color") },
{ 3, N_("Solarization") },
{ 4, N_("AdobeRGB") },
{ 5, N_("Sepia") },
{ 9, N_("Natural") },
{ 12, N_("Portrait") },
{ 13, N_("Natural sRGB") },
{ 14, N_("Natural+ sRGB") },
{ 15, N_("Landscape") },
{ 16, N_("Evening") },
{ 17, N_("Night Scene") },
{ 18, N_("Night Portrait") }
};
//! Lookup table to translate Minolta image quality values to readable labels
extern const TagDetails minoltaImageQuality[] = {
{ 0, N_("Raw") },
{ 1, N_("Super Fine") },
{ 2, N_("Fine") },
{ 3, N_("Standard") },
{ 4, N_("Economy") },
{ 5, N_("Extra Fine") }
};
//! Lookup table to translate Minolta image stabilization values
extern const TagDetails minoltaImageStabilization[] = {
{ 1, N_("Off") },
{ 5, N_("On") }
};
// Minolta Tag Info
const TagInfo MinoltaMakerNote::tagInfo_[] = {
TagInfo(0x0000, "Version", N_("Makernote Version"),
N_("String 'MLT0' (not null terminated)"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0001, "CameraSettingsStdOld", N_("Camera Settings (Std Old)"),
N_("Standard Camera settings (Old Camera models like D5, D7, S304, and S404)"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0003, "CameraSettingsStdNew", N_("Camera Settings (Std New)"),
N_("Standard Camera settings (New Camera Models like D7u, D7i, and D7hi)"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0004, "CameraSettings7D", N_("Camera Settings (7D)"),
N_("Camera Settings (for Dynax 7D model)"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0018, "ImageStabilizationData", N_("Image Stabilization Data"),
N_("Image stabilization data"),
minoltaId, makerTags, undefined, -1, printValue),
// TODO: Implement WB Info A100 tags decoding.
TagInfo(0x0020, "WBInfoA100", N_("WB Info A100"),
N_("White balance information for the Sony DSLR-A100"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0040, "CompressedImageSize", N_("Compressed Image Size"),
N_("Compressed image size"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0081, "Thumbnail", N_("Thumbnail"),
N_("Jpeg thumbnail 640x480 pixels"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0088, "ThumbnailOffset", N_("Thumbnail Offset"),
N_("Offset of the thumbnail"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0089, "ThumbnailLength", N_("Thumbnail Length"),
N_("Size of the thumbnail"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0100, "SceneMode", N_("Scene Mode"),
N_("Scene Mode"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonySceneMode),
// TODO: for A100, use Sony table from printMinoltaSonyColorMode().
TagInfo(0x0101, "ColorMode", N_("Color Mode"),
N_("Color mode"),
minoltaId, makerTags, unsignedLong, -1, EXV_PRINT_TAG(minoltaColorMode)),
TagInfo(0x0102, "Quality", N_("Image Quality"),
N_("Image quality"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyImageQuality),
// TODO: Tag 0x0103 : quality or image size (see ExifTool doc).
TagInfo(0x0103, "0x0103", N_("0x0103"),
N_("0x0103"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0104, "FlashExposureComp", N_("Flash Exposure Compensation"),
N_("Flash exposure compensation in EV"),
minoltaId, makerTags, signedRational, -1, print0x9204),
TagInfo(0x0105, "Teleconverter", N_("Teleconverter Model"),
N_("Teleconverter Model"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyTeleconverterModel),
TagInfo(0x0107, "ImageStabilization", N_("Image Stabilization"),
N_("Image stabilization"),
minoltaId, makerTags, unsignedLong, -1, EXV_PRINT_TAG(minoltaImageStabilization)),
TagInfo(0x0109, "RawAndJpgRecording", N_("RAW+JPG Recording"),
N_("RAW and JPG files recording"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyBoolValue),
TagInfo(0x010a, "ZoneMatching", N_("Zone Matching"),
N_("Zone matching"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyZoneMatching),
TagInfo(0x010b, "ColorTemperature", N_("Color Temperature"),
N_("Color temperature"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x010c, "LensID", N_("Lens ID"),
N_("Lens identifier"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyLensID),
TagInfo(0x0111, "ColorCompensationFilter", N_("Color Compensation Filter"),
N_("Color Compensation Filter: negative is green, positive is magenta"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0112, "WhiteBalanceFineTune", N_("White Balance Fine Tune"),
N_("White Balance Fine Tune Value"),
minoltaId, makerTags, unsignedLong, -1, printValue),
TagInfo(0x0113, "ImageStabilizationA100", N_("Image Stabilization A100"),
N_("Image Stabilization for the Sony DSLR-A100"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyBoolValue),
// TODO: implement CameraSettingsA100 tags decoding.
TagInfo(0x0114, "CameraSettings5D", N_("Camera Settings (5D)"),
N_("Camera Settings (for Dynax 5D model)"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0115, "WhiteBalance", N_("White Balance"),
N_("White balance"),
minoltaId, makerTags, unsignedLong, -1, printMinoltaSonyWhiteBalanceStd),
TagInfo(0x0e00, "PrintIM", N_("Print IM"),
N_("PrintIM information"),
minoltaId, makerTags, undefined, -1, printValue),
TagInfo(0x0f00, "CameraSettingsZ1", N_("Camera Settings (Z1)"),
N_("Camera Settings (for Z1, DImage X, and F100 models)"),
minoltaId, makerTags, undefined, -1, printValue),
// End of list marker
TagInfo(0xffff, "(UnknownMinoltaMakerNoteTag)", "(UnknownMinoltaMakerNoteTag)",
N_("Unknown Minolta MakerNote tag"),
minoltaId, makerTags, asciiString, -1, printValue)
};
const TagInfo* MinoltaMakerNote::tagList()
{
return tagInfo_;
}
// -- Standard Minolta camera settings ---------------------------------------------------------------
//! Lookup table to translate Minolta Std camera settings exposure mode values to readable labels
extern const TagDetails minoltaExposureModeStd[] = {
{ 0, N_("Program") },
{ 1, N_("Aperture priority") },
{ 2, N_("Shutter priority") },
{ 3, N_("Manual") }
};
//! Lookup table to translate Minolta Std camera settings flash mode values to readable labels
extern const TagDetails minoltaFlashModeStd[] = {
{ 0, N_("Fill flash") },
{ 1, N_("Red-eye reduction") },
{ 2, N_("Rear flash sync") },
{ 3, N_("Wireless") },
{ 4, N_("Off") }
};
//! Lookup table to translate Minolta Std camera settings white balance values to readable labels
extern const TagDetails minoltaWhiteBalanceStd[] = {
{ 0, N_("Auto") },
{ 1, N_("Daylight") },
{ 2, N_("Cloudy") },
{ 3, N_("Tungsten") },
{ 5, N_("Custom") },
{ 7, N_("Fluorescent") },
{ 8, N_("Fluorescent 2") },
{ 11, N_("Custom 2") },
{ 12, N_("Custom 3") }
};
//! Lookup table to translate Minolta Std camera settings image size values to readable labels
extern const TagDetails minoltaImageSizeStd[] = {
{ 0, N_("Full size") },
{ 1, "1600x1200" },
{ 2, "1280x960" },
{ 3, "640x480" },
{ 6, "2080x1560" },
{ 7, "2560x1920" },
{ 8, "3264x2176" }
};
//! Lookup table to translate Minolta Std camera settings image quality values to readable labels
extern const TagDetails minoltaImageQualityStd[] = {
{ 0, N_("Raw") },
{ 1, N_("Super fine") },
{ 2, N_("Fine") },
{ 3, N_("Standard") },
{ 4, N_("Economy") },
{ 5, N_("Extra fine") }
};
//! Lookup table to translate Minolta Std camera settings drive mode values to readable labels
extern const TagDetails minoltaDriveModeStd[] = {
{ 0, N_("Single Frame") },
{ 1, N_("Continuous") },
{ 2, N_("Self-timer") },
{ 4, N_("Bracketing") },
{ 5, N_("Interval") },
{ 6, N_("UHS continuous") },
{ 7, N_("HS continuous") }
};
//! Lookup table to translate Minolta Std camera settings metering mode values to readable labels
extern const TagDetails minoltaMeteringModeStd[] = {
{ 0, N_("Multi-segment") },
{ 1, N_("Center weighted average") },
{ 2, N_("Spot") }
};
//! Lookup table to translate Minolta Std camera settings digital zoom values to readable labels
extern const TagDetails minoltaDigitalZoomStd[] = {
{ 0, N_("Off") },
{ 1, N_("Electronic magnification") },
{ 2, "2x" }
};
//! Lookup table to translate Minolta Std camera bracket step mode values to readable labels
extern const TagDetails minoltaBracketStepStd[] = {
{ 0, "1/3 EV" },
{ 1, "2/3 EV" },
{ 2, "1 EV" }
};
//! Lookup table to translate Minolta Std camera settings AF points values to readable labels
extern const TagDetails minoltaAFPointsStd[] = {
{ 0, N_("Center") },
{ 1, N_("Top") },
{ 2, N_("Top-right") },
{ 3, N_("Right") },
{ 4, N_("Bottom-right") },
{ 5, N_("Bottom") },
{ 6, N_("Bottom-left") },
{ 7, N_("Left") },
{ 8, N_("Top-left") }
};
//! Lookup table to translate Minolta Std camera settings flash fired values to readable labels
extern const TagDetails minoltaFlashFired[] = {
{ 0, N_("Did not fire") },
{ 1, N_("Fired") }
};
//! Lookup table to translate Minolta Std camera settings sharpness values to readable labels
extern const TagDetails minoltaSharpnessStd[] = {
{ 0, N_("Hard") },
{ 1, N_("Normal") },
{ 2, N_("Soft") }
};
//! Lookup table to translate Minolta Std camera settings subject program values to readable labels
extern const TagDetails minoltaSubjectProgramStd[] = {
{ 0, N_("None") },
{ 1, N_("Portrait") },
{ 2, N_("Text") },
{ 3, N_("Night portrait") },
{ 4, N_("Sunset") },
{ 5, N_("Sports action") }
};
//! Lookup table to translate Minolta Std camera settings ISO settings values to readable labels
extern const TagDetails minoltaISOSettingStd[] = {
{ 0, "100" },
{ 1, "200" },
{ 2, "400" },
{ 3, "800" },
{ 4, N_("Auto") },
{ 5, "64" }
};
//! Lookup table to translate Minolta Std camera settings model values to readable labels
extern const TagDetails minoltaModelStd[] = {
{ 0, "DiMAGE 7 | X1 | X21 | X31" },
{ 1, "DiMAGE 5" },
{ 2, "DiMAGE S304" },
{ 3, "DiMAGE S404" },
{ 4, "DiMAGE 7i" },
{ 5, "DiMAGE 7Hi" },
{ 6, "DiMAGE A1" },
{ 7, "DiMAGE A2 | S414" },
{ 7, "DiMAGE A2 | S414" } // To silence compiler warning
};
//! Lookup table to translate Minolta Std camera settings interval mode values to readable labels
extern const TagDetails minoltaIntervalModeStd[] = {
{ 0, N_("Still image") },
{ 1, N_("Time-lapse movie") }
};
//! Lookup table to translate Minolta Std camera settings folder name values to readable labels
extern const TagDetails minoltaFolderNameStd[] = {
{ 0, N_("Standard form") },
{ 1, N_("Data form") }
};
//! Lookup table to translate Minolta Std camera settings color mode values to readable labels
extern const TagDetails minoltaColorModeStd[] = {
{ 0, N_("Natural color") },
{ 1, N_("Black and white") },
{ 2, N_("Vivid color") },
{ 3, N_("Solarization") },
{ 4, N_("Adobe RGB") }
};
//! Lookup table to translate Minolta Std camera settings wide focus zone values to readable labels
extern const TagDetails minoltaWideFocusZoneStd[] = {
{ 0, N_("No zone") },
{ 1, N_("Center zone (horizontal orientation)") },
{ 1, N_("Center zone (vertical orientation)") },
{ 1, N_("Left zone") },
{ 4, N_("Right zone") }
};
//! Lookup table to translate Minolta Std camera settings focus mode values to readable labels
extern const TagDetails minoltaFocusModeStd[] = {
{ 0, N_("Auto focus") },
{ 1, N_("Manual focus") }
};
//! Lookup table to translate Minolta Std camera settings focus area values to readable labels
extern const TagDetails minoltaFocusAreaStd[] = {
{ 0, N_("Wide focus (normal)") },
{ 1, N_("Spot focus") }
};
//! Lookup table to translate Minolta Std camera settings DEC switch position values to readable labels
extern const TagDetails minoltaDECPositionStd[] = {
{ 0, N_("Exposure") },
{ 1, N_("Contrast") },
{ 2, N_("Saturation") },
{ 3, N_("Filter") }
};
//! Lookup table to translate Minolta Std camera settings color profile values to readable labels
extern const TagDetails minoltaColorProfileStd[] = {
{ 0, N_("Not embedded") },
{ 1, N_("Embedded") }
};
//! Lookup table to translate Minolta Std camera settings data Imprint values to readable labels
extern const TagDetails minoltaDataImprintStd[] = {
{ 0, N_("None") },
{ 1, "YYYY/MM/DD" },
{ 2, "MM/DD/HH:MM" },
{ 3, N_("Text") },
{ 4, N_("Text + ID#") }
};
//! Lookup table to translate Minolta Std camera settings flash metering values to readable labels
extern const TagDetails minoltaFlashMeteringStd[] = {
{ 0, N_("ADI (Advanced Distance Integration)") },
{ 1, N_("Pre-flash TTl") },
{ 2, N_("Manual flash control") }
};
std::ostream& MinoltaMakerNote::printMinoltaExposureSpeedStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << (value.toLong()/8)-1;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaExposureTimeStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << (value.toLong()/8)-6;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaFNumberStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << (value.toLong()/8)-1;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaExposureCompensationStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << value.toLong()/256;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaFocalLengthStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << (value.toLong()/3)-2;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaDateStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << value.toLong() / 65536 << ":" << std::right << std::setw(2) << std::setfill('0')
<< (value.toLong() - value.toLong() / 65536 * 65536) / 256 << ":"
<< std::right << std::setw(2) << std::setfill('0') << value.toLong() % 256;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaTimeStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << std::right << std::setw(2) << std::setfill('0') << value.toLong() / 65536
<< ":" << std::right << std::setw(2) << std::setfill('0')
<< (value.toLong() - value.toLong() / 65536 * 65536) / 256 << ":"
<< std::right << std::setw(2) << std::setfill('0') << value.toLong() % 256;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaFlashExposureCompStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << (value.toLong()-6)/3;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaWhiteBalanceStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << value.toLong()/256;
return os;
}
std::ostream& MinoltaMakerNote::printMinoltaBrightnessStd(std::ostream& os, const Value& value, const ExifData*)
{
// From the PHP JPEG Metadata Toolkit
os << (value.toLong()/8)-6;
return os;
}
// Minolta Standard Camera Settings Tag Info (Old and New)
const TagInfo MinoltaMakerNote::tagInfoCsStd_[] = {
TagInfo(0x0001, "ExposureMode", N_("Exposure Mode"),
N_("Exposure mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaExposureModeStd)),
TagInfo(0x0002, "FlashMode", N_("Flash Mode"),
N_("Flash mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFlashModeStd)),
TagInfo(0x0003, "WhiteBalance", N_("White Balance"),
N_("White balance"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaWhiteBalanceStd)),
TagInfo(0x0004, "ImageSize", N_("Image Size"),
N_("Image size"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaImageSizeStd)),
TagInfo(0x0005, "Quality", N_("Image Quality"),
N_("Image quality"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaImageQualityStd)),
TagInfo(0x0006, "DriveMode", N_("Drive Mode"),
N_("Drive mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaDriveModeStd)),
TagInfo(0x0007, "MeteringMode", N_("Metering Mode"),
N_("Metering mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaMeteringModeStd)),
TagInfo(0x0008, "ISO", N_("ISO"),
N_("ISO Value"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaExposureSpeedStd),
TagInfo(0x0009, "ExposureTime", N_("Exposure Time"),
N_("Exposure time"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaExposureTimeStd),
TagInfo(0x000A, "FNumber", N_("FNumber"),
N_("The F-Number"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaFNumberStd),
TagInfo(0x000B, "MacroMode", N_("Macro Mode"),
N_("Macro mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaSonyBoolValue),
TagInfo(0x000C, "DigitalZoom", N_("Digital Zoom"),
N_("Digital zoom"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaDigitalZoomStd)),
TagInfo(0x000D, "ExposureCompensation", N_("Exposure Compensation"),
N_("Exposure compensation"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaExposureCompensationStd),
TagInfo(0x000E, "BracketStep", N_("Bracket Step"),
N_("Bracket step"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaBracketStepStd)),
TagInfo(0x0010, "IntervalLength", N_("Interval Length"),
N_("Interval length"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x0011, "IntervalNumber", N_("Interval Number"),
N_("Interval number"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x0012, "FocalLength", N_("Focal Length"),
N_("Focal length"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaFocalLengthStd),
TagInfo(0x0013, "FocusDistance", N_("Focus Distance"),
N_("Focus distance"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x0014, "FlashFired", N_("Flash Fired"),
N_("Flash fired"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFlashFired)),
TagInfo(0x0015, "MinoltaDate", N_("Minolta Date"),
N_("Minolta date"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaDateStd),
TagInfo(0x0016, "MinoltaTime", N_("Minolta Time"),
N_("Minolta time"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaTimeStd),
TagInfo(0x0017, "MaxAperture", N_("Max Aperture"),
N_("Max aperture"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x001A, "FileNumberMemory", N_("File Number Memory"),
N_("File number memory"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaSonyBoolValue),
TagInfo(0x001B, "LastFileNumber", N_("Last Image Number"),
N_("Last image number"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x001C, "ColorBalanceRed", N_("Color Balance Red"),
N_("Color balance red"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaWhiteBalanceStd),
TagInfo(0x001D, "ColorBalanceGreen", N_("Color Balance Green"),
N_("Color balance green"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaWhiteBalanceStd),
TagInfo(0x001E, "ColorBalanceBlue", N_("Color Balance Blue"),
N_("Color balance blue"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaWhiteBalanceStd),
TagInfo(0x001F, "Saturation", N_("Saturation"),
N_("Saturation"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x0020, "Contrast", N_("Contrast"),
N_("Contrast"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x0021, "Sharpness", N_("Sharpness"),
N_("Sharpness"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaSharpnessStd)),
TagInfo(0x0022, "SubjectProgram", N_("Subject Program"),
N_("Subject program"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaSubjectProgramStd)),
TagInfo(0x0023, "FlashExposureComp", N_("Flash Exposure Compensation"),
N_("Flash exposure compensation in EV"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaFlashExposureCompStd),
TagInfo(0x0024, "ISOSetting", N_("ISO Settings"),
N_("ISO setting"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaISOSettingStd)),
TagInfo(0x0025, "MinoltaModel", N_("Minolta Model"),
N_("Minolta model"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaModelStd)),
TagInfo(0x0026, "IntervalMode", N_("Interval Mode"),
N_("Interval mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaIntervalModeStd)),
TagInfo(0x0027, "FolderName", N_("Folder Name"),
N_("Folder name"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFolderNameStd)),
TagInfo(0x0028, "ColorMode", N_("ColorMode"),
N_("ColorMode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaColorModeStd)),
TagInfo(0x0029, "ColorFilter", N_("Color Filter"),
N_("Color filter"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x002A, "BWFilter", N_("Black and White Filter"),
N_("Black and white filter"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x002B, "Internal Flash", N_("Internal Flash"),
N_("Internal Flash"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFlashFired)),
TagInfo(0x002C, "Brightness", N_("Brightness"),
N_("Brightness"),
minoltaCsNewId, makerTags, unsignedLong, 1, printMinoltaBrightnessStd),
TagInfo(0x002D, "SpotFocusPointX", N_("Spot Focus Point X"),
N_("Spot focus point X"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x002E, "SpotFocusPointY", N_("Spot Focus Point Y"),
N_("Spot focus point Y"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue),
TagInfo(0x002F, "WideFocusZone", N_("Wide Focus Zone"),
N_("Wide focus zone"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaWideFocusZoneStd)),
TagInfo(0x0030, "FocusMode", N_("Focus Mode"),
N_("Focus mode"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFocusModeStd)),
TagInfo(0x0031, "FocusArea", N_("Focus area"),
N_("Focus area"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFocusAreaStd)),
TagInfo(0x0032, "DECPosition", N_("DEC Switch Position"),
N_("DEC switch position"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaDECPositionStd)),
TagInfo(0x0033, "ColorProfile", N_("Color Profile"),
N_("Color profile"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaColorProfileStd)),
TagInfo(0x0034, "DataImprint", N_("Data Imprint"),
N_("Data Imprint"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaDataImprintStd)),
TagInfo(0x003F, "FlashMetering", N_("Flash Metering"),
N_("Flash metering"),
minoltaCsNewId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFlashMeteringStd)),
// End of list marker
TagInfo(0xffff, "(UnknownMinoltaCsStdTag)", "(UnknownMinoltaCsStdTag)",
N_("Unknown Minolta Camera Settings tag"),
minoltaCsNewId, makerTags, unsignedLong, 1, printValue)
};
const TagInfo* MinoltaMakerNote::tagListCsStd()
{
return tagInfoCsStd_;
}
// -- Minolta Dynax 7D camera settings ---------------------------------------------------------------
//! Lookup table to translate Minolta Dynax 7D camera settings exposure mode values to readable labels
extern const TagDetails minoltaExposureMode7D[] = {
{ 0, N_("Program") },
{ 1, N_("Aperture priority") },
{ 2, N_("Shutter priority") },
{ 3, N_("Manual") },
{ 4, N_("Auto") },
{ 5, N_("Program-shift A") },
{ 6, N_("Program-shift S") }
};
//! Lookup table to translate Minolta Dynax 7D camera settings image size values to readable labels
extern const TagDetails minoltaImageSize7D[] = {
{ 0, N_("Large") },
{ 1, N_("Medium") },
{ 2, N_("Small") }
};
//! Lookup table to translate Minolta Dynax 7D camera settings image quality values to readable labels
extern const TagDetails minoltaImageQuality7D[] = {
{ 0, N_("Raw") },
{ 16, N_("Fine") },
{ 32, N_("Normal") },
{ 34, N_("Raw+Jpeg") },
{ 48, N_("Economy") }
};
//! Lookup table to translate Minolta Dynax 7D camera settings white balance values to readable labels
extern const TagDetails minoltaWhiteBalance7D[] = {
{ 0, N_("Auto") },
{ 1, N_("Daylight") },
{ 2, N_("Shade") },
{ 3, N_("Cloudy") },
{ 4, N_("Tungsten") },
{ 5, N_("Fluorescent") },
{ 256, N_("Kelvin") },
{ 512, N_("Manual") },
{ 512, N_("Manual") } // To silence compiler warning
};
//! Lookup table to translate Minolta Dynax 7D camera settings focus mode values to readable labels
extern const TagDetails minoltaFocusMode7D[] = {
{ 0, N_("Single-shot AF") },
{ 1, N_("Continuous AF") },
{ 3, N_("Manual") },
{ 4, N_("Automatic AF") }
};
//! Lookup table to translate Minolta Dynax 7D camera settings AF points values to readable labels
extern const TagDetails minoltaAFPoints7D[] = {
{ 1, N_("Center") },
{ 2, N_("Top") },
{ 4, N_("Top-right") },
{ 8, N_("Right") },
{ 16, N_("Bottom-right") },
{ 32, N_("Bottom") },
{ 64, N_("Bottom-left") },
{ 128, N_("Left") },
{ 256, N_("Top-left") }
};
//! Lookup table to translate Minolta Dynax 7D camera settings ISO settings values to readable labels
extern const TagDetails minoltaISOSetting7D[] = {
{ 0, N_("Auto") },
{ 1, "100" },
{ 3, "200" },
{ 4, "400" },
{ 5, "800" },
{ 6, "1600" },
{ 7, "3200" }
};
//! Lookup table to translate Minolta Dynax 7D camera settings color space values to readable labels
extern const TagDetails minoltaColorSpace7D[] = {
{ 0, N_("sRGB (Natural)") },
{ 1, N_("sRGB (Natural+)") },
{ 4, N_("Adobe RGB") }
};
//! Lookup table to translate Minolta Dynax 7D camera settings rotation values to readable labels
extern const TagDetails minoltaRotation7D[] = {
{ 72, N_("Horizontal (normal)") },
{ 76, N_("Rotate 90 CW") },
{ 82, N_("Rotate 270 CW") }
};
// Minolta Dynax 7D Camera Settings Tag Info
const TagInfo MinoltaMakerNote::tagInfoCs7D_[] = {
TagInfo(0x0000, "ExposureMode", N_("Exposure Mode"),
N_("Exposure mode"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaExposureMode7D)),
TagInfo(0x0002, "ImageSize", N_("Image Size"),
N_("Image size"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaImageSize7D)),
TagInfo(0x0003, "Quality", N_("Image Quality"),
N_("Image quality"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaImageQuality7D)),
TagInfo(0x0004, "WhiteBalance", N_("White Balance"),
N_("White balance"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaWhiteBalance7D)),
TagInfo(0x000E, "FocusMode", N_("Focus Mode"),
N_("Focus mode"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaFocusMode7D)),
TagInfo(0x0010, "AFPoints", N_("AF Points"),
N_("AF points"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaAFPoints7D)),
TagInfo(0x0015, "FlashFired", N_("Flash Fired"),
N_("Flash fired"),
minoltaCs7DId, makerTags, unsignedLong, 1, EXV_PRINT_TAG(minoltaFlashFired)),
TagInfo(0x0016, "FlashMode", N_("Flash Mode"),
N_("Flash mode"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x001C, "ISOSpeed", N_("ISO Speed Mode"),
N_("ISO speed setting"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaISOSetting7D)),
TagInfo(0x001E, "ExposureCompensation", N_("Exposure Compensation"),
N_("Exposure compensation"),
minoltaCs7DId, makerTags, signedShort, 1, printValue),
TagInfo(0x0025, "ColorSpace", N_("Color Space"),
N_("Color space"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaColorSpace7D)),
TagInfo(0x0026, "Sharpness", N_("Sharpness"),
N_("Sharpness"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x0027, "Contrast", N_("Contrast"),
N_("Contrast"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x0028, "Saturation", N_("Saturation"),
N_("Saturation"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x002D, "FreeMemoryCardImages", N_("Free Memory Card Images"),
N_("Free memory card images"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x003F, "ColorTemperature", N_("Color Temperature"),
N_("Color temperature"),
minoltaCs7DId, makerTags, signedShort, 1, printValue),
TagInfo(0x0040, "Hue", N_("Hue"), N_("Hue"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x0046, "Rotation", N_("Rotation"),
N_("Rotation"),
minoltaCs7DId, makerTags, unsignedShort, 1, EXV_PRINT_TAG(minoltaRotation7D)),
TagInfo(0x0047, "FNumber", N_("FNumber"),
N_("The F-Number"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x0048, "ExposureTime", N_("Exposure Time"),
N_("Exposure time"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
// 0x004A is a dupplicate than 0x002D.
TagInfo(0x004A, "FreeMemoryCardImages", N_("Free Memory Card Images"),
N_("Free memory card images"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x005E, "ImageNumber", N_("Image Number"),
N_("Image number"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x0060, "NoiseReduction", N_("Noise Reduction"),
N_("Noise reduction"),
minoltaCs7DId, makerTags, unsignedShort, 1, printMinoltaSonyBoolValue),
// 0x0062 is a dupplicate than 0x005E.
TagInfo(0x0062, "ImageNumber", N_("Image Number"),
N_("Image number"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue),
TagInfo(0x0071, "ImageStabilization", N_("Image Stabilization"),
N_("Image stabilization"),
minoltaCs7DId, makerTags, unsignedShort, 1, printMinoltaSonyBoolValue),
TagInfo(0x0075, "ZoneMatchingOn", N_("Zone Matching On"),
N_("Zone matching on"),
minoltaCs7DId, makerTags, unsignedShort, 1, printMinoltaSonyBoolValue),
// End of list marker
TagInfo(0xffff, "(UnknownMinoltaCs7DTag)", "(UnknownMinoltaCs7DTag)",
N_("Unknown Minolta Camera Settings 7D tag"),
minoltaCs7DId, makerTags, unsignedShort, 1, printValue)
};
const TagInfo* MinoltaMakerNote::tagListCs7D()
{
return tagInfoCs7D_;
}
// -- Minolta Dynax 5D camera settings ---------------------------------------------------------------
//! Lookup table to translate Minolta Dynax 5D camera settings exposure mode values to readable labels
extern const TagDetails minoltaExposureMode5D[] = {
{ 0, N_("Program") },
{ 1, N_("Aperture priority") },
{ 2, N_("Shutter priority") },
{ 3, N_("Manual") },
{ 4, N_("Auto") },
{ 5, N_("Program Shift A") },
{ 6, N_("Program Shift S") },
{ 0x1013, N_("Portrait") },
{ 0x1023, N_("Sports") },
{ 0x1033, N_("Sunset") },
{ 0x1043, N_("Night View/Portrait") },
{ 0x1053, N_("Landscape") },
{ 0x1083, N_("Macro") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings image size values to readable labels
extern const TagDetails minoltaImageSize5D[] = {
{ 0, N_("Large") },
{ 1, N_("Medium") },
{ 2, N_("Small") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings image quality values to readable labels
extern const TagDetails minoltaImageQuality5D[] = {
{ 0, N_("Raw") },
{ 16, N_("Fine") },
{ 32, N_("Normal") },
{ 34, N_("Raw+Jpeg") },
{ 48, N_("Economy") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings white balance values to readable labels
extern const TagDetails minoltaWhiteBalance5D[] = {
{ 0, N_("Auto") },
{ 1, N_("Daylight") },
{ 2, N_("Cloudy") },
{ 3, N_("Shade") },
{ 4, N_("Tungsten") },
{ 5, N_("Fluorescent") },
{ 6, N_("Flash") },
{ 256, N_("Kelvin") },
{ 512, N_("Manual") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings metering mode values to readable labels
extern const TagDetails minoltaMeteringMode5D[] = {
{ 0, N_("Multi-segment") },
{ 1, N_("Center weighted") },
{ 2, N_("Spot") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings ISO settings values to readable labels
extern const TagDetails minoltaISOSetting5D[] = {
{ 0, N_("Auto") },
{ 1, "100" },
{ 3, "200" },
{ 4, "400" },
{ 5, "800" },
{ 6, "1600" },
{ 7, "3200" },
{ 8, N_("200 (Zone Matching High)") },
{ 10, N_("80 (Zone Matching Low)") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings color space values to readable labels
extern const TagDetails minoltaColorSpace5D[] = {
{ 0, N_("sRGB (Natural)") },
{ 1, N_("sRGB (Natural+)") },
{ 2, N_("Monochrome") },
{ 3, N_("Adobe RGB (ICC)") },
{ 4, N_("Adobe RGB") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings rotation values to readable labels
extern const TagDetails minoltaRotation5D[] = {
{ 72, N_("Horizontal (normal)") },
{ 76, N_("Rotate 90 CW") },
{ 82, N_("Rotate 270 CW") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings focus position values to readable labels
extern const TagDetails minoltaFocusPosition5D[] = {
{ 0, N_("Wide") },
{ 1, N_("Central") },
{ 2, N_("Up") },
{ 3, N_("Up right") },
{ 4, N_("Right") },
{ 5, N_("Down right") },
{ 6, N_("Down") },
{ 7, N_("Down left") },
{ 8, N_("Left") },
{ 9, N_("Up left") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings focus area values to readable labels
extern const TagDetails minoltaFocusArea5D[] = {
{ 0, N_("Wide") },
{ 1, N_("Selection") },
{ 2, N_("Spot") }
};
//! Lookup table to translate Minolta Dynax 5D camera settings focus mode values to readable labels
extern const TagDetails minoltaAFMode5D[] = {
{ 0, "AF-A" },
{ 1, "AF-S" },
{ 2, "AF-D" },
{ 3, "DMF" }
};
//! Lookup table to translate Minolta Dynax 5D camera settings picture finish values to readable labels
extern const TagDetails minoltaPictureFinish5D[] = {
{ 0, N_("Natural") },
{ 1, N_("Natural+") },
{ 2, N_("Portrait") },
{ 3, N_("Wind Scene") },
{ 4, N_("Evening Scene") },
{ 5, N_("Night Scene") },
{ 6, N_("Night Portrait") },
{ 7, N_("Monochrome") },
{ 8, N_("Adobe RGB") },
{ 9, N_("Adobe RGB (ICC)") }
};
//! Method to convert Minolta Dynax 5D exposure manual bias values.
std::ostream& MinoltaMakerNote::printMinoltaExposureManualBias5D(std::ostream& os, const Value& value, const ExifData*)
{
// From Xavier Raynaud: the value is converted from 0:256 to -5.33:5.33
std::ios::fmtflags f( os.flags() );
std::ostringstream oss;
oss.copyfmt(os);
os << std::fixed << std::setprecision(2)
<< (float (value.toLong()-128)/24);
os.copyfmt(oss);
os.flags(f);
return os;
}
//! Method to convert Minolta Dynax 5D exposure compensation values.
std::ostream& MinoltaMakerNote::printMinoltaExposureCompensation5D(std::ostream& os, const Value& value, const ExifData*)
{
std::ios::fmtflags f( os.flags() );
std::ostringstream oss;
oss.copyfmt(os);
os << std::fixed << std::setprecision(2)
<< (float (value.toLong()-300)/100);
os.copyfmt(oss);
os.flags(f);
return os;
}
// Minolta Dynax 5D Camera Settings Tag Info
const TagInfo MinoltaMakerNote::tagInfoCs5D_[] = {
TagInfo(0x000A, "ExposureMode", N_("Exposure Mode"),
N_("Exposure mode"),
minoltaCs5DId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(minoltaExposureMode5D)),
TagInfo(0x000C, "ImageSize", N_("Image Size"),
N_("Image size"),
minoltaCs5DId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(minoltaImageSize5D)),
TagInfo(0x000D, "Quality", N_("Image Quality"),
N_("Image quality"),
minoltaCs5DId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(minoltaImageQuality5D)),
TagInfo(0x000E, "WhiteBalance", N_("White Balance"),
N_("White balance"),
minoltaCs5DId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(minoltaWhiteBalance5D)),
TagInfo(0x001A, "FocusPosition", N_("Focus Position"),
N_("Focus position"),
minoltaCs5DId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(minoltaFocusPosition5D)),
TagInfo(0x001B, "FocusArea", N_("Focus Area"),
N_("Focus area"),
minoltaCs5DId, makerTags, unsignedShort, -1, EXV_PRINT_TAG(minoltaFocusArea5D)),
TagInfo(0x001F, "FlashFired", N_("Flash Fired"),
N_("Flash fired"),