Image/ExifTool/Stim.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
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/std/documents/e/DC-006_E.pdf
9 #------------------------------------------------------------------------------
10  
11 package Image::ExifTool::Stim;
12  
13 use strict;
14 use vars qw($VERSION);
15  
16 $VERSION = '1.01';
17  
18 # Tags found in APP3 Stim 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<https://web.archive.org/web/20190718152459/http://www.cipa.jp/std/documents/e/DC-006_E.pdf>
25 for the 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__