exiftool_vendored 12.22.0 → 12.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/Changes +201 -5
- data/bin/MANIFEST +22 -0
- data/bin/META.json +1 -1
- data/bin/META.yml +1 -1
- data/bin/README +45 -43
- data/bin/arg_files/xmp2exif.args +2 -1
- data/bin/config_files/acdsee.config +193 -6
- data/bin/config_files/convert_regions.config +25 -14
- data/bin/config_files/cuepointlist.config +70 -0
- data/bin/config_files/example.config +1 -1
- data/bin/exiftool +89 -70
- data/bin/fmt_files/gpx.fmt +1 -1
- data/bin/fmt_files/gpx_wpt.fmt +1 -1
- data/bin/lib/Image/ExifTool/BuildTagLookup.pm +17 -4
- data/bin/lib/Image/ExifTool/CBOR.pm +331 -0
- data/bin/lib/Image/ExifTool/Canon.pm +53 -21
- data/bin/lib/Image/ExifTool/Charset.pm +2 -0
- data/bin/lib/Image/ExifTool/DPX.pm +13 -2
- data/bin/lib/Image/ExifTool/DjVu.pm +6 -5
- data/bin/lib/Image/ExifTool/Exif.pm +120 -12
- data/bin/lib/Image/ExifTool/FlashPix.pm +35 -10
- data/bin/lib/Image/ExifTool/FujiFilm.pm +19 -8
- data/bin/lib/Image/ExifTool/Geotag.pm +13 -2
- data/bin/lib/Image/ExifTool/GoPro.pm +16 -1
- data/bin/lib/Image/ExifTool/ICC_Profile.pm +96 -4
- data/bin/lib/Image/ExifTool/ID3.pm +15 -3
- data/bin/lib/Image/ExifTool/JPEG.pm +74 -4
- data/bin/lib/Image/ExifTool/JSON.pm +30 -5
- data/bin/lib/Image/ExifTool/Jpeg2000.pm +395 -16
- data/bin/lib/Image/ExifTool/LIF.pm +153 -0
- data/bin/lib/Image/ExifTool/Lang/nl.pm +60 -59
- data/bin/lib/Image/ExifTool/M2TS.pm +103 -7
- data/bin/lib/Image/ExifTool/MIE.pm +2 -1
- data/bin/lib/Image/ExifTool/MRC.pm +341 -0
- data/bin/lib/Image/ExifTool/MWG.pm +3 -3
- data/bin/lib/Image/ExifTool/MXF.pm +1 -1
- data/bin/lib/Image/ExifTool/MacOS.pm +3 -3
- data/bin/lib/Image/ExifTool/Microsoft.pm +5 -3
- data/bin/lib/Image/ExifTool/Nikon.pm +17 -5
- data/bin/lib/Image/ExifTool/NikonSettings.pm +19 -2
- data/bin/lib/Image/ExifTool/Olympus.pm +9 -2
- data/bin/lib/Image/ExifTool/Other.pm +93 -0
- data/bin/lib/Image/ExifTool/PDF.pm +11 -12
- data/bin/lib/Image/ExifTool/PNG.pm +8 -7
- data/bin/lib/Image/ExifTool/Panasonic.pm +28 -3
- data/bin/lib/Image/ExifTool/Pentax.pm +28 -5
- data/bin/lib/Image/ExifTool/PhaseOne.pm +4 -3
- data/bin/lib/Image/ExifTool/Photoshop.pm +6 -0
- data/bin/lib/Image/ExifTool/QuickTime.pm +210 -65
- data/bin/lib/Image/ExifTool/QuickTimeStream.pl +280 -139
- data/bin/lib/Image/ExifTool/README +9 -2
- data/bin/lib/Image/ExifTool/RIFF.pm +89 -12
- data/bin/lib/Image/ExifTool/Samsung.pm +48 -10
- data/bin/lib/Image/ExifTool/Sony.pm +204 -61
- data/bin/lib/Image/ExifTool/TagLookup.pm +206 -19
- data/bin/lib/Image/ExifTool/TagNames.pod +634 -195
- data/bin/lib/Image/ExifTool/Torrent.pm +18 -11
- data/bin/lib/Image/ExifTool/WriteIPTC.pl +1 -1
- data/bin/lib/Image/ExifTool/WritePDF.pl +1 -0
- data/bin/lib/Image/ExifTool/WritePNG.pl +2 -0
- data/bin/lib/Image/ExifTool/WritePostScript.pl +1 -0
- data/bin/lib/Image/ExifTool/WriteQuickTime.pl +58 -16
- data/bin/lib/Image/ExifTool/WriteXMP.pl +7 -3
- data/bin/lib/Image/ExifTool/Writer.pl +44 -0
- data/bin/lib/Image/ExifTool/XMP.pm +51 -18
- data/bin/lib/Image/ExifTool/XMP2.pl +4 -1
- data/bin/lib/Image/ExifTool/XMPStruct.pl +3 -1
- data/bin/lib/Image/ExifTool/ZISRAW.pm +121 -2
- data/bin/lib/Image/ExifTool.pm +188 -61
- data/bin/lib/Image/ExifTool.pod +89 -68
- data/bin/perl-Image-ExifTool.spec +43 -42
- data/lib/exiftool_vendored/version.rb +1 -1
- metadata +10 -9
@@ -0,0 +1,341 @@
|
|
1
|
+
#------------------------------------------------------------------------------
|
2
|
+
# File: MRC.pm
|
3
|
+
#
|
4
|
+
# Description: Read MRC (Medical Research Council) image files
|
5
|
+
#
|
6
|
+
# Revisions: 2021-04-21 - P. Harvey Created
|
7
|
+
#
|
8
|
+
# References: 1) https://www.ccpem.ac.uk/mrc_format/mrc2014.php
|
9
|
+
# 2) http://legacy.ccp4.ac.uk/html/library.html
|
10
|
+
# 3) https://github.com/ccpem/mrcfile/blob/master/mrcfile/dtypes.py
|
11
|
+
#
|
12
|
+
# Notes: The header is basically identical to the older CCP4 file format
|
13
|
+
#------------------------------------------------------------------------------
|
14
|
+
|
15
|
+
package Image::ExifTool::MRC;
|
16
|
+
|
17
|
+
use strict;
|
18
|
+
use vars qw($VERSION);
|
19
|
+
use Image::ExifTool qw(:DataAccess :Utils);
|
20
|
+
|
21
|
+
$VERSION = '1.00';
|
22
|
+
|
23
|
+
my %bool = (
|
24
|
+
Format => 'int8u',
|
25
|
+
PrintConv => { 0 => 'No', 1 => 'Yes' }
|
26
|
+
);
|
27
|
+
|
28
|
+
%Image::ExifTool::MRC::Main = (
|
29
|
+
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
30
|
+
GROUPS => { 0 => 'File', 1 => 'File', 2 => 'Image' },
|
31
|
+
VARS => { NO_LOOKUP => 1 }, # omit tags from lookup
|
32
|
+
FORMAT => 'int32u',
|
33
|
+
NOTES => q{
|
34
|
+
Tags extracted from Medical Research Council (MRC) format imaging files.
|
35
|
+
See L<https://www.ccpem.ac.uk/mrc_format/mrc2014.php> for the specification.
|
36
|
+
},
|
37
|
+
0 => 'ImageWidth',
|
38
|
+
1 => 'ImageHeight',
|
39
|
+
2 => {
|
40
|
+
Name => 'ImageDepth',
|
41
|
+
Notes => q{
|
42
|
+
number of sections. Use ExtractEmbedded option to extract metadata for all
|
43
|
+
sections
|
44
|
+
},
|
45
|
+
RawConv => '$$self{ImageDepth} = $val',
|
46
|
+
},
|
47
|
+
3 => {
|
48
|
+
Name => 'ImageMode',
|
49
|
+
PrintConv => {
|
50
|
+
0 => '8-bit signed integer',
|
51
|
+
1 => '16-bit signed integer',
|
52
|
+
2 => '32-bit signed real',
|
53
|
+
3 => 'complex 16-bit integer',
|
54
|
+
4 => 'complex 32-bit real',
|
55
|
+
6 => '16-bit unsigned integer',
|
56
|
+
},
|
57
|
+
},
|
58
|
+
4 => { Name => 'StartPoint', Format => 'int32u[3]' },
|
59
|
+
7 => { Name => 'GridSize', Format => 'int32u[3]' },
|
60
|
+
10 => { Name => 'CellWidth', Format => 'float', Notes => 'cell size in angstroms' },
|
61
|
+
11 => { Name => 'CellHeight',Format => 'float' },
|
62
|
+
12 => { Name => 'CellDepth', Format => 'float' },
|
63
|
+
13 => { Name => 'CellAlpha', Format => 'float' },
|
64
|
+
14 => { Name => 'CellBeta', Format => 'float' },
|
65
|
+
15 => { Name => 'CellGamma', Format => 'float' },
|
66
|
+
16 => { Name => 'ImageWidthAxis', PrintConv => { 1 => 'X', 2 => 'Y', 3 => 'Z' } },
|
67
|
+
17 => { Name => 'ImageHeightAxis', PrintConv => { 1 => 'X', 2 => 'Y', 3 => 'Z' } },
|
68
|
+
18 => { Name => 'ImageDepthAxis', PrintConv => { 1 => 'X', 2 => 'Y', 3 => 'Z' } },
|
69
|
+
19 => { Name => 'DensityMin', Format => 'float' },
|
70
|
+
20 => { Name => 'DensityMax', Format => 'float' },
|
71
|
+
21 => { Name => 'DensityMean',Format => 'float' },
|
72
|
+
22 => 'SpaceGroupNumber',
|
73
|
+
23 => { Name => 'ExtendedHeaderSize', RawConv => '$$self{ExtendedHeaderSize} = $val' },
|
74
|
+
26 => { Name => 'ExtendedHeaderType', Format => 'string[4]', RawConv => '$$self{ExtendedHeaderType} = $val' },
|
75
|
+
27 => 'MRCVersion',
|
76
|
+
49 => { Name => 'Origin', Format => 'float[3]' },
|
77
|
+
53 => { Name => 'MachineStamp', Format => 'int8u[4]', PrintConv => 'sprintf("0x%.2x 0x%.2x 0x%.2x 0x%.2x",split " ", $val)' },
|
78
|
+
54 => { Name => 'RMSDeviation', Format => 'float' },
|
79
|
+
55 => { Name => 'NumberOfLabels', RawConv => '$$self{NLab} = $val' },
|
80
|
+
56 => { Name => 'Label0', Format => 'string[80]', Condition => '$$self{NLab} > 0' },
|
81
|
+
76 => { Name => 'Label1', Format => 'string[80]', Condition => '$$self{NLab} > 1' },
|
82
|
+
96 => { Name => 'Label2', Format => 'string[80]', Condition => '$$self{NLab} > 2' },
|
83
|
+
116 => { Name => 'Label3', Format => 'string[80]', Condition => '$$self{NLab} > 3' },
|
84
|
+
136 => { Name => 'Label4', Format => 'string[80]', Condition => '$$self{NLab} > 4' },
|
85
|
+
156 => { Name => 'Label5', Format => 'string[80]', Condition => '$$self{NLab} > 5' },
|
86
|
+
176 => { Name => 'Label6', Format => 'string[80]', Condition => '$$self{NLab} > 6' },
|
87
|
+
196 => { Name => 'Label7', Format => 'string[80]', Condition => '$$self{NLab} > 7' },
|
88
|
+
216 => { Name => 'Label8', Format => 'string[80]', Condition => '$$self{NLab} > 8' },
|
89
|
+
236 => { Name => 'Label9', Format => 'string[80]', Condition => '$$self{NLab} > 9' },
|
90
|
+
);
|
91
|
+
|
92
|
+
%Image::ExifTool::MRC::FEI12 = (
|
93
|
+
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
94
|
+
GROUPS => { 0 => 'File', 1 => 'File', 2 => 'Image' },
|
95
|
+
VARS => { NO_LOOKUP => 1 }, # omit tags from lookup (way too many!)
|
96
|
+
NOTES => 'Tags extracted from FEI1 and FEI2 extended headers.',
|
97
|
+
0 => { Name => 'MetadataSize', Format => 'int32u', RawConv => '$$self{MetadataSize} = $val' },
|
98
|
+
4 => { Name => 'MetadataVersion', Format => 'int32u' },
|
99
|
+
8 => {
|
100
|
+
Name => 'Bitmask1',
|
101
|
+
Format => 'int32u',
|
102
|
+
RawConv => '$$self{BitM} = $val',
|
103
|
+
PrintConv => 'sprintf("0x%.8x", $val)',
|
104
|
+
},
|
105
|
+
12 => {
|
106
|
+
Name => 'TimeStamp',
|
107
|
+
Format => 'double',
|
108
|
+
Condition => '$$self{BitM} & 0x01',
|
109
|
+
Groups => { 2 => 'Time'},
|
110
|
+
# shift from days since Dec 30, 1899 to Unix epoch of Jan 1, 1970
|
111
|
+
# (my sample looks like local time, although it should be UTC)
|
112
|
+
ValueConv => 'ConvertUnixTime(($val-25569)*24*3600)',
|
113
|
+
PrintConv => '$self->ConvertDateTime($val)',
|
114
|
+
},
|
115
|
+
20 => { Name => 'MicroscopeType', Format => 'string[16]', Condition => '$$self{BitM} & 0x02' },
|
116
|
+
36 => { Name => 'MicroscopeID', Format => 'string[16]', Condition => '$$self{BitM} & 0x04' },
|
117
|
+
52 => { Name => 'Application', Format => 'string[16]', Condition => '$$self{BitM} & 0x08' },
|
118
|
+
68 => { Name => 'AppVersion', Format => 'string[16]', Condition => '$$self{BitM} & 0x10' },
|
119
|
+
84 => { Name => 'HighTension', Format => 'double', Condition => '$$self{BitM} & 0x20', Notes => 'volts' },
|
120
|
+
92 => { Name => 'Dose', Format => 'double', Condition => '$$self{BitM} & 0x40', Notes => 'electrons/m2' },
|
121
|
+
100 => { Name => 'AlphaTilt', Format => 'double', Condition => '$$self{BitM} & 0x80' },
|
122
|
+
108 => { Name => 'BetaTilt', Format => 'double', Condition => '$$self{BitM} & 0x100' },
|
123
|
+
116 => { Name => 'XStage', Format => 'double', Condition => '$$self{BitM} & 0x200' },
|
124
|
+
124 => { Name => 'YStage', Format => 'double', Condition => '$$self{BitM} & 0x400' },
|
125
|
+
132 => { Name => 'ZStage', Format => 'double', Condition => '$$self{BitM} & 0x800' },
|
126
|
+
140 => { Name => 'TiltAxisAngle', Format => 'double', Condition => '$$self{BitM} & 0x1000' },
|
127
|
+
148 => { Name => 'DualAxisRot', Format => 'double', Condition => '$$self{BitM} & 0x2000' },
|
128
|
+
156 => { Name => 'PixelSizeX', Format => 'double', Condition => '$$self{BitM} & 0x4000' },
|
129
|
+
164 => { Name => 'PixelSizeY', Format => 'double', Condition => '$$self{BitM} & 0x8000' },
|
130
|
+
220 => { Name => 'Defocus', Format => 'double', Condition => '$$self{BitM} & 0x400000' },
|
131
|
+
228 => { Name => 'STEMDefocus', Format => 'double', Condition => '$$self{BitM} & 0x800000' },
|
132
|
+
236 => { Name => 'AppliedDefocus', Format => 'double', Condition => '$$self{BitM} & 0x1000000' },
|
133
|
+
244 => { Name => 'InstrumentMode', Format => 'int32u', Condition => '$$self{BitM} & 0x2000000', PrintConv => { 1 => 'TEM', 2 => 'STEM' } },
|
134
|
+
248 => { Name => 'ProjectionMode', Format => 'int32u', Condition => '$$self{BitM} & 0x4000000', PrintConv => { 1 => 'Diffraction', 2 => 'Imaging' } },
|
135
|
+
252 => { Name => 'ObjectiveLens', Format => 'string[16]', Condition => '$$self{BitM} & 0x8000000' },
|
136
|
+
268 => { Name => 'HighMagnificationMode', Format => 'string[16]', Condition => '$$self{BitM} & 0x10000000' },
|
137
|
+
284 => { Name => 'ProbeMode', Format => 'int32u', Condition => '$$self{BitM} & 0x20000000', PrintConv => { 1 => 'Nano', 2 => 'Micro' } },
|
138
|
+
288 => { Name => 'EFTEMOn', %bool, Condition => '$$self{BitM} & 0x40000000' },
|
139
|
+
289 => { Name => 'Magnification', Format => 'double', Condition => '$$self{BitM} & 0x80000000' },
|
140
|
+
297 => {
|
141
|
+
Name => 'Bitmask2',
|
142
|
+
Format => 'int32u',
|
143
|
+
RawConv => '$$self{BitM} = $val',
|
144
|
+
PrintConv => 'sprintf("0x%.8x", $val)',
|
145
|
+
},
|
146
|
+
301 => { Name => 'CameraLength', Format => 'double', Condition => '$$self{BitM} & 0x01' },
|
147
|
+
309 => { Name => 'SpotIndex', Format => 'int32u', Condition => '$$self{BitM} & 0x02' },
|
148
|
+
313 => { Name => 'IlluminationArea',Format => 'double', Condition => '$$self{BitM} & 0x04' },
|
149
|
+
321 => { Name => 'Intensity', Format => 'double', Condition => '$$self{BitM} & 0x08' },
|
150
|
+
329 => { Name => 'ConvergenceAngle',Format => 'double', Condition => '$$self{BitM} & 0x10' },
|
151
|
+
337 => { Name => 'IlluminationMode',Format => 'string[16]', Condition => '$$self{BitM} & 0x20' },
|
152
|
+
353 => { Name => 'WideConvergenceAngleRange', %bool, Condition => '$$self{BitM} & 0x40' },
|
153
|
+
354 => { Name => 'SlitInserted', %bool, Condition => '$$self{BitM} & 0x80' },
|
154
|
+
355 => { Name => 'SlitWidth', Format => 'double', Condition => '$$self{BitM} & 0x100' },
|
155
|
+
363 => { Name => 'AccelVoltOffset', Format => 'double', Condition => '$$self{BitM} & 0x200' },
|
156
|
+
371 => { Name => 'DriftTubeVolt', Format => 'double', Condition => '$$self{BitM} & 0x400' },
|
157
|
+
379 => { Name => 'EnergyShift', Format => 'double', Condition => '$$self{BitM} & 0x800' },
|
158
|
+
387 => { Name => 'ShiftOffsetX', Format => 'double', Condition => '$$self{BitM} & 0x1000' },
|
159
|
+
395 => { Name => 'ShiftOffsetY', Format => 'double', Condition => '$$self{BitM} & 0x2000' },
|
160
|
+
403 => { Name => 'ShiftX', Format => 'double', Condition => '$$self{BitM} & 0x4000' },
|
161
|
+
411 => { Name => 'ShiftY', Format => 'double', Condition => '$$self{BitM} & 0x8000' },
|
162
|
+
419 => { Name => 'IntegrationTime', Format => 'double', Condition => '$$self{BitM} & 0x10000' },
|
163
|
+
427 => { Name => 'BinningWidth', Format => 'int32u', Condition => '$$self{BitM} & 0x20000' },
|
164
|
+
431 => { Name => 'BinningHeight', Format => 'int32u', Condition => '$$self{BitM} & 0x40000' },
|
165
|
+
435 => { Name => 'CameraName', Format => 'string[16]', Condition => '$$self{BitM} & 0x80000' },
|
166
|
+
451 => { Name => 'ReadoutAreaLeft', Format => 'int32u', Condition => '$$self{BitM} & 0x100000' },
|
167
|
+
455 => { Name => 'ReadoutAreaTop', Format => 'int32u', Condition => '$$self{BitM} & 0x200000' },
|
168
|
+
459 => { Name => 'ReadoutAreaRight',Format => 'int32u', Condition => '$$self{BitM} & 0x400000' },
|
169
|
+
463 => { Name => 'ReadoutAreaBottom',Format=> 'int32u', Condition => '$$self{BitM} & 0x800000' },
|
170
|
+
467 => { Name => 'CetaNoiseReduct', %bool, Condition => '$$self{BitM} & 0x1000000' },
|
171
|
+
468 => { Name => 'CetaFramesSummed',Format => 'int32u', Condition => '$$self{BitM} & 0x2000000' },
|
172
|
+
472 => { Name => 'DirectDetElectronCounting', %bool, Condition => '$$self{BitM} & 0x4000000' },
|
173
|
+
473 => { Name => 'DirectDetAlignFrames', %bool, Condition => '$$self{BitM} & 0x8000000' },
|
174
|
+
490 => {
|
175
|
+
Name => 'Bitmask3',
|
176
|
+
Format => 'int32u',
|
177
|
+
RawConv => '$$self{BitM} = $val',
|
178
|
+
PrintConv => 'sprintf("0x%.8x", $val)',
|
179
|
+
},
|
180
|
+
518 => { Name => 'PhasePlate', %bool, Condition => '$$self{BitM} & 0x40' },
|
181
|
+
519 => { Name => 'STEMDetectorName',Format => 'string[16]', Condition => '$$self{BitM} & 0x80' },
|
182
|
+
535 => { Name => 'Gain', Format => 'double', Condition => '$$self{BitM} & 0x100' },
|
183
|
+
543 => { Name => 'Offset', Format => 'double', Condition => '$$self{BitM} & 0x200' },
|
184
|
+
571 => { Name => 'DwellTime', Format => 'double', Condition => '$$self{BitM} & 0x8000' },
|
185
|
+
579 => { Name => 'FrameTime', Format => 'double', Condition => '$$self{BitM} & 0x10000' },
|
186
|
+
587 => { Name => 'ScanSizeLeft', Format => 'int32u', Condition => '$$self{BitM} & 0x20000' },
|
187
|
+
591 => { Name => 'ScanSizeTop', Format => 'int32u', Condition => '$$self{BitM} & 0x40000' },
|
188
|
+
595 => { Name => 'ScanSizeRight', Format => 'int32u', Condition => '$$self{BitM} & 0x80000' },
|
189
|
+
599 => { Name => 'ScanSizeBottom', Format => 'int32u', Condition => '$$self{BitM} & 0x100000' },
|
190
|
+
603 => { Name => 'FullScanFOV_X', Format => 'double', Condition => '$$self{BitM} & 0x200000' },
|
191
|
+
611 => { Name => 'FullScanFOV_Y', Format => 'double', Condition => '$$self{BitM} & 0x400000' },
|
192
|
+
619 => { Name => 'Element', Format => 'string[16]', Condition => '$$self{BitM} & 0x800000' },
|
193
|
+
635 => { Name => 'EnergyIntervalLower', Format => 'double', Condition => '$$self{BitM} & 0x1000000' },
|
194
|
+
643 => { Name => 'EnergyIntervalHigher',Format => 'double', Condition => '$$self{BitM} & 0x2000000' },
|
195
|
+
651 => { Name => 'Method', Format=> 'int32u', Condition => '$$self{BitM} & 0x4000000' },
|
196
|
+
655 => { Name => 'IsDoseFraction', %bool, Condition => '$$self{BitM} & 0x8000000' },
|
197
|
+
656 => { Name => 'FractionNumber', Format => 'int32u', Condition => '$$self{BitM} & 0x10000000' },
|
198
|
+
660 => { Name => 'StartFrame', Format => 'int32u', Condition => '$$self{BitM} & 0x20000000' },
|
199
|
+
664 => { Name => 'EndFrame', Format => 'int32u', Condition => '$$self{BitM} & 0x40000000' },
|
200
|
+
668 => { Name =>'InputStackFilename',Format=> 'string[80]', Condition => '$$self{BitM} & 0x80000000' },
|
201
|
+
748 => {
|
202
|
+
Name => 'Bitmask4',
|
203
|
+
Format => 'int32u',
|
204
|
+
RawConv => '$$self{BitM} = $val',
|
205
|
+
PrintConv => 'sprintf("0x%.8x", $val)',
|
206
|
+
},
|
207
|
+
752 => { Name => 'AlphaTiltMin', Format => 'double', Condition => '$$self{BitM} & 0x01' },
|
208
|
+
760 => { Name => 'AlphaTiltMax', Format => 'double', Condition => '$$self{BitM} & 0x02' },
|
209
|
+
#
|
210
|
+
# FEI2 header starts here
|
211
|
+
#
|
212
|
+
768 => { Name => 'ScanRotation', Format => 'double', Condition => '$$self{BitM} & 0x04' },
|
213
|
+
776 => { Name => 'DiffractionPatternRotation',Format=>'double', Condition => '$$self{BitM} & 0x08' },
|
214
|
+
784 => { Name => 'ImageRotation', Format => 'double', Condition => '$$self{BitM} & 0x10' },
|
215
|
+
792 => { Name => 'ScanModeEnumeration',Format => 'int32u', Condition => '$$self{BitM} & 0x20', PrintConv => { 0 => 'Other', 1 => 'Raster', 2 => 'Serpentine' } },
|
216
|
+
796 => {
|
217
|
+
Name => 'AcquisitionTimeStamp',
|
218
|
+
Format => 'int64u',
|
219
|
+
Condition => '$$self{BitM} & 0x40',
|
220
|
+
Groups => { 2 => 'Time' },
|
221
|
+
# microseconds since 1970 UTC
|
222
|
+
ValueConv => 'ConvertUnixTime($val / 1e6, 1, 6)',
|
223
|
+
PrintConv => '$self->ConvertDateTime($val)',
|
224
|
+
},
|
225
|
+
804 => { Name => 'DetectorCommercialName', Format => 'string[16]', Condition => '$$self{BitM} & 0x80' },
|
226
|
+
820 => { Name => 'StartTiltAngle', Format => 'double', Condition => '$$self{BitM} & 0x100' },
|
227
|
+
828 => { Name => 'EndTiltAngle', Format => 'double', Condition => '$$self{BitM} & 0x200' },
|
228
|
+
836 => { Name => 'TiltPerImage', Format => 'double', Condition => '$$self{BitM} & 0x400' },
|
229
|
+
844 => { Name => 'TitlSpeed', Format => 'double', Condition => '$$self{BitM} & 0x800' },
|
230
|
+
852 => { Name => 'BeamCenterX', Format => 'int32u', Condition => '$$self{BitM} & 0x1000' },
|
231
|
+
856 => { Name => 'BeamCenterY', Format => 'int32u', Condition => '$$self{BitM} & 0x2000' },
|
232
|
+
860 => {
|
233
|
+
Name => 'CFEGFlashTimeStamp',
|
234
|
+
Format => 'int64u',
|
235
|
+
Condition => '$$self{BitM} & 0x4000',
|
236
|
+
Groups => { 2 => 'Time' },
|
237
|
+
ValueConv => 'ConvertUnixTime($val / 1e6, 1, 6)',
|
238
|
+
PrintConv => '$self->ConvertDateTime($val)',
|
239
|
+
},
|
240
|
+
868 => { Name => 'PhasePlatePosition',Format => 'int32u', Condition => '$$self{BitM} & 0x8000' },
|
241
|
+
872 => { Name => 'ObjectiveAperture', Format=>'string[16]',Condition => '$$self{BitM} & 0x10000' },
|
242
|
+
);
|
243
|
+
|
244
|
+
#------------------------------------------------------------------------------
|
245
|
+
# Extract metadata from a MRC image
|
246
|
+
# Inputs: 0) ExifTool object reference, 1) dirInfo reference
|
247
|
+
# Returns: 1 on success, 0 if this wasn't a valid MRC file
|
248
|
+
sub ProcessMRC($$)
|
249
|
+
{
|
250
|
+
my ($et, $dirInfo) = @_;
|
251
|
+
my $raf = $$dirInfo{RAF};
|
252
|
+
my ($buff, $tagTablePtr, $i);
|
253
|
+
|
254
|
+
# verify this is a valid MRC file
|
255
|
+
return 0 unless $raf->Read($buff, 1024) == 1024;
|
256
|
+
# validate axes, "MAP" file type and machine stamp
|
257
|
+
return 0 unless $buff =~ /^.{64}[\x01\x02\x03]\0\0\0[\x01\x02\x03]\0\0\0[\x01\x02\x03]\0\0\0.{132}MAP[\0 ](\x44\x44|\x44\x41|\x11\x11)\0\0/s;
|
258
|
+
|
259
|
+
$et->SetFileType();
|
260
|
+
SetByteOrder('II');
|
261
|
+
my %dirInfo = (
|
262
|
+
DataPt => \$buff,
|
263
|
+
DirStart => 0,
|
264
|
+
DirLen => length($buff),
|
265
|
+
);
|
266
|
+
$tagTablePtr = GetTagTable('Image::ExifTool::MRC::Main');
|
267
|
+
$et->ProcessDirectory(\%dirInfo, $tagTablePtr);
|
268
|
+
|
269
|
+
# (I don't have any samples with extended headers for testing, so these are not yet decoded)
|
270
|
+
if ($$et{ExtendedHeaderSize} and $$et{ExtendedHeaderType} =~ /^FEI[12]/) {
|
271
|
+
unless ($raf->Read($buff,4)==4 and $raf->Seek(-4,1)) { # read metadata size
|
272
|
+
$et->Warn('Error reading extended header');
|
273
|
+
return 1;
|
274
|
+
}
|
275
|
+
my $size = Get32u(\$buff, 0);
|
276
|
+
if ($size * $$et{ImageDepth} > $$et{ExtendedHeaderSize}) {
|
277
|
+
$et->Warn('Corrupted extended header');
|
278
|
+
return 1;
|
279
|
+
}
|
280
|
+
$dirInfo{DirLen} = $size;
|
281
|
+
$tagTablePtr = GetTagTable('Image::ExifTool::MRC::FEI12');
|
282
|
+
for ($i=0; ;) {
|
283
|
+
$dirInfo{DataPos} = $raf->Tell();
|
284
|
+
$raf->Read($buff, $size) == $size or $et->Warn("Error reading extended header $i"), last;
|
285
|
+
$et->ProcessDirectory(\%dirInfo, $tagTablePtr);
|
286
|
+
last if ++$i >= $$et{ImageDepth};
|
287
|
+
unless ($$et{OPTIONS}{ExtractEmbedded}) {
|
288
|
+
$et->Warn('Use the ExtractEmbedded option to read metadata for all frames',3);
|
289
|
+
last;
|
290
|
+
}
|
291
|
+
$$et{DOC_NUM} = ++$$et{DOC_COUNT};
|
292
|
+
}
|
293
|
+
delete $$et{DOC_NUM};
|
294
|
+
}
|
295
|
+
|
296
|
+
return 1;
|
297
|
+
}
|
298
|
+
|
299
|
+
1; # end
|
300
|
+
|
301
|
+
__END__
|
302
|
+
|
303
|
+
=head1 NAME
|
304
|
+
|
305
|
+
Image::ExifTool::MRC - Read MRC meta information
|
306
|
+
|
307
|
+
=head1 SYNOPSIS
|
308
|
+
|
309
|
+
This module is used by Image::ExifTool
|
310
|
+
|
311
|
+
=head1 DESCRIPTION
|
312
|
+
|
313
|
+
This module contains definitions required by Image::ExifTool to read
|
314
|
+
metadata from Medical Research Council (MRC) images.
|
315
|
+
|
316
|
+
=head1 AUTHOR
|
317
|
+
|
318
|
+
Copyright 2003-2021, Phil Harvey (philharvey66 at gmail.com)
|
319
|
+
|
320
|
+
This library is free software; you can redistribute it and/or modify it
|
321
|
+
under the same terms as Perl itself.
|
322
|
+
|
323
|
+
=head1 REFERENCES
|
324
|
+
|
325
|
+
=over 4
|
326
|
+
|
327
|
+
=item L<https://www.ccpem.ac.uk/mrc_format/mrc2014.php>
|
328
|
+
|
329
|
+
=item L<http://legacy.ccp4.ac.uk/html/library.html>
|
330
|
+
|
331
|
+
=item L<https://github.com/ccpem/mrcfile/blob/master/mrcfile/dtypes.py>
|
332
|
+
|
333
|
+
=back
|
334
|
+
|
335
|
+
=head1 SEE ALSO
|
336
|
+
|
337
|
+
L<Image::ExifTool::TagNames/MRC Tags>,
|
338
|
+
L<Image::ExifTool(3pm)|Image::ExifTool>
|
339
|
+
|
340
|
+
=cut
|
341
|
+
|
@@ -460,7 +460,7 @@ my %sKeywordStruct;
|
|
460
460
|
NOTES => q{
|
461
461
|
Image region metadata defined by the MWG 2.0 specification. These tags
|
462
462
|
may be accessed without the need to load the MWG Composite tags above. See
|
463
|
-
L<https://web.archive.org/web/
|
463
|
+
L<https://web.archive.org/web/20180919181934/http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf>
|
464
464
|
for the official specification.
|
465
465
|
},
|
466
466
|
Regions => {
|
@@ -490,7 +490,7 @@ my %sKeywordStruct;
|
|
490
490
|
ExifTool unrolls keyword structures to an arbitrary depth of 6 to allow
|
491
491
|
individual levels to be accessed with different tag names, and to avoid
|
492
492
|
infinite recursion. See
|
493
|
-
L<https://web.archive.org/web/
|
493
|
+
L<https://web.archive.org/web/20180919181934/http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf>
|
494
494
|
for the official specification.
|
495
495
|
},
|
496
496
|
# arbitrarily define only the first 6 levels of the keyword hierarchy
|
@@ -529,7 +529,7 @@ my %sKeywordStruct;
|
|
529
529
|
NAMESPACE => 'mwg-coll',
|
530
530
|
NOTES => q{
|
531
531
|
Collections metadata defined by the MWG 2.0 specification. See
|
532
|
-
L<https://web.archive.org/web/
|
532
|
+
L<https://web.archive.org/web/20180919181934/http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf>
|
533
533
|
for the official specification.
|
534
534
|
},
|
535
535
|
Collections => {
|
@@ -1066,7 +1066,7 @@ my %componentDataDef = (
|
|
1066
1066
|
'060e2b34.0101.0102.04010503.08000000' => { Name => 'Palette', Type => 'DataValue', Unknown => 1 },
|
1067
1067
|
'060e2b34.0101.0102.04010503.09000000' => { Name => 'PaletteLayout', Type => 'RGBALayout', Unknown => 1 },
|
1068
1068
|
'060e2b34.0101.0102.04010503.0a000000' => { Name => 'ComponentDepth', Format => 'int32u' },
|
1069
|
-
'060e2b34.0101.0102.04010601.00000000' => { Name => 'VideoCodingSchemeID', Type => 'AUID'
|
1069
|
+
'060e2b34.0101.0102.04010601.00000000' => { Name => 'VideoCodingSchemeID', Type => 'AUID' },
|
1070
1070
|
'060e2b34.0101.0102.04010802.03000000' => { Name => 'RoundedCaptureFilmFrameRate', Format => 'int32u' },
|
1071
1071
|
'060e2b34.0101.0102.04020301.02000000' => { Name => 'AudioAverageBitrate', Format => 'float', PrintConv => 'ConvertBitrate($val)', Groups => { 2 => 'Audio' } },
|
1072
1072
|
'060e2b34.0101.0102.04020301.03000000' => { Name => 'AudioFixedBitrateFlag', Type => 'Boolean', Groups => { 2 => 'Audio' } },
|
@@ -52,7 +52,7 @@ my %mdDateInfo = (
|
|
52
52
|
NOTES => q{
|
53
53
|
MDItem tags are extracted using the "mdls" utility. They are extracted if
|
54
54
|
any "MDItem*" tag or the MacOS group is specifically requested, or by
|
55
|
-
setting the L<MDItemTags|../ExifTool.html#MDItemTags>
|
55
|
+
setting the API L<MDItemTags|../ExifTool.html#MDItemTags> option to 1 or the API L<RequestAll|../ExifTool.html#RequestAll> option to 2 or
|
56
56
|
higher. Note that these tags do not necessarily reflect the current
|
57
57
|
metadata of a file -- it may take some time for the MacOS mdworker daemon to
|
58
58
|
index the file after a metadata change.
|
@@ -244,8 +244,8 @@ my %mdDateInfo = (
|
|
244
244
|
NOTES => q{
|
245
245
|
XAttr tags are extracted using the "xattr" utility. They are extracted if
|
246
246
|
any "XAttr*" tag or the MacOS group is specifically requested, or by setting
|
247
|
-
the L<XAttrTags|../ExifTool.html#XAttrTags>
|
248
|
-
And they extracted by default from MacOS "._" files when reading
|
247
|
+
the API L<XAttrTags|../ExifTool.html#XAttrTags> option to 1 or the API L<RequestAll|../ExifTool.html#RequestAll> option to 2 or higher.
|
248
|
+
And they are extracted by default from MacOS "._" files when reading
|
249
249
|
these files directly.
|
250
250
|
},
|
251
251
|
'com.apple.FinderInfo' => {
|
@@ -17,7 +17,7 @@ use vars qw($VERSION);
|
|
17
17
|
use Image::ExifTool qw(:DataAccess :Utils);
|
18
18
|
use Image::ExifTool::XMP;
|
19
19
|
|
20
|
-
$VERSION = '1.
|
20
|
+
$VERSION = '1.23';
|
21
21
|
|
22
22
|
sub ProcessXtra($$$);
|
23
23
|
sub WriteXtra($$$);
|
@@ -889,12 +889,14 @@ sub WriteXtraValue($$$)
|
|
889
889
|
} elsif ($format eq 'date') {
|
890
890
|
$dat = Image::ExifTool::GetUnixTime($val, 1); # (convert to UTC, NC)
|
891
891
|
if ($dat) {
|
892
|
+
# 100ns intervals since Jan 1, 1601
|
892
893
|
$dat = Set64u(($dat + 11644473600) * 1e7);
|
893
894
|
$type = 21;
|
894
895
|
}
|
895
|
-
} elsif ($format eq 'vt_filetime') {
|
896
|
+
} elsif ($format eq 'vt_filetime') { # 'date' value inside a VT_VARIANT
|
896
897
|
$dat = Image::ExifTool::GetUnixTime($val); # (leave as local time, NC)
|
897
898
|
if ($dat) {
|
899
|
+
# 100ns intervals since Jan 1, 1601
|
898
900
|
$dat = Set32u(64) . Set64u(($dat + 11644473600) * 1e7);
|
899
901
|
$type = 65;
|
900
902
|
}
|
@@ -987,11 +989,11 @@ sub WriteXtra($$$)
|
|
987
989
|
last; # (it was a cheap goto)
|
988
990
|
}
|
989
991
|
if ($done{$tag}) {
|
992
|
+
$changed = 1;
|
990
993
|
# write changed values
|
991
994
|
my $buff = WriteXtraValue($et, $$newTags{$tag}, \@newVals);
|
992
995
|
if (length $buff) {
|
993
996
|
$newData .= Set32u(8+length($tag)+length($buff)) . Set32u(length($tag)) . $tag . $buff;
|
994
|
-
$changed = 1;
|
995
997
|
}
|
996
998
|
} else {
|
997
999
|
# nothing changed; just copy over
|
@@ -62,7 +62,7 @@ use Image::ExifTool qw(:DataAccess :Utils);
|
|
62
62
|
use Image::ExifTool::Exif;
|
63
63
|
use Image::ExifTool::GPS;
|
64
64
|
|
65
|
-
$VERSION = '
|
65
|
+
$VERSION = '4.00';
|
66
66
|
|
67
67
|
sub LensIDConv($$$);
|
68
68
|
sub ProcessNikonAVI($$$);
|
@@ -272,6 +272,7 @@ sub GetAFPointGrid($$;$);
|
|
272
272
|
'9F 58 44 44 14 14 A1 06' => 'AF-S DX Nikkor 35mm f/1.8G', #27
|
273
273
|
'A0 54 50 50 0C 0C A2 06' => 'AF-S Nikkor 50mm f/1.4G',
|
274
274
|
'A1 40 18 37 2C 34 A3 06' => 'AF-S DX Nikkor 10-24mm f/3.5-4.5G ED',
|
275
|
+
'A1 40 2D 53 2C 3C CB 86' => 'AF-P DX Nikkor 18-55mm f/3.5-5.6G', #30
|
275
276
|
'A2 48 5C 80 24 24 A4 0E' => 'AF-S Nikkor 70-200mm f/2.8G ED VR II',
|
276
277
|
'A3 3C 29 44 30 30 A5 0E' => 'AF-S Nikkor 16-35mm f/4G ED VR',
|
277
278
|
'A4 54 37 37 0C 0C A6 06' => 'AF-S Nikkor 24mm f/1.4G ED',
|
@@ -495,6 +496,7 @@ sub GetAFPointGrid($$;$);
|
|
495
496
|
'02 46 5C 82 25 25 02 00' => 'Sigma 70-210mm F2.8 APO', #JD
|
496
497
|
'02 40 5C 82 2C 35 02 00' => 'Sigma APO 70-210mm F3.5-4.5',
|
497
498
|
'26 3C 5C 82 30 3C 1C 02' => 'Sigma 70-210mm F4-5.6 UC-II',
|
499
|
+
'02 3B 5C 82 30 3C 02 00' => 'Sigma Zoom-K 70-210mm F4-5.6', #30
|
498
500
|
'26 3C 5C 8E 30 3C 1C 02' => 'Sigma 70-300mm F4-5.6 DG Macro',
|
499
501
|
'56 3C 5C 8E 30 3C 1C 02' => 'Sigma 70-300mm F4-5.6 APO Macro Super II',
|
500
502
|
'E0 3C 5C 8E 30 3C 4B 06' => 'Sigma 70-300mm F4-5.6 APO DG Macro HSM', #22
|
@@ -554,6 +556,7 @@ sub GetAFPointGrid($$;$);
|
|
554
556
|
'F3 54 2B 50 24 24 84 0E' => 'Tamron SP AF 17-50mm f/2.8 XR Di II VC LD Aspherical (IF) (B005)',
|
555
557
|
'00 3F 2D 80 2B 40 00 06' => 'Tamron AF 18-200mm f/3.5-6.3 XR Di II LD Aspherical (IF) (A14)',
|
556
558
|
'00 3F 2D 80 2C 40 00 06' => 'Tamron AF 18-200mm f/3.5-6.3 XR Di II LD Aspherical (IF) Macro (A14)',
|
559
|
+
'EC 3E 3C 8E 2C 40 DF 0E' => 'Tamron 28-300mm f/3.5-6.3 Di VC PZD A010', #30
|
557
560
|
'00 40 2D 80 2C 40 00 06' => 'Tamron AF 18-200mm f/3.5-6.3 XR Di II LD Aspherical (IF) Macro (A14NII)', #NJ
|
558
561
|
'FC 40 2D 80 2C 40 DF 06' => 'Tamron AF 18-200mm f/3.5-6.3 XR Di II LD Aspherical (IF) Macro (A14NII)', #PH (NC)
|
559
562
|
'E6 40 2D 80 2C 40 DF 0E' => 'Tamron 18-200mm f/3.5-6.3 Di II VC (B018)', #Tanel (removed AF designation, ref 37)
|
@@ -563,7 +566,7 @@ sub GetAFPointGrid($$;$);
|
|
563
566
|
'F0 3F 2D 8A 2C 40 DF 0E' => 'Tamron AF 18-270mm f/3.5-6.3 Di II VC PZD (B008)',
|
564
567
|
'E0 40 2D 98 2C 41 DF 4E' => 'Tamron 18-400mm f/3.5-6.3 Di II VC HLD (B028)', # (removed AF designation, ref 37)
|
565
568
|
'07 40 2F 44 2C 34 03 02' => 'Tamron AF 19-35mm f/3.5-4.5 (A10)',
|
566
|
-
'07 40 30 45 2D 35 03 02' => 'Tamron AF 19-35mm f/3.5-4.5 (A10)',
|
569
|
+
'07 40 30 45 2D 35 03 02.1' => 'Tamron AF 19-35mm f/3.5-4.5 (A10)',
|
567
570
|
'00 49 30 48 22 2B 00 02' => 'Tamron SP AF 20-40mm f/2.7-3.5 (166D)',
|
568
571
|
'0E 4A 31 48 23 2D 0E 02' => 'Tamron SP AF 20-40mm f/2.7-3.5 (166D)',
|
569
572
|
'FE 48 37 5C 24 24 DF 0E' => 'Tamron SP 24-70mm f/2.8 Di VC USD (A007)', #24
|
@@ -595,6 +598,7 @@ sub GetAFPointGrid($$;$);
|
|
595
598
|
'00 48 5C 8E 30 3C 00 06' => 'Tamron AF 70-300mm f/4-5.6 Di LD Macro 1:2 (A17NII)', #JD
|
596
599
|
'F1 47 5C 8E 30 3C DF 0E' => 'Tamron SP 70-300mm f/4-5.6 Di VC USD (A005)',
|
597
600
|
'CF 47 5C 8E 31 3D DF 0E' => 'Tamron SP 70-300mm f/4-5.6 Di VC USD (A030)', #forum9773
|
601
|
+
'CC 44 68 98 34 41 DF 0E' => 'Tamron 100-400mm f/4.5-6.3 Di VC USD', #30
|
598
602
|
'EB 40 76 A6 38 40 DF 0E' => 'Tamron SP AF 150-600mm f/5-6.3 VC USD (A011)',
|
599
603
|
'E3 40 76 A6 38 40 DF 4E' => 'Tamron SP 150-600mm f/5-6.3 Di VC USD G2', #30
|
600
604
|
'20 3C 80 98 3D 3D 1E 02' => 'Tamron AF 200-400mm f/5.6 LD IF (75D)',
|
@@ -612,6 +616,7 @@ sub GetAFPointGrid($$;$);
|
|
612
616
|
'7A 48 1C 29 24 24 7E 06' => 'Tokina AT-X 116 PRO DX II (AF 11-16mm f/2.8)',
|
613
617
|
'80 48 1C 29 24 24 7A 06' => 'Tokina atx-i 11-16mm F2.8 CF', #exiv2 issue 1078
|
614
618
|
'7A 48 1C 30 24 24 7E 06' => 'Tokina AT-X 11-20 F2.8 PRO DX (AF 11-20mm f/2.8)',
|
619
|
+
'8B 48 1C 30 24 24 85 06' => 'Tokina AT-X 11-20 F2.8 PRO DX (AF 11-20mm f/2.8)', #forum12687
|
615
620
|
'00 3C 1F 37 30 30 00 06' => 'Tokina AT-X 124 AF PRO DX (AF 12-24mm f/4)',
|
616
621
|
'7A 3C 1F 37 30 30 7E 06.2' => 'Tokina AT-X 124 AF PRO DX II (AF 12-24mm f/4)',
|
617
622
|
'7A 3C 1F 3C 30 30 7E 06' => 'Tokina AT-X 12-28 PRO DX (AF 12-28mm f/4)',
|
@@ -656,6 +661,7 @@ sub GetAFPointGrid($$;$);
|
|
656
661
|
'00 54 48 48 18 18 00 00' => 'Voigtlander Ultron 40mm F2 SLII Aspherical',
|
657
662
|
'00 54 55 55 0C 0C 00 00' => 'Voigtlander Nokton 58mm F1.4 SLII',
|
658
663
|
'00 40 64 64 2C 2C 00 00' => 'Voigtlander APO-Lanthar 90mm F3.5 SLII Close Focus',
|
664
|
+
'07 40 30 45 2D 35 03 02.2' => 'Voigtlander Ultragon 19-35mm F3.5-4.5 VMV', #NJ
|
659
665
|
#
|
660
666
|
'00 40 2D 2D 2C 2C 00 00' => 'Carl Zeiss Distagon T* 3.5/18 ZF.2',
|
661
667
|
'00 48 27 27 24 24 00 00' => 'Carl Zeiss Distagon T* 2.8/15 ZF.2', #MykytaKozlov
|
@@ -717,6 +723,9 @@ sub GetAFPointGrid($$;$);
|
|
717
723
|
'00 40 11 11 2C 2C 00 00' => 'Samyang 8mm f/3.5 Fish-Eye',
|
718
724
|
'00 58 64 64 20 20 00 00' => 'Soligor C/D Macro MC 90mm f/2.5',
|
719
725
|
'4A 58 30 30 14 0C 4D 02' => 'Rokinon 20mm f/1.8 ED AS UMC', #30
|
726
|
+
#
|
727
|
+
'A0 56 44 44 14 14 A2 06' => 'Sony FE 35mm F1.8', #IB (Techart adapter)
|
728
|
+
'A0 37 5C 8E 34 3C A2 06' => 'Sony FE 70-300mm F4.5-5.6 G OSS', #IB (Techart adapter)
|
720
729
|
);
|
721
730
|
|
722
731
|
# text encoding used in LocationInfo (ref PH)
|
@@ -4719,6 +4728,9 @@ my %nikonFocalConversions = (
|
|
4719
4728
|
21 => 'Nikkor Z 50mm f/1.2 S', #IB
|
4720
4729
|
22 => 'Nikkor Z 24-50mm f/4-6.3', #IB
|
4721
4730
|
23 => 'Nikkor Z 14-24mm f/2.8 S', #IB
|
4731
|
+
24 => 'Nikkor Z MC 105mm f/2.8 VR S', #IB
|
4732
|
+
27 => 'Nikkor Z MC 50mm f/2.8', #IB
|
4733
|
+
29 => 'Nikkor Z 28mm f/2.8', #IB
|
4722
4734
|
},
|
4723
4735
|
},
|
4724
4736
|
0x36 => {
|
@@ -8491,8 +8503,8 @@ my %nikonFocalConversions = (
|
|
8491
8503
|
# 0x02 - undef[148]
|
8492
8504
|
# 0x03 - undef[284]
|
8493
8505
|
# 0x04 - undef[148,212]
|
8494
|
-
# 0x05 - undef[84]
|
8495
|
-
# 0x06 - undef[116]
|
8506
|
+
# 0x05 - undef[84] (barrel distortion params at offsets 0x14,0x1c,0x24, ref 28)
|
8507
|
+
# 0x06 - undef[116] (vignette correction params at offsets 0x24,0x34,0x44, ref 28)
|
8496
8508
|
# 0x07 - undef[104]
|
8497
8509
|
# 0x08 - undef[24]
|
8498
8510
|
# 0x09 - undef[36]
|
@@ -9467,7 +9479,7 @@ sub GetAFPointGrid($$;$)
|
|
9467
9479
|
return undef unless $val =~ /^([A-J])(\d+)$/i;
|
9468
9480
|
return (ord(uc($1))-65) * $ncol + $2 - 1;
|
9469
9481
|
} else {
|
9470
|
-
my $row = int(($val + 0.5) / $ncol);
|
9482
|
+
my $row = int(($val + 0.5) / $ncol) & 0xff;
|
9471
9483
|
my $col = $val - $ncol * $row + 1;
|
9472
9484
|
return chr(65+$row) . $col;
|
9473
9485
|
}
|
@@ -17,7 +17,7 @@ use strict;
|
|
17
17
|
use vars qw($VERSION);
|
18
18
|
use Image::ExifTool qw(:DataAccess :Utils);
|
19
19
|
|
20
|
-
$VERSION = '1.
|
20
|
+
$VERSION = '1.04';
|
21
21
|
|
22
22
|
sub ProcessNikonSettings($$$);
|
23
23
|
|
@@ -592,7 +592,7 @@ my %infoD6 = (
|
|
592
592
|
},
|
593
593
|
},
|
594
594
|
0x026 => { Name => 'AF-AssistIlluminator', PrintConv => \%onOff }, # CSa11 (Z7_2)
|
595
|
-
|
595
|
+
0x027 => { Name => 'ManualFocusRingInAFMode', PrintConv => \%onOff }, # CSa12 (D6,Z7_2) capability documented in manual, but visibility (& ability to test) requires a compatible lens
|
596
596
|
0x029 => { Name => 'ISOStepSize', PrintConv => \%thirdHalfFull }, # CSb1 (D6)
|
597
597
|
0x02a => { Name => 'ExposureControlStepSize', PrintConv => \%thirdHalfFull }, # CSb2 (D6), CSb1 (Z7_2)
|
598
598
|
0x02b => { # CSb4 (D6), CSb2 (Z7_2)
|
@@ -1919,6 +1919,23 @@ my %infoD6 = (
|
|
1919
1919
|
10 => 'Auto (Animals)',
|
1920
1920
|
},
|
1921
1921
|
},
|
1922
|
+
0x170 => { Name => 'PreferSubSelectorCenter', PrintConv => \%offOn }, # CSf13 (D6 firmware v1.2.0)
|
1923
|
+
0x171 => { # CSb8 (D6 firmware v1.3.0)
|
1924
|
+
Name => 'KeepExposureWithTeleconverter',
|
1925
|
+
PrintConv => {
|
1926
|
+
1 => 'Off',
|
1927
|
+
2 => 'Shutter Speed',
|
1928
|
+
3 => 'ISO',
|
1929
|
+
},
|
1930
|
+
},
|
1931
|
+
0x174 => { # CSa17-d (D6 firmware v1.2.0)
|
1932
|
+
Name => 'FocusPointSelectionSpeed',
|
1933
|
+
PrintConv => {
|
1934
|
+
1 => 'Normal',
|
1935
|
+
2 => 'High',
|
1936
|
+
3 => 'Very High',
|
1937
|
+
},
|
1938
|
+
},
|
1922
1939
|
);
|
1923
1940
|
|
1924
1941
|
#------------------------------------------------------------------------------
|
@@ -40,7 +40,7 @@ use Image::ExifTool qw(:DataAccess :Utils);
|
|
40
40
|
use Image::ExifTool::Exif;
|
41
41
|
use Image::ExifTool::APP12;
|
42
42
|
|
43
|
-
$VERSION = '2.
|
43
|
+
$VERSION = '2.75';
|
44
44
|
|
45
45
|
sub PrintLensInfo($$$);
|
46
46
|
|
@@ -113,6 +113,8 @@ my %olympusLensTypes = (
|
|
113
113
|
'0 34 00' => 'Olympus Zuiko Digital ED 9-18mm F4.0-5.6', #7
|
114
114
|
'0 34 10' => 'Olympus M.Zuiko Digital ED 12-45mm F4.0 Pro', #IB
|
115
115
|
'0 35 00' => 'Olympus Zuiko Digital 14-54mm F2.8-3.5 II', #PH
|
116
|
+
'0 35 10' => 'Olympus M.Zuiko 100-400mm F5.0-6.3', #IB
|
117
|
+
'0 36 10' => 'Olympus M.Zuiko Digital ED 8-25mm F4 Pro', #IB
|
116
118
|
# Sigma lenses
|
117
119
|
'1 01 00' => 'Sigma 18-50mm F3.5-5.6 DC', #8
|
118
120
|
'1 01 10' => 'Sigma 30mm F2.8 EX DN', #NJ
|
@@ -138,7 +140,6 @@ my %olympusLensTypes = (
|
|
138
140
|
'1 15 00' => 'Sigma 10-20mm F4.0-5.6 EX DC HSM', #11
|
139
141
|
'1 16 00' => 'Sigma APO 70-200mm F2.8 II EX DG Macro HSM', #11
|
140
142
|
'1 17 00' => 'Sigma 50mm F1.4 EX DG HSM', #11
|
141
|
-
'1 18 60' => 'Test',
|
142
143
|
# Panasonic/Leica lenses
|
143
144
|
'2 01 00' => 'Leica D Vario Elmarit 14-50mm F2.8-3.5 Asph.', #11
|
144
145
|
'2 01 10' => 'Lumix G Vario 14-45mm F3.5-5.6 Asph. Mega OIS', #16
|
@@ -183,6 +184,7 @@ my %olympusLensTypes = (
|
|
183
184
|
'2 36 10' => 'Leica DG Elmarit 200mm F2.8 Power OIS', #IB
|
184
185
|
'2 37 10' => 'Leica DG Vario-Elmarit 50-200mm F2.8-4 Asph. Power OIS', #IB
|
185
186
|
'2 38 10' => 'Leica DG Vario-Summilux 10-25mm F1.7 Asph.', #IB
|
187
|
+
'2 40 10' => 'Leica DG Vario-Summilux 25-50mm F1.7 Asph.', #IB (H-X2550)
|
186
188
|
'3 01 00' => 'Leica D Vario Elmarit 14-50mm F2.8-3.5 Asph.', #11
|
187
189
|
'3 02 00' => 'Leica D Summilux 25mm F1.4 Asph.', #11
|
188
190
|
# Tamron lenses
|
@@ -429,6 +431,7 @@ my %olympusCameraTypes = (
|
|
429
431
|
S0085 => 'E-PL10', #IB
|
430
432
|
S0089 => 'E-M5MarkIII',
|
431
433
|
S0092 => 'E-M1MarkIII', #IB
|
434
|
+
S0093 => 'E-P7', #IB
|
432
435
|
SR45 => 'D220',
|
433
436
|
SR55 => 'D320L',
|
434
437
|
SR83 => 'D340L',
|
@@ -3606,6 +3609,10 @@ my %indexInfo = (
|
|
3606
3609
|
Format => 'string[24]',
|
3607
3610
|
Groups => { 2 => 'Time' },
|
3608
3611
|
},
|
3612
|
+
0x17f => {
|
3613
|
+
Name => 'LensModel',
|
3614
|
+
Format => 'string[32]'
|
3615
|
+
},
|
3609
3616
|
);
|
3610
3617
|
|
3611
3618
|
# yet a different "thmb" atom format (PH, E-M5)
|