/usr/share/perl5/Image/ExifTool/Microsoft.pm is in libimage-exiftool-perl 8.60-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #------------------------------------------------------------------------------
# File: Microsoft.pm
#
# Description: Definitions for custom Microsoft tags
#
# Revisions: 2010/10/01 - P. Harvey Created
#
# References: 1) http://research.microsoft.com/en-us/um/redmond/groups/ivm/hdview/hdmetadataspec.htm
#------------------------------------------------------------------------------
package Image::ExifTool::Microsoft;
use strict;
use vars qw($VERSION);
use Image::ExifTool::XMP;
$VERSION = '1.03';
# tags written by Microsoft HDView (ref 1)
%Image::ExifTool::Microsoft::Stitch = (
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
WRITE_PROC => \&Image::ExifTool::WriteBinaryData,
CHECK_PROC => \&Image::ExifTool::CheckBinaryData,
WRITABLE => 1,
FORMAT => 'float',
FIRST_ENTRY => 0,
GROUPS => { 0 => 'MakerNotes', 2 => 'Image' },
NOTES => q{
Information found in the Microsoft custom EXIF tag 0x4748, as written by
Windows Live Photo Gallery.
},
0 => {
Name => 'PanoramicStitchVersion',
Format => 'int32u',
},
1 => {
Name => 'PanoramicStitchCameraMotion',
Format => 'int32u',
PrintConv => {
2 => 'Rigid Scale',
3 => 'Affine',
4 => '3D Rotation',
5 => 'Homography',
},
},
2 => {
Name => 'PanoramicStitchMapType',
Format => 'int32u',
PrintConv => {
0 => 'Perspective',
1 => 'Horizontal Cylindrical',
2 => 'Horizontal Spherical',
257 => 'Vertical Cylindrical',
258 => 'Vertical Spherical',
},
},
3 => 'PanoramicStitchTheta0',
4 => 'PanoramicStitchTheta1',
5 => 'PanoramicStitchPhi0',
6 => 'PanoramicStitchPhi1',
);
# Microsoft Photo schema properties (MicrosoftPhoto) (ref PH)
%Image::ExifTool::Microsoft::XMP = (
%Image::ExifTool::XMP::xmpTableDefaults,
GROUPS => { 0 => 'XMP', 1 => 'XMP-microsoft', 2 => 'Image' },
NAMESPACE => 'MicrosoftPhoto',
TABLE_DESC => 'XMP Microsoft',
VARS => { NO_ID => 1 },
NOTES => q{
Microsoft Photo 1.0 schema XMP tags. This is likely not a complete list,
but represents tags which have been observed in sample images. The actual
namespace prefix is "MicrosoftPhoto", but ExifTool shortens this to
"XMP-microsoft" in the family 1 group name.
},
CameraSerialNumber => { },
DateAcquired => { Groups => { 2 => 'Time' }, %Image::ExifTool::XMP::dateTimeInfo },
FlashManufacturer => { },
FlashModel => { },
LastKeywordIPTC => { List => 'Bag' },
LastKeywordXMP => { List => 'Bag' },
LensManufacturer => { },
LensModel => { },
Rating => {
Name => 'RatingPercent',
Notes => q{
normal Rating values of 1,2,3,4 and 5 stars correspond to RatingPercent
values of 1,25,50,75 and 99 respectively
},
},
);
# Microsoft Photo 1.1 schema properties (MP1 - written as 'prefix0' by MSPhoto) (ref PH)
%Image::ExifTool::Microsoft::MP1 = (
%Image::ExifTool::XMP::xmpTableDefaults,
GROUPS => { 0 => 'XMP', 1 => 'XMP-MP1', 2 => 'Image' },
NAMESPACE => 'MP1',
TABLE_DESC => 'XMP Microsoft Photo',
VARS => { NO_ID => 1 },
NOTES => q{
Microsoft Photo 1.1 schema XMP tags which have been observed.
},
PanoramicStitchCameraMotion => {
PrintConv => {
'RigidScale' => 'Rigid Scale',
'Affine' => 'Affine',
'3DRotation' => '3D Rotation',
'Homography' => 'Homography',
},
},
PanoramicStitchMapType => {
PrintConv => {
'Perspective' => 'Perspective',
'Horizontal-Cylindrical' => 'Horizontal Cylindrical',
'Horizontal-Spherical' => 'Horizontal Spherical',
'Vertical-Cylindrical' => 'Vertical Cylindrical',
'Vertical-Spherical' => 'Vertical Spherical',
},
},
PanoramicStitchPhi0 => { Writable => 'real' },
PanoramicStitchPhi1 => { Writable => 'real' },
PanoramicStitchTheta0 => { Writable => 'real' },
PanoramicStitchTheta1 => { Writable => 'real' },
);
# Microsoft Photo 1.2 schema properties (MP) (ref PH)
my %sRegions = (
STRUCT_NAME => 'Regions',
NAMESPACE => 'MPReg',
Rectangle => { },
PersonDisplayName => { },
);
%Image::ExifTool::Microsoft::MP = (
%Image::ExifTool::XMP::xmpTableDefaults,
GROUPS => { 0 => 'XMP', 1 => 'XMP-MP', 2 => 'Image' },
NAMESPACE => 'MP',
TABLE_DESC => 'XMP Microsoft Photo',
VARS => { NO_ID => 1 },
NOTES => q{
Microsoft Photo 1.2 schema XMP tags which have been observed.
},
RegionInfo => {
Name => 'RegionInfoMP',
Struct => {
STRUCT_NAME => 'RegionInfoMP',
NAMESPACE => 'MPRI',
Regions => { Struct => \%sRegions, List => 'Bag' },
},
},
RegionInfoRegionsRectangle => {
Name => 'RegionRectangle',
Flat => 1,
},
RegionInfoRegionsPersonDisplayName => {
Name => 'RegionPersonDisplayName',
Flat => 1,
},
);
1; # end
__END__
=head1 NAME
Image::ExifTool::Microsoft - Definitions for custom Microsoft tags
=head1 SYNOPSIS
This module is used by Image::ExifTool
=head1 DESCRIPTION
This module contains definitions required by Image::ExifTool to interpret
Microsoft-specific EXIF and XMP tags.
=head1 AUTHOR
Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca)
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 REFERENCES
=over 4
=item L<http://research.microsoft.com/en-us/um/redmond/groups/ivm/hdview/hdmetadataspec.htm>
=back
=head1 SEE ALSO
L<Image::ExifTool::TagNames/Microsoft Tags>,
L<Image::ExifTool(3pm)|Image::ExifTool>
=cut
|