1 /*
2 ------------------------------------------------------------------------------
3 MetaCam - Extract EXIF information from digital camera files, with
4 support for Vendor specific blocks.
5 Copyright (C) 2000 Daniel Stephens (daniel@cheeseplant.org)
6 
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 ------------------------------------------------------------------------------
21 */
22 
23 #include "dpyfuncs.h"
24 
25 static const char *rcsid __attribute__((unused))="$Id: lookups.cc,v 1.3 2002/09/02 19:20:01 daniel Exp $";
26 
27 lookupValue lookEmpty[] = {
28     {0,0}
29 };
30 
31 lookupValue lookYesNo[] = {
32     {0, "No"},
33     {1, "Yes"},
34     {0,0}
35 };
36 
37 lookupValue lookPhotometric[] = {
38     {0, "White Is Zero"},
39     {1, "Black Is Zero"},
40     {2, "RGB"},
41     {3, "RGB Palette"},
42     {4, "Transparency Mask"},
43     {5, "CMYK"},
44     {6, "YCbCr"},
45     {8, "CIELab"},
46     {0,0}
47 };
48 
49 lookupValue lookCompression[] = {
50     {1, "Uncompressed"},
51     {2, "CCITT 1D"},
52     {3, "Group 3 FAX"},
53     {4, "Group 4 Fax"},
54     {5, "LZW"},
55     {6, "JPEG"},
56     {32773, "PackBits"},
57     {0,0}
58 };
59 
60 lookupValue lookYCbCrPositioning[] = {
61     {1, "Center of Array"},
62     {2, "Datum Point"},
63     {0,0}
64 };
65 
66 lookupValue lookExposureProgram[] = {
67     {0, "Not Defined"},
68     {1, "Manual Control"},
69     {2, "Program Normal"},
70     {3, "Aperture Priority"},
71     {4, "Shutter Priority"},
72     {5, "Program Creative"},
73     {6, "Program Action"},
74     {7, "Portrait Mode"},
75     {8, "Landscape Mode"},
76     {0,0}
77 };
78 
79 lookupValue lookMeteringMode[] = {
80     {0, "Unknown"},
81     {1, "Average"},
82     {2, "Center Weighted Average"},
83     {3, "Spot"},
84     {4, "Multi-Spot"},
85     {5, "Multi-Segment/Pattern"},
86     {6, "Partial"},
87     {255, "Other"},
88     {0,0}
89 };
90 
91 lookupValue lookLightSource[] = {
92     {0, "Automatic"},
93     {1, "Daylight"},
94     {2, "Fluorescent"},
95     {3, "Tungsten"},
96     {4, "Flash"},
97     {9, "Fine Weather"},
98     {10, "Cloudy Weather"},
99     {11, "Shade"},
100     {12, "Daylight Fluorescent (D 5700-7100K)"},
101     {13, "Day White Fluorescent (N 4600-5400K)"},
102     {14, "Cool White fluorescent (W 3900-4500K)"},
103     {15, "White Fluorescent (WW 3200-3700K)"},
104     {17, "Standard Light A"},
105     {18, "Standard Light B"},
106     {19, "Standard Light C"},
107     {20, "D55"},
108 	/* Added 20 - Overcast for Olympus D-510Z
109 	   Thanks to Geoff Kuenning (geoff@cs.hmc.edu) for patch
110 
111 	   Updated 2002-09-02 based on Exif 2.2 standard
112 	*/
113     {21, "D65"},
114     {22, "D75"},
115     {23, "D50"},
116     {24, "ISO Studio Tungsten"},
117     {255, "Other Light Source"},
118     {0,0}
119 };
120 
121 lookupValue lookSensingMethod[] = {
122     {1, "Not Defined"},
123     {2, "Single Chip Color Area Sensor"},
124     {3, "Two Chip Color Area Sensor"},
125     {4, "Three Chip Color Area Sensor"},
126     {5, "Color Sequential Area Sensor"},
127     {7, "Trilinear Sensor"},
128     {8, "Color Sequential Linear Sensor"},
129     {0,0}
130 };
131 
132 lookupValue lookOlymJPEGQuality[] = {
133     {1, "SQ"},
134     {2, "HQ"},
135     {3, "SHQ"},
136     {0,0}
137 };
138 
139 lookupValue lookCasioRecMode[] = {
140     {1, "Single Shutter"},
141     {2, "Panorama"},
142     {3, "Night Scene"},
143     {4, "Portrait"},
144     {5, "Landscape"},
145     {0,0}
146 };
147 
148 lookupValue lookCasioQuality[] = {
149     {1, "Economy"},
150     {2, "Normal"},
151     {3, "Fine"},
152     {0,0}
153 };
154 
155 lookupValue lookCasioFocusMode[] = {
156     {2, "Macro"},
157     {3, "Auto Focus"},
158     {4, "Manual Focus"},
159     {5, "Infinity"},
160     {0,0}
161 };
162 
163 lookupValue lookCasioFlashMode[] = {
164     {1, "Auto"},
165     {2, "On"},
166     {3, "Off"},
167     {4, "Red Eye Reduction"},
168     {0,0}
169 };
170 
171 lookupValue lookCasioFlashInten[] = {
172     {11, "Weak"},
173     {13, "Normal"},
174     {15, "Strong"},
175     {0,0}
176 };
177 
178 lookupValue lookCasioWhiteBalance[] = {
179     {1, "Auto"},
180     {2, "Tungsten"},
181     {3, "Daylight"},
182     {4, "Flurescent"},
183     {5, "Shade"},
184     {129, "Manual"},
185     {0,0}
186 };
187 
188 lookupValue lookCasioDigitalZoom[] = {
189     {0x10000, "Off"},
190     {0x10001, "2X"},
191     {0,0}
192 };
193 
194 lookupValue lookCasioSharpness[] = {
195     {0, "Normal"},
196     {1, "Soft"},
197     {2, "Hard"},
198     {0,0}
199 };
200 
201 lookupValue lookCasioContrast[] = {
202     {0, "Normal"},
203     {1, "Low"},
204     {2, "High"},
205     {0,0}
206 };
207 
208 lookupValue lookCasioSaturation[] = {
209     {0, "Normal"},
210     {1, "Low"},
211     {2, "High"},
212     {0,0}
213 };
214 
215 lookupValue lookCasioSensitivity[] = {
216 	    /* QV3000 Only: */
217     {64, "Normal"},
218     {125, "+1.0"},
219     {250, "+2.0"},
220     {244, "+3.0"},
221 	    /* QV2000/QV8000 Only: */
222     {80, "Normal"},
223     {100, "High"},
224     {0,0}
225 };
226 
227 lookupValue lookExifColorSpace[] = {
228     {1, "sRGB"},
229     {0x0FFFF, "Uncalibrated"},
230     {0,0}
231 };
232 
233 lookupValue lookExposureMode[] = {
234     {0, "Auto Exposure"},
235     {1, "Manual Exposure"},
236     {2, "Auto Bracket"},
237     {0,0}
238 };
239 
240 lookupValue lookWhiteBalance[] = {
241     {0, "Auto White Balance"},
242     {1, "Manual White Balance"},
243     {0,0}
244 };
245 
246 lookupValue lookSceneCaptureType[] = {
247     {0, "Standard"},
248     {1, "Landscape"},
249     {2, "Portrait"},
250     {3, "Night Scene"},
251     {0,0}
252 };
253 
254 lookupValue lookGainControl[] = {
255     {0, "None"},
256     {1, "Low Gain Up"},
257     {2, "High Gain Up"},
258     {3, "Low Gain Down"},
259     {4, "High Gain Down"},
260     {0,0}
261 };
262 
263 lookupValue lookContrast[] = {
264     {0, "Normal"},
265     {1, "Soft"},
266     {2, "Hard"},
267     {0,0}
268 };
269 
270 lookupValue lookSaturation[] = {
271     {0, "Normal"},
272     {1, "Low Saturation"},
273     {2, "High Saturation"},
274     {0,0}
275 };
276 
277 lookupValue lookSubjectDistanceRange[] = {
278     {0, "Unknown"},
279     {1, "Macro"},
280     {2, "Close View"},
281     {3, "Distant View"},
282     {0,0}
283 };
284 
285 lookupValue lookFocusPosition[] = {
286     {0, "Center"},
287     {1, "Top"},
288     {2, "Bottom"},
289     {3, "Left"},
290     {4, "Right"},
291     {0,0}
292 };
293 
294 lookupValue lookCustomRendered[] = {
295     {0, "Normal Process"},
296     {1, "Custom Process"},
297     {0,0}
298 };
299 
300 lookupValue lookSceneType[] = {
301     {1, "Directly Photographed"},
302     {0,0}
303 };
304 
305 lookupValue lookFileSource[] = {
306     {3, "DSC"},
307     {0,0}
308 };
309 
310 
311