exiftool-vendored.exe 13.26.0 → 13.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +254 -254
- package/bin/README.txt +14 -14
- package/bin/exiftool.exe +0 -0
- package/bin/exiftool_files/exiftool.pl +7 -8
- package/bin/exiftool_files/lib/CPAN/Config.pm +98 -98
- package/bin/exiftool_files/lib/Config.pm +111 -111
- package/bin/exiftool_files/lib/Config_git.pl +12 -12
- package/bin/exiftool_files/lib/Config_heavy.pl +1470 -1470
- package/bin/exiftool_files/lib/DynaLoader.pm +761 -761
- package/bin/exiftool_files/lib/Errno.pm +2638 -2638
- package/bin/exiftool_files/lib/Image/ExifTool/BuildTagLookup.pm +1 -1
- package/bin/exiftool_files/lib/Image/ExifTool/Canon.pm +4 -2
- package/bin/exiftool_files/lib/Image/ExifTool/Exif.pm +3 -1
- package/bin/exiftool_files/lib/Image/ExifTool/FujiFilm.pm +2 -1
- package/bin/exiftool_files/lib/Image/ExifTool/GIMP.pm +1 -1
- package/bin/exiftool_files/lib/Image/ExifTool/Geolocation.dat +0 -0
- package/bin/exiftool_files/lib/Image/ExifTool/JPEG.pm +20 -8
- package/bin/exiftool_files/lib/Image/ExifTool/LigoGPS.pm +16 -2
- package/bin/exiftool_files/lib/Image/ExifTool/MPF.pm +5 -1
- package/bin/exiftool_files/lib/Image/ExifTool/MakerNotes.pm +3 -3
- package/bin/exiftool_files/lib/Image/ExifTool/Olympus.pm +6 -2
- package/bin/exiftool_files/lib/Image/ExifTool/Panasonic.pm +9 -1
- package/bin/exiftool_files/lib/Image/ExifTool/Parrot.pm +54 -7
- package/bin/exiftool_files/lib/Image/ExifTool/Pentax.pm +151 -11
- package/bin/exiftool_files/lib/Image/ExifTool/Plot.pm +36 -15
- package/bin/exiftool_files/lib/Image/ExifTool/QuickTime.pm +73 -6
- package/bin/exiftool_files/lib/Image/ExifTool/QuickTimeStream.pl +80 -14
- package/bin/exiftool_files/lib/Image/ExifTool/README +12 -2
- package/bin/exiftool_files/lib/Image/ExifTool/Sigma.pm +12 -4
- package/bin/exiftool_files/lib/Image/ExifTool/Sony.pm +8 -3
- package/bin/exiftool_files/lib/Image/ExifTool/TagLookup.pm +3745 -3729
- package/bin/exiftool_files/lib/Image/ExifTool/TagNames.pod +147 -89
- package/bin/exiftool_files/lib/Image/ExifTool/WriteExif.pl +2 -0
- package/bin/exiftool_files/lib/Image/ExifTool/WriteQuickTime.pl +3 -0
- package/bin/exiftool_files/lib/Image/ExifTool/Writer.pl +18 -7
- package/bin/exiftool_files/lib/Image/ExifTool/XMP.pm +2 -2
- package/bin/exiftool_files/lib/Image/ExifTool.pm +12 -7
- package/bin/exiftool_files/lib/Image/ExifTool.pod +11 -11
- package/bin/exiftool_files/lib/Win32/FindFile.pm +82 -82
- package/bin/exiftool_files/lib/Win32API/File/cFile.pc +168 -168
- package/bin/exiftool_files/lib/XSLoader.pm +372 -372
- package/bin/exiftool_files/lib/auto/Compress/Raw/Lzma/autosplit.ix +3 -3
- package/bin/exiftool_files/readme_windows.txt +16 -16
- package/bin/exiftool_files/windows_exiftool.txt +15 -9
- package/package.json +54 -53
|
@@ -11,7 +11,7 @@ package Image::ExifTool::Plot;
|
|
|
11
11
|
use strict;
|
|
12
12
|
use vars qw($VERSION);
|
|
13
13
|
|
|
14
|
-
$VERSION = '1.
|
|
14
|
+
$VERSION = '1.03';
|
|
15
15
|
|
|
16
16
|
# default plot settings (lower-case settings may be overridden by the user)
|
|
17
17
|
my %defaults = (
|
|
@@ -262,23 +262,35 @@ sub Draw($$)
|
|
|
262
262
|
{
|
|
263
263
|
my ($self, $fp) = @_;
|
|
264
264
|
my ($min, $max, $xmin, $xmax, $name, $style) = @$self{qw(Min Max XMin XMax Name style)};
|
|
265
|
+
my ($plotNum, $multiMulti);
|
|
265
266
|
|
|
266
267
|
if (not defined $min or not defined $xmin) {
|
|
267
268
|
$$self{Error} = 'Nothing to plot';
|
|
268
269
|
return;
|
|
269
270
|
}
|
|
270
|
-
my ($i, $n, %col, %class, $dx, $dy, $dx2, $xAxis, $x, $y, $px, $py, @og);
|
|
271
|
-
my ($noLegend, $xname, $xdat, $xdiff, $diff, %markID, $plotNum);
|
|
272
271
|
my $scat = $$self{type} =~ /^s/ ? 1 : 0;
|
|
273
272
|
my $hist = $$self{type} =~ /^h/ ? [ ] : 0;
|
|
274
|
-
my $multi =
|
|
273
|
+
my $multi = $$self{multi} || 0;
|
|
274
|
+
my @multi = $multi =~ /\d+/g;
|
|
275
|
+
my @names = @$name;
|
|
276
|
+
shift @names if $scat;
|
|
277
|
+
$multi = shift @multi;
|
|
275
278
|
$multi = 0 unless $multi > 0;
|
|
276
279
|
$style or $style = $hist ? 'line+fill' : 'line';
|
|
277
280
|
unless ($style =~ /\b[mpl]/ or ($hist and $style =~ /\bf/)) {
|
|
278
281
|
$$self{Error} = 'Invalid plot Style setting';
|
|
279
282
|
return;
|
|
280
283
|
}
|
|
281
|
-
my $numPlots =
|
|
284
|
+
my $numPlots = 0;
|
|
285
|
+
if ($multi) {
|
|
286
|
+
my $n;
|
|
287
|
+
for ($n=0; $n<scalar(@$name)-$scat; ++$numPlots) {
|
|
288
|
+
$n += ($multi[$numPlots] || 1);
|
|
289
|
+
$multiMulti = 1 if $multi[$numPlots] and $multi[$numPlots] > 1;
|
|
290
|
+
}
|
|
291
|
+
} else {
|
|
292
|
+
$numPlots = 1;
|
|
293
|
+
}
|
|
282
294
|
my @size = @{$$self{size}};
|
|
283
295
|
my $sy = $size[1];
|
|
284
296
|
if ($multi) {
|
|
@@ -293,6 +305,8 @@ sub Draw($$)
|
|
|
293
305
|
<title>$tmp</title>};
|
|
294
306
|
# loop through all plots
|
|
295
307
|
for ($plotNum=0; $plotNum<$numPlots; ++$plotNum) {
|
|
308
|
+
my ($i, $n, %col, %class, $dx, $dy, $dx2, $xAxis, $x, $y, $px, $py, @og);
|
|
309
|
+
my ($noLegend, $xname, $xdat, $xdiff, $diff, %markID);
|
|
296
310
|
if ($numPlots > 1) {
|
|
297
311
|
print $fp "\n<g transform='translate(", ($plotNum % $multi) * $size[0],
|
|
298
312
|
',', int($plotNum/$multi) * $size[1], ")'>";
|
|
@@ -304,14 +318,19 @@ sub Draw($$)
|
|
|
304
318
|
}
|
|
305
319
|
$name = $$self{Name} = [ ];
|
|
306
320
|
push @{$$self{Name}}, $$self{SaveName}[0] if $scat;
|
|
307
|
-
|
|
308
|
-
|
|
321
|
+
foreach (0 .. (($multi[$plotNum] || 1) - 1)) {
|
|
322
|
+
push @{$$self{Name}}, shift(@names);
|
|
323
|
+
}
|
|
324
|
+
warn "@{$$self{Name}}\n";
|
|
309
325
|
undef $min; undef $max;
|
|
310
|
-
foreach (
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
326
|
+
foreach ($scat .. (@{$$self{Name}} - 1)) {
|
|
327
|
+
my $dat = $$self{Data}{$$self{Name}[$_]};
|
|
328
|
+
foreach (@$dat) {
|
|
329
|
+
defined or next;
|
|
330
|
+
defined $min or $min = $max = $_, next;
|
|
331
|
+
$min > $_ and $min = $_;
|
|
332
|
+
$max < $_ and $max = $_;
|
|
333
|
+
}
|
|
315
334
|
}
|
|
316
335
|
}
|
|
317
336
|
my ($data, $title, $xlabel, $ylabel, $cols, $marks, $tpad, $wid) =
|
|
@@ -321,12 +340,12 @@ sub Draw($$)
|
|
|
321
340
|
|
|
322
341
|
# set reasonable default titles and labels
|
|
323
342
|
$xname = shift @name if $scat;
|
|
324
|
-
$title = "$name[0] vs $xname" if $scat and defined $title and not $title and @name == 1;
|
|
343
|
+
$title = "$name[0] vs $xname" if $scat and defined $title and not $title and @name == 1 and not $multi;
|
|
325
344
|
if ($scat || $hist and defined $xlabel and not $xlabel) {
|
|
326
345
|
$xlabel = $$name[0];
|
|
327
346
|
$noLegend = 1 if $hist;
|
|
328
347
|
}
|
|
329
|
-
if (defined $ylabel and not $ylabel and @name == 1) {
|
|
348
|
+
if (defined $ylabel and not $ylabel and @name == 1 and not $multiMulti) {
|
|
330
349
|
$ylabel = $hist ? 'Count' : $name[0];
|
|
331
350
|
$noLegend = 1 unless $hist;
|
|
332
351
|
}
|
|
@@ -645,7 +664,9 @@ Change plot settings.
|
|
|
645
664
|
Title, XLabel, YLabel - plot title and x/y axis labels (no default)
|
|
646
665
|
XMin, XMax - x axis minimum/maximum (autoscaling if not set)
|
|
647
666
|
YMin, YMax - y axis minimum/maximum
|
|
648
|
-
Multi -
|
|
667
|
+
Multi - number of columns when drawing multiple plots,
|
|
668
|
+
followed optional number of datasets for each
|
|
669
|
+
plot (1 by default) using any separator
|
|
649
670
|
Split - flag to split strings of numbers into lists
|
|
650
671
|
(> 1 to split into lists of N items)
|
|
651
672
|
"Grid=darkgray" - grid color
|
|
@@ -49,7 +49,7 @@ use Image::ExifTool qw(:DataAccess :Utils);
|
|
|
49
49
|
use Image::ExifTool::Exif;
|
|
50
50
|
use Image::ExifTool::GPS;
|
|
51
51
|
|
|
52
|
-
$VERSION = '3.
|
|
52
|
+
$VERSION = '3.17';
|
|
53
53
|
|
|
54
54
|
sub ProcessMOV($$;$);
|
|
55
55
|
sub ProcessKeys($$$);
|
|
@@ -815,6 +815,13 @@ my %userDefined = (
|
|
|
815
815
|
TagTable => 'Image::ExifTool::QuickTime::Stream',
|
|
816
816
|
ProcessProc => 'Image::ExifTool::LigoGPS::ProcessLigoJSON',
|
|
817
817
|
},
|
|
818
|
+
},{
|
|
819
|
+
Name => 'GKUData',
|
|
820
|
+
Condition => '$$valPt =~ /^.{8}__V35AX_QVDATA__/',
|
|
821
|
+
SubDirectory => {
|
|
822
|
+
TagTable => 'Image::ExifTool::QuickTime::Stream',
|
|
823
|
+
ProcessProc => 'Image::ExifTool::LigoGPS::ProcessGKU',
|
|
824
|
+
},
|
|
818
825
|
},{
|
|
819
826
|
Name => 'FLIRData',
|
|
820
827
|
SubDirectory => { TagTable => 'Image::ExifTool::FLIR::UserData' },
|
|
@@ -945,7 +952,7 @@ my %userDefined = (
|
|
|
945
952
|
Notes => 'MP4-format video saved in Samsung motion-photo HEIC images.',
|
|
946
953
|
Binary => 1,
|
|
947
954
|
# note that this may be written and/or deleted, but can't currently be added back again
|
|
948
|
-
Writable =>
|
|
955
|
+
Writable => 'undef',
|
|
949
956
|
},
|
|
950
957
|
# '35AX'? - seen "AT" (Yada RoadCam Pro 4K dashcam)
|
|
951
958
|
cust => 'CustomInfo', # 70mai A810
|
|
@@ -953,6 +960,15 @@ my %userDefined = (
|
|
|
953
960
|
Name => 'SEAL',
|
|
954
961
|
SubDirectory => { TagTable => 'Image::ExifTool::XMP::SEAL' },
|
|
955
962
|
},
|
|
963
|
+
inst => {
|
|
964
|
+
Name => 'Insta360Info',
|
|
965
|
+
DontRead => 1, # don't read into memory when extracting
|
|
966
|
+
WriteLast => 1, # must go at end of file
|
|
967
|
+
SubDirectory => {
|
|
968
|
+
TagTable => 'Image::ExifTool::QuickTime::Stream',
|
|
969
|
+
ProcessProc => \&ProcessInsta360,
|
|
970
|
+
},
|
|
971
|
+
},
|
|
956
972
|
);
|
|
957
973
|
|
|
958
974
|
# stuff seen in 'skip' atom (70mai Pro Plus+ MP4 videos)
|
|
@@ -2362,6 +2378,25 @@ my %userDefined = (
|
|
|
2362
2378
|
# @etc - 4 bytes all zero (Samsung WB30F)
|
|
2363
2379
|
# saut - 4 bytes all zero (Samsung SM-N900T)
|
|
2364
2380
|
# smrd - string "TRUEBLUE" (Samsung SM-C101, etc)
|
|
2381
|
+
# ---- Sigma ----
|
|
2382
|
+
SIGM => {
|
|
2383
|
+
Name => 'PreviewImage',
|
|
2384
|
+
# 32-byte header followed by preview image. Length at offset 6 in header
|
|
2385
|
+
Condition => 'length($$valPt) > 0x20 and length($$valPt) == unpack("x6V",$$valPt) + 0x20',
|
|
2386
|
+
Groups => { 2 => 'Preview' },
|
|
2387
|
+
SetBase => 1, # so $$self{BASE} will be set for correct offsets in verbose/html dumps
|
|
2388
|
+
RawConv => q{
|
|
2389
|
+
$val = substr($val, 0x20);
|
|
2390
|
+
my $pt = $self->ValidateImage(\$val, $tag);
|
|
2391
|
+
if ($pt) {
|
|
2392
|
+
$$self{BASE} += 0x20;
|
|
2393
|
+
$$self{DOC_NUM} = ++$$self{DOC_COUNT};
|
|
2394
|
+
$self->ExtractInfo($pt, { ReEntry => 1 });
|
|
2395
|
+
$$self{DOC_NUM} = 0;
|
|
2396
|
+
}
|
|
2397
|
+
return $pt;
|
|
2398
|
+
},
|
|
2399
|
+
},
|
|
2365
2400
|
# ---- TomTom Bandit Action Cam ----
|
|
2366
2401
|
TTMD => {
|
|
2367
2402
|
Name => 'TomTomMetaData',
|
|
@@ -2387,6 +2422,19 @@ my %userDefined = (
|
|
|
2387
2422
|
Groups => { 2 => 'Preview' },
|
|
2388
2423
|
Binary => 1,
|
|
2389
2424
|
},
|
|
2425
|
+
# ---- Insta360 ----
|
|
2426
|
+
nail => {
|
|
2427
|
+
Name => 'ThumbnailTIFF',
|
|
2428
|
+
Notes => 'image found in some Insta360 videos, converted to TIFF format',
|
|
2429
|
+
Groups => { 2 => 'Preview' },
|
|
2430
|
+
RawConv => q{
|
|
2431
|
+
return undef if length $val < 8;
|
|
2432
|
+
my ($w, $h) = unpack('NN', $val);
|
|
2433
|
+
return undef if length $val < $w * $h + 8;
|
|
2434
|
+
return MakeTiffHeader($w, $h, 1, 8) . substr($val, 8, $w * $h);
|
|
2435
|
+
},
|
|
2436
|
+
Binary => 1,
|
|
2437
|
+
},
|
|
2390
2438
|
# ---- Nextbase ----
|
|
2391
2439
|
info => 'FirmwareVersion',
|
|
2392
2440
|
'time' => {
|
|
@@ -9351,7 +9399,7 @@ sub HandleItemInfo($)
|
|
|
9351
9399
|
$et->ProcessDirectory(\%dirInfo, $subTable, $proc);
|
|
9352
9400
|
delete $$et{DOC_NUM};
|
|
9353
9401
|
}
|
|
9354
|
-
$raf->Seek($curPos, 0) or $et->Warn('Seek error')
|
|
9402
|
+
$raf->Seek($curPos, 0) or $et->Warn('Seek error'); # seek back to original position
|
|
9355
9403
|
pop @{$$et{PATH}};
|
|
9356
9404
|
}
|
|
9357
9405
|
# process the item properties now that we should know their associations and document numbers
|
|
@@ -9743,6 +9791,7 @@ sub IdentifyTrailers($)
|
|
|
9743
9791
|
} else {
|
|
9744
9792
|
last;
|
|
9745
9793
|
}
|
|
9794
|
+
# 0) trailer type, 1) trailer start, 2) trailer length, 3) pointer to next trailer
|
|
9746
9795
|
$trailer = [ $type , $raf->Tell() - $len, $len, $nextTrail ];
|
|
9747
9796
|
$nextTrail = $trailer;
|
|
9748
9797
|
$offset += $len;
|
|
@@ -10017,7 +10066,7 @@ sub ProcessMOV($$;$)
|
|
|
10017
10066
|
}
|
|
10018
10067
|
}
|
|
10019
10068
|
}
|
|
10020
|
-
if (defined $tagInfo and not $ignore) {
|
|
10069
|
+
if (defined $tagInfo and not $ignore and not ($tagInfo and $$tagInfo{DontRead})) {
|
|
10021
10070
|
# set document number for this item property if necessary
|
|
10022
10071
|
if ($$et{IsItemProperty}) {
|
|
10023
10072
|
my $items = $$et{ItemInfo};
|
|
@@ -10070,7 +10119,7 @@ ItemID: foreach $id (reverse sort { $a <=> $b } keys %$items) {
|
|
|
10070
10119
|
# use value to get tag info if necessary
|
|
10071
10120
|
$tagInfo or $tagInfo = $et->GetTagInfo($tagTablePtr, $tag, \$val);
|
|
10072
10121
|
my $hasData = ($$dirInfo{HasData} and $val =~ /^....data\0/s);
|
|
10073
|
-
if ($verbose and not $hasData) {
|
|
10122
|
+
if ($verbose and defined $val and not $hasData) {
|
|
10074
10123
|
my $tval;
|
|
10075
10124
|
if ($tagInfo and $$tagInfo{Format}) {
|
|
10076
10125
|
$tval = ReadValue(\$val, 0, $$tagInfo{Format}, $$tagInfo{Count}, length($val));
|
|
@@ -10389,7 +10438,25 @@ ItemID: foreach $id (reverse sort { $a <=> $b } keys %$items) {
|
|
|
10389
10438
|
Size => $size,
|
|
10390
10439
|
Extra => sprintf(' at offset 0x%.4x', $raf->Tell()),
|
|
10391
10440
|
) if $verbose;
|
|
10392
|
-
|
|
10441
|
+
my $seekTo = $raf->Tell() + $size;
|
|
10442
|
+
if ($tagInfo and $$tagInfo{DontRead} and $$tagInfo{SubDirectory}) {
|
|
10443
|
+
# ignore first trailer if it is the payload of this box
|
|
10444
|
+
$trailer = $$trailer[3] if $trailer and $$trailer[1] == $raf->Tell();
|
|
10445
|
+
my $subdir = $$tagInfo{SubDirectory};
|
|
10446
|
+
my %dirInfo = (
|
|
10447
|
+
RAF => $raf,
|
|
10448
|
+
DirName => $$tagInfo{Name},
|
|
10449
|
+
DirID => $tag,
|
|
10450
|
+
DirEnd => $seekTo,
|
|
10451
|
+
);
|
|
10452
|
+
my $subTable = GetTagTable($$subdir{TagTable});
|
|
10453
|
+
my $proc = $$subdir{ProcessProc};
|
|
10454
|
+
# make ProcessMOV() the default processing procedure for subdirectories
|
|
10455
|
+
$proc = \&ProcessMOV unless $proc or $$subTable{PROCESS_PROC};
|
|
10456
|
+
$et->ProcessDirectory(\%dirInfo, $subTable, $proc);
|
|
10457
|
+
$raf->Seek($seekTo);
|
|
10458
|
+
}
|
|
10459
|
+
unless ($raf->Seek($seekTo-1) and $raf->Read($buff, 1) == 1) {
|
|
10393
10460
|
my $t = PrintableTagID($tag,2);
|
|
10394
10461
|
$warnStr = sprintf("Truncated '${t}' data at offset 0x%x", $lastPos);
|
|
10395
10462
|
last;
|
|
@@ -111,9 +111,8 @@ my %insvLimit = (
|
|
|
111
111
|
The tags below are extracted from timed metadata in QuickTime and other
|
|
112
112
|
formats of video files when the ExtractEmbedded option is used. Although
|
|
113
113
|
most of these tags are combined into the single table below, ExifTool
|
|
114
|
-
currently reads
|
|
114
|
+
currently reads 107 different types of timed GPS metadata from video files.
|
|
115
115
|
},
|
|
116
|
-
VARS => { NO_ID => 1 },
|
|
117
116
|
GPSLatitude => { PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "N")', RawConv => '$$self{FoundGPSLatitude} = 1; $val' },
|
|
118
117
|
GPSLongitude => { PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "E")' },
|
|
119
118
|
GPSLatitude2 => { PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "N")' },
|
|
@@ -318,7 +317,7 @@ my %insvLimit = (
|
|
|
318
317
|
ByteOrder => 'Little-Endian',
|
|
319
318
|
},
|
|
320
319
|
}],
|
|
321
|
-
mett => { # Parrot drones
|
|
320
|
+
mett => { # Parrot drones and iPhone/Android using ARCore
|
|
322
321
|
Name => 'mett',
|
|
323
322
|
SubDirectory => { TagTable => 'Image::ExifTool::Parrot::mett' },
|
|
324
323
|
},
|
|
@@ -336,11 +335,25 @@ my %insvLimit = (
|
|
|
336
335
|
Groups => { 0 => 'Trailer', 1 => 'Insta360' }, # (so these groups will appear in the -listg options)
|
|
337
336
|
SubDirectory => { TagTable => 'Image::ExifTool::QuickTime::INSV_MakerNotes' },
|
|
338
337
|
},
|
|
339
|
-
ssmd => {
|
|
340
|
-
Name => '
|
|
338
|
+
ssmd => [{
|
|
339
|
+
Name => 'RoveGPS', # Rove R2-4K new model
|
|
340
|
+
# double value of GPSLatitude is 4294967295 (00 00 e0 ff ff ff ef 41) for no GPS
|
|
341
|
+
Condition => 'length $$valPt == 32 and $$valPt !~ /^\0\0\xe0\xff\xff\xff\xef\x41/',
|
|
342
|
+
SubDirectory => {
|
|
343
|
+
TagTable => 'Image::ExifTool::QuickTime::RoveGPS',
|
|
344
|
+
ByteOrder => 'Little-Endian',
|
|
345
|
+
},
|
|
346
|
+
},{
|
|
347
|
+
Name => 'Accelerometer', # Rove R2-4K new model
|
|
348
|
+
Condition => 'length $$valPt == 12',
|
|
349
|
+
Format => 'float',
|
|
350
|
+
ByteOrder => 'Little-Endian',
|
|
351
|
+
},{
|
|
352
|
+
Name => 'PreviewImage', # Chigee AIO-5 dashcam
|
|
353
|
+
Condition => '$$valPt =~ /^\xff\xd8\xff/',
|
|
341
354
|
Groups => { 2 => 'Preview' },
|
|
342
355
|
RawConv => '$self->ValidateImage(\$val,$tag)',
|
|
343
|
-
},
|
|
356
|
+
}],
|
|
344
357
|
djmd => { # (DJI AC003 Osmo Action 4 cam)
|
|
345
358
|
Name => 'DJIMetadata',
|
|
346
359
|
SubDirectory => { TagTable => 'Image::ExifTool::DJI::Protobuf' },
|
|
@@ -358,6 +371,45 @@ my %insvLimit = (
|
|
|
358
371
|
MagneticVariation => { }, # (from LIGOGPSINFO)
|
|
359
372
|
);
|
|
360
373
|
|
|
374
|
+
# accelerometer from newer Rove R2-4K cam
|
|
375
|
+
%Image::ExifTool::QuickTime::RoveGPS = (
|
|
376
|
+
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
|
377
|
+
GROUPS => { 2 => 'Location' },
|
|
378
|
+
FIRST_ENTRY => 0,
|
|
379
|
+
0 => {
|
|
380
|
+
Name => 'GPSLatitude',
|
|
381
|
+
Format => 'double',
|
|
382
|
+
ValueConv => 'my $deg = int($val/100); $val = $deg + ($val - $deg * 100) / 60',
|
|
383
|
+
PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "N")',
|
|
384
|
+
},
|
|
385
|
+
8 => {
|
|
386
|
+
Name => 'GPSLongitude',
|
|
387
|
+
Format => 'double',
|
|
388
|
+
ValueConv => 'my $deg = int($val/100); $val = $deg + ($val - $deg * 100) / 60',
|
|
389
|
+
PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "E")',
|
|
390
|
+
},
|
|
391
|
+
20 => {
|
|
392
|
+
Name => 'GPSSpeed',
|
|
393
|
+
Format => 'int16u',
|
|
394
|
+
ValueConv => '$val * 1.852', # convert from knots to km/h
|
|
395
|
+
},
|
|
396
|
+
22 => {
|
|
397
|
+
Name => 'GPSDateTime',
|
|
398
|
+
Description => 'GPS Date/Time',
|
|
399
|
+
Groups => { 2 => 'Time' },
|
|
400
|
+
Format => 'int8u[6]',
|
|
401
|
+
ValueConv => q{
|
|
402
|
+
my @v = split ' ', $val;
|
|
403
|
+
$v[0] += 2000;
|
|
404
|
+
sprintf('%.4d:%.2d:%.2d %.2d:%.2d:%.2d', @v);
|
|
405
|
+
},
|
|
406
|
+
PrintConv => '$self->ConvertDateTime($val)',
|
|
407
|
+
},
|
|
408
|
+
# Seen this in the next 4 bytes:
|
|
409
|
+
# ff 01 01 00 - good GPS?
|
|
410
|
+
# ff 00 ff ff - no GPS?
|
|
411
|
+
);
|
|
412
|
+
|
|
361
413
|
# tags found in 'camm' type 0 timed metadata (ref 4)
|
|
362
414
|
%Image::ExifTool::QuickTime::camm0 = (
|
|
363
415
|
PROCESS_PROC => \&ProcessCAMM,
|
|
@@ -2235,6 +2287,16 @@ ATCRec: for ($recPos = 0x30; $recPos + 52 < $dirLen; $recPos += 52) {
|
|
|
2235
2287
|
$lat = ($lat - 187.982162849635) / 3;
|
|
2236
2288
|
$lon = ($lon - 2199.19873715495) / 2;
|
|
2237
2289
|
$ddd = 1;
|
|
2290
|
+
} elsif (Get32u($dataPt,0) == 0x400000 and abs($lat) <= 90 and abs($lon) <= 180) {
|
|
2291
|
+
# Transcend Drive Body Camera 70
|
|
2292
|
+
# 0000: 00 00 40 00 66 72 65 65 47 50 53 20 4c 00 00 00 [..@.freeGPS L...]
|
|
2293
|
+
# 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [................]
|
|
2294
|
+
# 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [................]
|
|
2295
|
+
# 0030: 09 00 00 00 26 00 00 00 15 00 00 00 e9 07 00 00 [....&...........]
|
|
2296
|
+
# 0040: 05 00 00 00 10 00 00 00 41 53 45 00 6c 59 ee 41 [........ASE.lY.A]
|
|
2297
|
+
# 0050: 9f 1a f7 41 3c 6b 0f 41 9a 99 99 43 00 00 00 00 [...A<k.A...C....]
|
|
2298
|
+
$ddd = 1; # already in decimal degrees
|
|
2299
|
+
$spd /= $knotsToKph; # already in km/h
|
|
2238
2300
|
} else {
|
|
2239
2301
|
$debug and $et->FoundTag(GPSType => 17);
|
|
2240
2302
|
}
|
|
@@ -2351,12 +2413,12 @@ ATCRec: for ($recPos = 0x30; $recPos + 52 < $dirLen; $recPos += 52) {
|
|
|
2351
2413
|
}
|
|
2352
2414
|
SetByteOrder($oldOrder);
|
|
2353
2415
|
return $$et{DOC_NUM} ? 1 : 0 if $done;
|
|
2354
|
-
return 0 if defined $yr and $mon < 1 or $mon > 12; # quick sanity check
|
|
2416
|
+
return 0 if defined $yr and ($mon < 1 or $mon > 12); # quick sanity check
|
|
2355
2417
|
#
|
|
2356
2418
|
# save tag values extracted by above code
|
|
2357
2419
|
#
|
|
2358
2420
|
FoundSomething($et, $tagTbl, $$dirInfo{SampleTime}, $$dirInfo{SampleDuration});
|
|
2359
|
-
$sec = '0' . $sec
|
|
2421
|
+
$sec = '0' . $sec if defined $sec and $sec !~ /^\d{2}/; # pad integer part of seconds to 2 digits
|
|
2360
2422
|
if (defined $yr) {
|
|
2361
2423
|
$yr += 2000 if $yr < 2000;
|
|
2362
2424
|
my $time = sprintf('%.4d:%.2d:%.2d %.2d:%.2d:%sZ',$yr,$mon,$day,$hr,$min,$sec);
|
|
@@ -2368,8 +2430,8 @@ ATCRec: for ($recPos = 0x30; $recPos + 52 < $dirLen; $recPos += 52) {
|
|
|
2368
2430
|
if (defined $lat and defined $lon) {
|
|
2369
2431
|
# lat/long are in DDDMM.MMMM format unless $ddd is set
|
|
2370
2432
|
ConvertLatLon($lat, $lon) unless $ddd;
|
|
2371
|
-
$et->HandleTag($tagTbl, GPSLatitude => $lat * ($latRef eq 'S' ? -1 : 1));
|
|
2372
|
-
$et->HandleTag($tagTbl, GPSLongitude => $lon * ($lonRef eq 'W' ? -1 : 1));
|
|
2433
|
+
$et->HandleTag($tagTbl, GPSLatitude => $lat * (($latRef and $latRef eq 'S') ? -1 : 1));
|
|
2434
|
+
$et->HandleTag($tagTbl, GPSLongitude => $lon * (($lonRef and $lonRef eq 'W') ? -1 : 1));
|
|
2373
2435
|
}
|
|
2374
2436
|
$et->HandleTag($tagTbl, GPSAltitude => $alt) if defined $alt;
|
|
2375
2437
|
$et->HandleTag($tagTbl, GPSSpeed => $spd) if defined $spd;
|
|
@@ -3148,8 +3210,9 @@ sub ProcessTTAD($$$)
|
|
|
3148
3210
|
}
|
|
3149
3211
|
|
|
3150
3212
|
#------------------------------------------------------------------------------
|
|
3151
|
-
# Extract information from Insta360 trailer (INSV and
|
|
3213
|
+
# Extract information from Insta360 trailer (INSV, INSP and MP4 files) or 'inst' box (ref PH)
|
|
3152
3214
|
# Inputs: 0) ExifTool ref, 1) Optional dirInfo ref for returning trailer info
|
|
3215
|
+
# (dirInfo has Offset from end of trailer to end of file or DirEnd absolute end of trailer)
|
|
3153
3216
|
# Returns: true on success
|
|
3154
3217
|
# Notes: There looks to be some useful information by telemetry-parser, but
|
|
3155
3218
|
# the code is cryptic: https://github.com/AdrianEddy/telemetry-parser
|
|
@@ -3161,13 +3224,16 @@ sub ProcessInsta360($;$)
|
|
|
3161
3224
|
my $offset = $dirInfo ? $$dirInfo{Offset} || 0 : 0;
|
|
3162
3225
|
my ($buff, $dirTable, $dirTablePos);
|
|
3163
3226
|
|
|
3227
|
+
if ($dirInfo and $$dirInfo{DirEnd}) {
|
|
3228
|
+
$raf->Seek(0, 2);
|
|
3229
|
+
$offset = $raf->Tell() - $$dirInfo{DirEnd};
|
|
3230
|
+
}
|
|
3164
3231
|
return 0 unless $raf->Seek(-78-$offset, 2) and $raf->Read($buff, 78) == 78 and
|
|
3165
3232
|
substr($buff,-32) eq "8db42d694ccc418790edff439fe026bf"; # check magic number
|
|
3166
3233
|
|
|
3167
3234
|
my $verbose = $et->Options('Verbose');
|
|
3168
3235
|
my $tagTbl = GetTagTable('Image::ExifTool::QuickTime::Stream');
|
|
3169
|
-
my $
|
|
3170
|
-
my $trailEnd = $fileEnd - $offset;
|
|
3236
|
+
my $trailEnd = $raf->Tell();
|
|
3171
3237
|
my $trailerLen = unpack('x38V', $buff);
|
|
3172
3238
|
$trailerLen > $trailEnd and $et->Warn('Bad Insta360 trailer size'), return 0;
|
|
3173
3239
|
if ($dirInfo) {
|
|
@@ -3207,7 +3273,7 @@ sub ProcessInsta360($;$)
|
|
|
3207
3273
|
($epos -= $len) + $trailerLen < 0 and last;
|
|
3208
3274
|
$raf->Seek($epos-$offset, 2) or last;
|
|
3209
3275
|
if ($verbose) {
|
|
3210
|
-
$et->VPrint(0, sprintf("Insta360 Record 0x%x (offset 0x%x, %d bytes):\n", $id, $
|
|
3276
|
+
$et->VPrint(0, sprintf("Insta360 Record 0x%x (offset 0x%x, %d bytes):\n", $id, $trailEnd + $epos, $len));
|
|
3211
3277
|
}
|
|
3212
3278
|
# there are 2 types of record 0x300:
|
|
3213
3279
|
# 1. 56 byte records
|
|
@@ -982,6 +982,16 @@ numerical, and generated automatically otherwise.
|
|
|
982
982
|
for use when ExtractInfo is called with the ReEntry flag from
|
|
983
983
|
inside the RawConv of a tag.
|
|
984
984
|
|
|
985
|
+
ByteOrder : [Non-writable tags extracted with HandleTag and writable EXIF
|
|
986
|
+
offset-pair tags only] Specifies byte order if tag value is
|
|
987
|
+
stored with a constant byte order that is different from that
|
|
988
|
+
of the parent directory.
|
|
989
|
+
|
|
990
|
+
DontRead : [QuickTime tags with compatible SubDirectory entries only]
|
|
991
|
+
Avoid reading subdirectory data from file. Instead, pass RAF
|
|
992
|
+
reference (with current position at start of directory) and
|
|
993
|
+
DirEnd.
|
|
994
|
+
|
|
985
995
|
TagID : [reserved] Used internally to save the table key for this tag.
|
|
986
996
|
Note: For XMP tables this corresponds to the XMP property
|
|
987
997
|
name, but the table key may have a full XMP namespace prefix
|
|
@@ -1071,8 +1081,8 @@ numerical, and generated automatically otherwise.
|
|
|
1071
1081
|
ByteOrder : Specifies byte ordering if different than than the rest of the
|
|
1072
1082
|
file. Must be either BigEndian, LittleEndian or Unknown. If
|
|
1073
1083
|
Unknown is specified, the byte order will be determined from
|
|
1074
|
-
the directory count (however, this can not be done if
|
|
1075
|
-
is specified).
|
|
1084
|
+
the directory count for EXIF (however, this can not be done if
|
|
1085
|
+
OffsetPt is specified).
|
|
1076
1086
|
|
|
1077
1087
|
Validate : If given, specifies Perl expression which is used to validate
|
|
1078
1088
|
the subdirectory data (regardless of Validate option setting).
|
|
@@ -19,7 +19,7 @@ use strict;
|
|
|
19
19
|
use vars qw($VERSION %sigmaLensTypes);
|
|
20
20
|
use Image::ExifTool::Exif;
|
|
21
21
|
|
|
22
|
-
$VERSION = '1.
|
|
22
|
+
$VERSION = '1.35';
|
|
23
23
|
|
|
24
24
|
# sigma LensType lookup (ref IB)
|
|
25
25
|
%sigmaLensTypes = (
|
|
@@ -412,7 +412,12 @@ $VERSION = '1.34';
|
|
|
412
412
|
Name => 'Software',
|
|
413
413
|
Priority => 0,
|
|
414
414
|
},
|
|
415
|
-
0x0019 =>
|
|
415
|
+
0x0019 => {
|
|
416
|
+
Name => 'AutoBracket',
|
|
417
|
+
# (some models don't have spaces around "of")
|
|
418
|
+
PrintConv => '$val =~ s/(\d)of(\d)/$1 of $2/; $val',
|
|
419
|
+
PrintConvInv => '$val',
|
|
420
|
+
},
|
|
416
421
|
0x001a => [ #PH
|
|
417
422
|
{
|
|
418
423
|
Name => 'PreviewImageStart',
|
|
@@ -641,8 +646,11 @@ $VERSION = '1.34';
|
|
|
641
646
|
},
|
|
642
647
|
0x0033 => { #PH
|
|
643
648
|
Name => 'ExposureTime2',
|
|
644
|
-
Condition =>
|
|
645
|
-
|
|
649
|
+
Condition => q{
|
|
650
|
+
$$self{Model} !~ / (SD1|SD9|SD15|Merrill|Quattro|fp)$/ and
|
|
651
|
+
$$self{MakerNoteSigmaVer} < 4
|
|
652
|
+
},
|
|
653
|
+
Notes => 'only valid for some models',
|
|
646
654
|
ValueConv => '$val * 1e-6',
|
|
647
655
|
ValueConvInv => 'int($val * 1e6 + 0.5)',
|
|
648
656
|
PrintConv => 'Image::ExifTool::Exif::PrintExposureTime($val)',
|
|
@@ -10604,7 +10604,7 @@ my %isoSetting2010 = (
|
|
|
10604
10604
|
0x800b => { Name => 'Sony_rtmd_0x800b', Format => 'int16u', %hidUnk }, # (ZoomRingPosition?, forum14315)
|
|
10605
10605
|
# 0x8100 - 16 bytes starting with 0x060e2b340401
|
|
10606
10606
|
0x8100 => { Name => 'Sony_rtmd_0x8100', Format => 'int8u', %hidUnk },
|
|
10607
|
-
0x8101 => { Name => 'Sony_rtmd_0x8101', Format => 'int8u', %hidUnk }, # seen: 0,1
|
|
10607
|
+
0x8101 => { Name => 'Sony_rtmd_0x8101', Format => 'int8u', %hidUnk }, # seen: 0,1,2
|
|
10608
10608
|
0x8104 => { Name => 'Sony_rtmd_0x8104', Format => 'int16u', %hidUnk }, # seen: 35616
|
|
10609
10609
|
0x8105 => { Name => 'Sony_rtmd_0x8105', Format => 'int16u', %hidUnk }, # seen: 20092
|
|
10610
10610
|
0x8106 => { Name => 'Sony_rtmd_0x8106', Format => 'int32u', %hidUnk }, # seen: "25 1","24000 1001" frame rate?
|
|
@@ -10625,7 +10625,7 @@ my %isoSetting2010 = (
|
|
|
10625
10625
|
Format => 'int16u',
|
|
10626
10626
|
},
|
|
10627
10627
|
0x810d => { Name => 'Sony_rtmd_0x810d', Format => 'int8u', %hidUnk }, # seen: 0,1
|
|
10628
|
-
0x8115 => { Name => 'Sony_rtmd_0x8115', Format => 'int16u', %hidUnk }, # seen: 100
|
|
10628
|
+
0x8115 => { Name => 'Sony_rtmd_0x8115', Format => 'int16u', %hidUnk }, # seen: 100 - ISO
|
|
10629
10629
|
# 0x8300 - container for other tags in this format
|
|
10630
10630
|
0x8500 => {
|
|
10631
10631
|
Name => 'GPSVersionID',
|
|
@@ -10703,7 +10703,7 @@ my %isoSetting2010 = (
|
|
|
10703
10703
|
},
|
|
10704
10704
|
0xe000 => { Name => 'Sony_rtmd_0xe000', Format => 'int8u', %hidUnk }, # (16 bytes)
|
|
10705
10705
|
0xe300 => { Name => 'Sony_rtmd_0xe300', Format => 'int8u', %hidUnk }, # seen: 0,1
|
|
10706
|
-
0xe301 => { Name => 'Sony_rtmd_0xe301', Format => 'int32u', %hidUnk }, # seen: 100,1600,12800
|
|
10706
|
+
0xe301 => { Name => 'Sony_rtmd_0xe301', Format => 'int32u', %hidUnk }, # seen: 100,1600,12800 - ISO
|
|
10707
10707
|
0xe302 => { Name => 'Sony_rtmd_0xe302', Format => 'int8u', %hidUnk }, # seen: 1
|
|
10708
10708
|
0xe303 => { #forum12218
|
|
10709
10709
|
Name => 'WhiteBalance',
|
|
@@ -10766,6 +10766,11 @@ my %isoSetting2010 = (
|
|
|
10766
10766
|
0 => 'Sony:FocusPosition2',
|
|
10767
10767
|
1 => 'FocalLengthIn35mmFormat',
|
|
10768
10768
|
},
|
|
10769
|
+
# (NOTE: This calculation may be wrong. "Focus Distance 2 is the result of an erroneous
|
|
10770
|
+
# user supplied formula to exiftool. It does use data embedded in the raw file,
|
|
10771
|
+
# but it is not the data. The actual embedded data seems to be proportional to
|
|
10772
|
+
# magnification not a focus distance. The camera needs to calculate magnification
|
|
10773
|
+
# for translation stabilization.", ref https://www.fredmiranda.com/forum/topic/1858744/0)
|
|
10769
10774
|
ValueConv => q{
|
|
10770
10775
|
return undef unless $val;
|
|
10771
10776
|
return 'inf' if $val >= 255;
|