1 | #------------------------------------------------------------------------------
|
---|
2 | # File: Stim.pm
|
---|
3 | #
|
---|
4 | # Description: Definitions for Stereo Still Image tags
|
---|
5 | #
|
---|
6 | # Revisions: 06/12/2009 - P. Harvey Created
|
---|
7 | #
|
---|
8 | # References: 1) http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-006_E.pdf
|
---|
9 | #------------------------------------------------------------------------------
|
---|
10 |
|
---|
11 | package Image::ExifTool::Stim;
|
---|
12 |
|
---|
13 | use strict;
|
---|
14 | use vars qw($VERSION);
|
---|
15 |
|
---|
16 | $VERSION = '1.00';
|
---|
17 |
|
---|
18 | # Tags found in Stim APP3 segment in JPEG images
|
---|
19 | %Image::ExifTool::Stim::Main = (
|
---|
20 | GROUPS => { 0 => 'Stim', 1 => 'Stim', 2 => 'Image'},
|
---|
21 | NOTES => q{
|
---|
22 | These tags are part of the CIPA Stereo Still Image specification, and are
|
---|
23 | found in the APP3 "Stim" segment of JPEG images. See
|
---|
24 | L<http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-006_E.pdf> for the
|
---|
25 | official specification.
|
---|
26 | },
|
---|
27 | 0 => 'StimVersion',
|
---|
28 | 1 => {
|
---|
29 | Name => 'ApplicationData',
|
---|
30 | Binary => 1,
|
---|
31 | },
|
---|
32 | 2 => {
|
---|
33 | Name => 'ImageArrangement',
|
---|
34 | PrintConv => {
|
---|
35 | 0 => 'Parallel View Alignment',
|
---|
36 | 1 => 'Cross View Alignment',
|
---|
37 | },
|
---|
38 | },
|
---|
39 | 3 => {
|
---|
40 | Name => 'ImageRotation',
|
---|
41 | PrintConv => {
|
---|
42 | 1 => 'None',
|
---|
43 | },
|
---|
44 | },
|
---|
45 | 4 => 'ScalingFactor',
|
---|
46 | 5 => 'CropXSize',
|
---|
47 | 6 => 'CropYSize',
|
---|
48 | 7 => {
|
---|
49 | Name => 'CropX',
|
---|
50 | SubDirectory => {
|
---|
51 | TagTable => 'Image::ExifTool::Stim::CropX',
|
---|
52 | },
|
---|
53 | },
|
---|
54 | 8 => {
|
---|
55 | Name => 'CropY',
|
---|
56 | SubDirectory => {
|
---|
57 | TagTable => 'Image::ExifTool::Stim::CropY',
|
---|
58 | },
|
---|
59 | },
|
---|
60 | 9 => {
|
---|
61 | Name => 'ViewType',
|
---|
62 | PrintConv => {
|
---|
63 | 0 => 'No Pop-up Effect',
|
---|
64 | 1 => 'Pop-up Effect',
|
---|
65 | },
|
---|
66 | },
|
---|
67 | 10 => {
|
---|
68 | Name => 'RepresentativeImage',
|
---|
69 | PrintConv => {
|
---|
70 | 0 => 'Left Viewpoint',
|
---|
71 | 1 => 'Right Viewpoint',
|
---|
72 | },
|
---|
73 | },
|
---|
74 | 11 => {
|
---|
75 | Name => 'ConvergenceBaseImage',
|
---|
76 | PrintConv => {
|
---|
77 | 0 => 'Left Viewpoint',
|
---|
78 | 1 => 'Right Viewpoint',
|
---|
79 | 255 => 'Equivalent for Both Viewpoints',
|
---|
80 | },
|
---|
81 | },
|
---|
82 | 12 => {
|
---|
83 | Name => 'AssumedDisplaySize',
|
---|
84 | PrintConv => '"$val mm"',
|
---|
85 | },
|
---|
86 | 13 => {
|
---|
87 | Name => 'AssumedDistanceView',
|
---|
88 | PrintConv => '"$val mm"',
|
---|
89 | },
|
---|
90 | 14 => 'RepresentativeDisparityNear',
|
---|
91 | 15 => 'RepresentativeDisparityFar',
|
---|
92 | 16 => {
|
---|
93 | Name => 'InitialDisplayEffect',
|
---|
94 | PrintConv => {
|
---|
95 | 0 => 'Off',
|
---|
96 | 1 => 'On',
|
---|
97 | },
|
---|
98 | },
|
---|
99 | 17 => {
|
---|
100 | Name => 'ConvergenceDistance',
|
---|
101 | PrintConv => '$val ? "$val mm" : "inf"',
|
---|
102 | },
|
---|
103 | 18 => {
|
---|
104 | Name => 'CameraArrangementInterval',
|
---|
105 | PrintConv => '"$val mm"',
|
---|
106 | },
|
---|
107 | 19 => 'ShootingCount',
|
---|
108 | );
|
---|
109 |
|
---|
110 | # crop offset X tags
|
---|
111 | %Image::ExifTool::Stim::CropX = (
|
---|
112 | PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
---|
113 | GROUPS => { 0 => 'Stim', 1 => 'Stim', 2 => 'Image'},
|
---|
114 | 0 => {
|
---|
115 | Name => 'CropXCommonOffset',
|
---|
116 | Format => 'int16u',
|
---|
117 | PrintConv => {
|
---|
118 | 0 => 'Common Offset Setting',
|
---|
119 | 1 => 'Individual Offset Setting',
|
---|
120 | },
|
---|
121 | },
|
---|
122 | 2 => 'CropXViewpointNumber',
|
---|
123 | 3 => {
|
---|
124 | Name => 'CropXOffset',
|
---|
125 | Format => 'int32s',
|
---|
126 | },
|
---|
127 | 7 => 'CropXViewpointNumber2',
|
---|
128 | 8 => {
|
---|
129 | Name => 'CropXOffset2',
|
---|
130 | Format => 'int32s',
|
---|
131 | },
|
---|
132 | );
|
---|
133 |
|
---|
134 | # crop offset Y tags
|
---|
135 | %Image::ExifTool::Stim::CropY = (
|
---|
136 | PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
---|
137 | GROUPS => { 0 => 'Stim', 1 => 'Stim', 2 => 'Image'},
|
---|
138 | 0 => {
|
---|
139 | Name => 'CropYCommonOffset',
|
---|
140 | Format => 'int16u',
|
---|
141 | PrintConv => {
|
---|
142 | 0 => 'Common Offset Setting',
|
---|
143 | 1 => 'Individual Offset Setting',
|
---|
144 | },
|
---|
145 | },
|
---|
146 | 2 => 'CropYViewpointNumber',
|
---|
147 | 3 => {
|
---|
148 | Name => 'CropYOffset',
|
---|
149 | Format => 'int32s',
|
---|
150 | },
|
---|
151 | 7 => 'CropYViewpointNumber2',
|
---|
152 | 8 => {
|
---|
153 | Name => 'CropYOffset2',
|
---|
154 | Format => 'int32s',
|
---|
155 | },
|
---|
156 | );
|
---|
157 |
|
---|
158 | 1; # end
|
---|
159 |
|
---|
160 | __END__
|
---|
161 |
|
---|
162 | =head1 NAME
|
---|
163 |
|
---|
164 | Image::ExifTool::Stim - Definitions for Stereo Still Image tags
|
---|
165 |
|
---|
166 | =head1 SYNOPSIS
|
---|
167 |
|
---|
168 | This module is used by Image::ExifTool
|
---|
169 |
|
---|
170 | =head1 DESCRIPTION
|
---|
171 |
|
---|
172 | This module contains tag definitions for Stereo Still Image format (Stim)
|
---|
173 | information.
|
---|
174 |
|
---|
175 | =head1 AUTHOR
|
---|
176 |
|
---|
177 | Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca)
|
---|
178 |
|
---|
179 | This library is free software; you can redistribute it and/or modify it
|
---|
180 | under the same terms as Perl itself.
|
---|
181 |
|
---|
182 | =head1 REFERENCES
|
---|
183 |
|
---|
184 | =over 4
|
---|
185 |
|
---|
186 | =item L<http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-006_E.pdf>
|
---|
187 |
|
---|
188 | =back
|
---|
189 |
|
---|
190 | =head1 SEE ALSO
|
---|
191 |
|
---|
192 | L<Image::ExifTool::TagNames/Stim Tags>,
|
---|
193 | L<Image::ExifTool(3pm)|Image::ExifTool>
|
---|
194 |
|
---|
195 | =cut
|
---|
196 |
|
---|