Debian Codegraph @

src/com/drew/metadata/exif/ExifDirectoryBase.java

raw symbols SCIP
1 /*
2 * Copyright 2002-2019 Drew Noakes and contributors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * More information about this project is available at:
17 *
18 * https://drewnoakes.com/code/exif/
19 * https://github.com/drewnoakes/metadata-extractor
20 */
21
22 package com.drew.metadata.exif;
23
24 import com.drew.metadata.Directory;
25
26 import java.util.HashMap;
27
28 /**
29 * Base class for several Exif format tag directories.
30 *
31 * @author Drew Noakes https://drewnoakes.com
32 */
33 @SuppressWarnings("WeakerAccess")
34 public abstract class ExifDirectoryBase extends Directory
35 {
36 public static final int TAG_INTEROP_INDEX = 0x0001;
37 public static final int TAG_INTEROP_VERSION = 0x0002;
38
39 /**
40 * The new subfile type tag.
41 * 0 = Full-resolution Image
42 * 1 = Reduced-resolution image
43 * 2 = Single page of multi-page image
44 * 3 = Single page of multi-page reduced-resolution image
45 * 4 = Transparency mask
46 * 5 = Transparency mask of reduced-resolution image
47 * 6 = Transparency mask of multi-page image
48 * 7 = Transparency mask of reduced-resolution multi-page image
49 */
50 public static final int TAG_NEW_SUBFILE_TYPE = 0x00FE;
51 /**
52 * The old subfile type tag.
53 * 1 = Full-resolution image (Main image)
54 * 2 = Reduced-resolution image (Thumbnail)
55 * 3 = Single page of multi-page image
56 */
57 public static final int TAG_SUBFILE_TYPE = 0x00FF;
58
59 public static final int TAG_IMAGE_WIDTH = 0x0100;
60 public static final int TAG_IMAGE_HEIGHT = 0x0101;
61
62 /**
63 * When image format is no compression, this value shows the number of bits
64 * per component for each pixel. Usually this value is '8,8,8'.
65 */
66 public static final int TAG_BITS_PER_SAMPLE = 0x0102;
67 public static final int TAG_COMPRESSION = 0x0103;
68
69 /**
70 * Shows the color space of the image data components.
71 * 0 = WhiteIsZero
72 * 1 = BlackIsZero
73 * 2 = RGB
74 * 3 = RGB Palette
75 * 4 = Transparency Mask
76 * 5 = CMYK
77 * 6 = YCbCr
78 * 8 = CIELab
79 * 9 = ICCLab
80 * 10 = ITULab
81 * 32803 = Color Filter Array
82 * 32844 = Pixar LogL
83 * 32845 = Pixar LogLuv
84 * 34892 = Linear Raw
85 */
86 public static final int TAG_PHOTOMETRIC_INTERPRETATION = 0x0106;
87
88 /**
89 * 1 = No dithering or halftoning
90 * 2 = Ordered dither or halftone
91 * 3 = Randomized dither
92 */
93 public static final int TAG_THRESHOLDING = 0x0107;
94
95 /**
96 * 1 = Normal
97 * 2 = Reversed
98 */
99 public static final int TAG_FILL_ORDER = 0x010A;
100 public static final int TAG_DOCUMENT_NAME = 0x010D;
101
102 public static final int TAG_IMAGE_DESCRIPTION = 0x010E;
103
104 public static final int TAG_MAKE = 0x010F;
105 public static final int TAG_MODEL = 0x0110;
106 /** The position in the file of raster data. */
107 public static final int TAG_STRIP_OFFSETS = 0x0111;
108 public static final int TAG_ORIENTATION = 0x0112;
109 /** Each pixel is composed of this many samples. */
110 public static final int TAG_SAMPLES_PER_PIXEL = 0x0115;
111 /** The raster is codified by a single block of data holding this many rows. */
112 public static final int TAG_ROWS_PER_STRIP = 0x0116;
113 /** The size of the raster data in bytes. */
114 public static final int TAG_STRIP_BYTE_COUNTS = 0x0117;
115 public static final int TAG_MIN_SAMPLE_VALUE = 0x0118;
116 public static final int TAG_MAX_SAMPLE_VALUE = 0x0119;
117 public static final int TAG_X_RESOLUTION = 0x011A;
118 public static final int TAG_Y_RESOLUTION = 0x011B;
119 /**
120 * When image format is no compression YCbCr, this value shows byte aligns of
121 * YCbCr data. If value is '1', Y/Cb/Cr value is chunky format, contiguous for
122 * each subsampling pixel. If value is '2', Y/Cb/Cr value is separated and
123 * stored to Y plane/Cb plane/Cr plane format.
124 */
125 public static final int TAG_PLANAR_CONFIGURATION = 0x011C;
126 public static final int TAG_PAGE_NAME = 0x011D;
127
128 public static final int TAG_RESOLUTION_UNIT = 0x0128;
129 public static final int TAG_PAGE_NUMBER = 0x0129;
130
131 public static final int TAG_TRANSFER_FUNCTION = 0x012D;
132 public static final int TAG_SOFTWARE = 0x0131;
133 public static final int TAG_DATETIME = 0x0132;
134 public static final int TAG_ARTIST = 0x013B;
135 public static final int TAG_HOST_COMPUTER = 0x013C;
136 public static final int TAG_PREDICTOR = 0x013D;
137 public static final int TAG_WHITE_POINT = 0x013E;
138 public static final int TAG_PRIMARY_CHROMATICITIES = 0x013F;
139
140 public static final int TAG_TILE_WIDTH = 0x0142;
141 public static final int TAG_TILE_LENGTH = 0x0143;
142 public static final int TAG_TILE_OFFSETS = 0x0144;
143 public static final int TAG_TILE_BYTE_COUNTS = 0x0145;
144
145 /**
146 * Tag is a pointer to one or more sub-IFDs.
147 + Seems to be used exclusively by raw formats, referencing one or two IFDs.
148 */
149 public static final int TAG_SUB_IFD_OFFSET = 0x014a;
150
151 public static final int TAG_EXTRA_SAMPLES = 0x0152;
152 public static final int TAG_SAMPLE_FORMAT = 0x0153;
153
154 public static final int TAG_TRANSFER_RANGE = 0x0156;
155 public static final int TAG_JPEG_TABLES = 0x015B;
156 public static final int TAG_JPEG_PROC = 0x0200;
157
158 // 0x0201 can have all kinds of descriptions for thumbnail starting index
159 // 0x0202 can have all kinds of descriptions for thumbnail length
160 public static final int TAG_JPEG_RESTART_INTERVAL = 0x0203;
161 public static final int TAG_JPEG_LOSSLESS_PREDICTORS = 0x0205;
162 public static final int TAG_JPEG_POINT_TRANSFORMS = 0x0206;
163 public static final int TAG_JPEG_Q_TABLES = 0x0207;
164 public static final int TAG_JPEG_DC_TABLES = 0x0208;
165 public static final int TAG_JPEG_AC_TABLES = 0x0209;
166
167 public static final int TAG_YCBCR_COEFFICIENTS = 0x0211;
168 public static final int TAG_YCBCR_SUBSAMPLING = 0x0212;
169 public static final int TAG_YCBCR_POSITIONING = 0x0213;
170 public static final int TAG_REFERENCE_BLACK_WHITE = 0x0214;
171 public static final int TAG_STRIP_ROW_COUNTS = 0x022f;
172 public static final int TAG_APPLICATION_NOTES = 0x02bc;
173
174 public static final int TAG_RELATED_IMAGE_FILE_FORMAT = 0x1000;
175 public static final int TAG_RELATED_IMAGE_WIDTH = 0x1001;
176 public static final int TAG_RELATED_IMAGE_HEIGHT = 0x1002;
177
178 public static final int TAG_RATING = 0x4746;
179 public static final int TAG_RATING_PERCENT = 0x4749;
180
181 public static final int TAG_CFA_REPEAT_PATTERN_DIM = 0x828D;
182 /** There are two definitions for CFA pattern, I don't know the difference... */
183 public static final int TAG_CFA_PATTERN_2 = 0x828E;
184 public static final int TAG_BATTERY_LEVEL = 0x828F;
185 public static final int TAG_COPYRIGHT = 0x8298;
186 /**
187 * Exposure time (reciprocal of shutter speed). Unit is second.
188 */
189 public static final int TAG_EXPOSURE_TIME = 0x829A;
190 /**
191 * The actual F-number(F-stop) of lens when the image was taken.
192 */
193 public static final int TAG_FNUMBER = 0x829D;
194 public static final int TAG_IPTC_NAA = 0x83BB;
195 public static final int TAG_PHOTOSHOP_SETTINGS = 0x8649;
196 public static final int TAG_INTER_COLOR_PROFILE = 0x8773;
197 /**
198 * Exposure program that the camera used when image was taken. '1' means
199 * manual control, '2' program normal, '3' aperture priority, '4' shutter
200 * priority, '5' program creative (slow program), '6' program action
201 * (high-speed program), '7' portrait mode, '8' landscape mode.
202 */
203 public static final int TAG_EXPOSURE_PROGRAM = 0x8822;
204 public static final int TAG_SPECTRAL_SENSITIVITY = 0x8824;
205 public static final int TAG_ISO_EQUIVALENT = 0x8827;
206 /**
207 * Indicates the Opto-Electric Conversion Function (OECF) specified in ISO 14524.
208 * <p>
209 * OECF is the relationship between the camera optical input and the image values.
210 * <p>
211 * The values are:
212 * <ul>
213 * <li>Two shorts, indicating respectively number of columns, and number of rows.</li>
214 * <li>For each column, the column name in a null-terminated ASCII string.</li>
215 * <li>For each cell, an SRATIONAL value.</li>
216 * </ul>
217 */
218 public static final int TAG_OPTO_ELECTRIC_CONVERSION_FUNCTION = 0x8828;
219 public static final int TAG_INTERLACE = 0x8829;
220 public static final int TAG_TIME_ZONE_OFFSET_TIFF_EP = 0x882A;
221 public static final int TAG_SELF_TIMER_MODE_TIFF_EP = 0x882B;
222 /**
223 * Applies to ISO tag.
224 *
225 * 0 = Unknown
226 * 1 = Standard Output Sensitivity
227 * 2 = Recommended Exposure Index
228 * 3 = ISO Speed
229 * 4 = Standard Output Sensitivity and Recommended Exposure Index
230 * 5 = Standard Output Sensitivity and ISO Speed
231 * 6 = Recommended Exposure Index and ISO Speed
232 * 7 = Standard Output Sensitivity, Recommended Exposure Index and ISO Speed
233 */
234 public static final int TAG_SENSITIVITY_TYPE = 0x8830;
235 public static final int TAG_STANDARD_OUTPUT_SENSITIVITY = 0x8831;
236 public static final int TAG_RECOMMENDED_EXPOSURE_INDEX = 0x8832;
237 public static final int TAG_ISO_SPEED = 0x8833;
238 public static final int TAG_ISO_SPEED_LATITUDE_YYY = 0x8834;
239 public static final int TAG_ISO_SPEED_LATITUDE_ZZZ = 0x8835;
240
241 public static final int TAG_EXIF_VERSION = 0x9000;
242 public static final int TAG_DATETIME_ORIGINAL = 0x9003;
243 public static final int TAG_DATETIME_DIGITIZED = 0x9004;
244 public static final int TAG_TIME_ZONE = 0x9010;
245 public static final int TAG_TIME_ZONE_ORIGINAL = 0x9011;
246 public static final int TAG_TIME_ZONE_DIGITIZED = 0x9012;
247
248 public static final int TAG_COMPONENTS_CONFIGURATION = 0x9101;
249 /**
250 * Average (rough estimate) compression level in JPEG bits per pixel.
251 * */
252 public static final int TAG_COMPRESSED_AVERAGE_BITS_PER_PIXEL = 0x9102;
253
254 /**
255 * Shutter speed by APEX value. To convert this value to ordinary 'Shutter Speed';
256 * calculate this value's power of 2, then reciprocal. For example, if the
257 * ShutterSpeedValue is '4', shutter speed is 1/(24)=1/16 second.
258 */
259 public static final int TAG_SHUTTER_SPEED = 0x9201;
260 /**
261 * The actual aperture value of lens when the image was taken. Unit is APEX.
262 * To convert this value to ordinary F-number (F-stop), calculate this value's
263 * power of root 2 (=1.4142). For example, if the ApertureValue is '5',
264 * F-number is 1.4142^5 = F5.6.
265 */
266 public static final int TAG_APERTURE = 0x9202;
267 public static final int TAG_BRIGHTNESS_VALUE = 0x9203;
268 public static final int TAG_EXPOSURE_BIAS = 0x9204;
269 /**
270 * Maximum aperture value of lens. You can convert to F-number by calculating
271 * power of root 2 (same process of ApertureValue:0x9202).
272 * The actual aperture value of lens when the image was taken. To convert this
273 * value to ordinary f-number(f-stop), calculate the value's power of root 2
274 * (=1.4142). For example, if the ApertureValue is '5', f-number is 1.41425^5 = F5.6.
275 */
276 public static final int TAG_MAX_APERTURE = 0x9205;
277 /**
278 * Indicates the distance the autofocus camera is focused to. Tends to be less accurate as distance increases.
279 */
280 public static final int TAG_SUBJECT_DISTANCE = 0x9206;
281 /**
282 * Exposure metering method. '0' means unknown, '1' average, '2' center
283 * weighted average, '3' spot, '4' multi-spot, '5' multi-segment, '6' partial,
284 * '255' other.
285 */
286 public static final int TAG_METERING_MODE = 0x9207;
287
288 /**
289 * @deprecated use {@link com.drew.metadata.exif.ExifDirectoryBase#TAG_WHITE_BALANCE} instead.
290 */
291 @Deprecated
292 public static final int TAG_LIGHT_SOURCE = 0x9208;
293 /**
294 * White balance (aka light source). '0' means unknown, '1' daylight,
295 * '2' fluorescent, '3' tungsten, '10' flash, '17' standard light A,
296 * '18' standard light B, '19' standard light C, '20' D55, '21' D65,
297 * '22' D75, '255' other.
298 */
299 public static final int TAG_WHITE_BALANCE = 0x9208;
300 /**
301 * 0x0 = 0000000 = No Flash
302 * 0x1 = 0000001 = Fired
303 * 0x5 = 0000101 = Fired, Return not detected
304 * 0x7 = 0000111 = Fired, Return detected
305 * 0x9 = 0001001 = On
306 * 0xd = 0001101 = On, Return not detected
307 * 0xf = 0001111 = On, Return detected
308 * 0x10 = 0010000 = Off
309 * 0x18 = 0011000 = Auto, Did not fire
310 * 0x19 = 0011001 = Auto, Fired
311 * 0x1d = 0011101 = Auto, Fired, Return not detected
312 * 0x1f = 0011111 = Auto, Fired, Return detected
313 * 0x20 = 0100000 = No flash function
314 * 0x41 = 1000001 = Fired, Red-eye reduction
315 * 0x45 = 1000101 = Fired, Red-eye reduction, Return not detected
316 * 0x47 = 1000111 = Fired, Red-eye reduction, Return detected
317 * 0x49 = 1001001 = On, Red-eye reduction
318 * 0x4d = 1001101 = On, Red-eye reduction, Return not detected
319 * 0x4f = 1001111 = On, Red-eye reduction, Return detected
320 * 0x59 = 1011001 = Auto, Fired, Red-eye reduction
321 * 0x5d = 1011101 = Auto, Fired, Red-eye reduction, Return not detected
322 * 0x5f = 1011111 = Auto, Fired, Red-eye reduction, Return detected
323 * 6543210 (positions)
324 *
325 * This is a bitmask.
326 * 0 = flash fired
327 * 1 = return detected
328 * 2 = return able to be detected
329 * 3 = unknown
330 * 4 = auto used
331 * 5 = unknown
332 * 6 = red eye reduction used
333 */
334 public static final int TAG_FLASH = 0x9209;
335 /**
336 * Focal length of lens used to take image. Unit is millimeter.
337 * Nice digital cameras actually save the focal length as a function of how far they are zoomed in.
338 */
339 public static final int TAG_FOCAL_LENGTH = 0x920A;
340
341 public static final int TAG_FLASH_ENERGY_TIFF_EP = 0x920B;
342 public static final int TAG_SPATIAL_FREQ_RESPONSE_TIFF_EP = 0x920C;
343 public static final int TAG_NOISE = 0x920D;
344 public static final int TAG_FOCAL_PLANE_X_RESOLUTION_TIFF_EP = 0x920E;
345 public static final int TAG_FOCAL_PLANE_Y_RESOLUTION_TIFF_EP = 0x920F;
346 public static final int TAG_IMAGE_NUMBER = 0x9211;
347 public static final int TAG_SECURITY_CLASSIFICATION = 0x9212;
348 public static final int TAG_IMAGE_HISTORY = 0x9213;
349 public static final int TAG_SUBJECT_LOCATION_TIFF_EP = 0x9214;
350 public static final int TAG_EXPOSURE_INDEX_TIFF_EP = 0x9215;
351 public static final int TAG_STANDARD_ID_TIFF_EP = 0x9216;
352
353 /**
354 * This tag holds the Exif Makernote. Makernotes are free to be in any format, though they are often IFDs.
355 * To determine the format, we consider the starting bytes of the makernote itself and sometimes the
356 * camera model and make.
357 * <p>
358 * The component count for this tag includes all of the bytes needed for the makernote.
359 */
360 public static final int TAG_MAKERNOTE = 0x927C;
361
362 public static final int TAG_USER_COMMENT = 0x9286;
363
364 public static final int TAG_SUBSECOND_TIME = 0x9290;
365 public static final int TAG_SUBSECOND_TIME_ORIGINAL = 0x9291;
366 public static final int TAG_SUBSECOND_TIME_DIGITIZED = 0x9292;
367
368 public static final int TAG_TEMPERATURE = 0x9400;
369 public static final int TAG_HUMIDITY = 0x9401;
370 public static final int TAG_PRESSURE = 0x9402;
371 public static final int TAG_WATER_DEPTH = 0x9403;
372 public static final int TAG_ACCELERATION = 0x9404;
373 public static final int TAG_CAMERA_ELEVATION_ANGLE = 0x9405;
374
375 /** The image title, as used by Windows XP. */
376 public static final int TAG_WIN_TITLE = 0x9C9B;
377 /** The image comment, as used by Windows XP. */
378 public static final int TAG_WIN_COMMENT = 0x9C9C;
379 /** The image author, as used by Windows XP (called Artist in the Windows shell). */
380 public static final int TAG_WIN_AUTHOR = 0x9C9D;
381 /** The image keywords, as used by Windows XP. */
382 public static final int TAG_WIN_KEYWORDS = 0x9C9E;
383 /** The image subject, as used by Windows XP. */
384 public static final int TAG_WIN_SUBJECT = 0x9C9F;
385
386 public static final int TAG_FLASHPIX_VERSION = 0xA000;
387 /**
388 * Defines Color Space. DCF image must use sRGB color space so value is
389 * always '1'. If the picture uses the other color space, value is
390 * '65535':Uncalibrated.
391 */
392 public static final int TAG_COLOR_SPACE = 0xA001;
393 public static final int TAG_EXIF_IMAGE_WIDTH = 0xA002;
394 public static final int TAG_EXIF_IMAGE_HEIGHT = 0xA003;
395 public static final int TAG_RELATED_SOUND_FILE = 0xA004;
396
397 public static final int TAG_FLASH_ENERGY = 0xA20B;
398 public static final int TAG_SPATIAL_FREQ_RESPONSE = 0xA20C;
399 public static final int TAG_FOCAL_PLANE_X_RESOLUTION = 0xA20E;
400 public static final int TAG_FOCAL_PLANE_Y_RESOLUTION = 0xA20F;
401 /**
402 * Unit of FocalPlaneXResolution/FocalPlaneYResolution. '1' means no-unit,
403 * '2' inch, '3' centimeter.
404 *
405 * Note: Some of Fujifilm's digicam(e.g.FX2700,FX2900,Finepix4700Z/40i etc)
406 * uses value '3' so it must be 'centimeter', but it seems that they use a
407 * '8.3mm?'(1/3in.?) to their ResolutionUnit. Fuji's BUG? Finepix4900Z has
408 * been changed to use value '2' but it doesn't match to actual value also.
409 */
410 public static final int TAG_FOCAL_PLANE_RESOLUTION_UNIT = 0xA210;
411 public static final int TAG_SUBJECT_LOCATION = 0xA214;
412 public static final int TAG_EXPOSURE_INDEX = 0xA215;
413 public static final int TAG_SENSING_METHOD = 0xA217;
414
415 public static final int TAG_FILE_SOURCE = 0xA300;
416 public static final int TAG_SCENE_TYPE = 0xA301;
417 public static final int TAG_CFA_PATTERN = 0xA302;
418
419 /**
420 * This tag indicates the use of special processing on image data, such as rendering
421 * geared to output. When special processing is performed, the reader is expected to
422 * disable or minimize any further processing.
423 * Tag = 41985 (A401.H)
424 * Type = SHORT
425 * Count = 1
426 * Default = 0
427 * 0 = Normal process
428 * 1 = Custom process
429 * Other = reserved
430 */
431 public static final int TAG_CUSTOM_RENDERED = 0xA401;
432 /**
433 * This tag indicates the exposure mode set when the image was shot. In auto-bracketing
434 * mode, the camera shoots a series of frames of the same scene at different exposure settings.
435 * Tag = 41986 (A402.H)
436 * Type = SHORT
437 * Count = 1
438 * Default = none
439 * 0 = Auto exposure
440 * 1 = Manual exposure
441 * 2 = Auto bracket
442 * Other = reserved
443 */
444 public static final int TAG_EXPOSURE_MODE = 0xA402;
445 /**
446 * This tag indicates the white balance mode set when the image was shot.
447 * Tag = 41987 (A403.H)
448 * Type = SHORT
449 * Count = 1
450 * Default = none
451 * 0 = Auto white balance
452 * 1 = Manual white balance
453 * Other = reserved
454 */
455 public static final int TAG_WHITE_BALANCE_MODE = 0xA403;
456 /**
457 * This tag indicates the digital zoom ratio when the image was shot. If the
458 * numerator of the recorded value is 0, this indicates that digital zoom was
459 * not used.
460 * Tag = 41988 (A404.H)
461 * Type = RATIONAL
462 * Count = 1
463 * Default = none
464 */
465 public static final int TAG_DIGITAL_ZOOM_RATIO = 0xA404;
466 /**
467 * This tag indicates the equivalent focal length assuming a 35mm film camera,
468 * in mm. A value of 0 means the focal length is unknown. Note that this tag
469 * differs from the FocalLength tag.
470 * Tag = 41989 (A405.H)
471 * Type = SHORT
472 * Count = 1
473 * Default = none
474 */
475 public static final int TAG_35MM_FILM_EQUIV_FOCAL_LENGTH = 0xA405;
476 /**
477 * This tag indicates the type of scene that was shot. It can also be used to
478 * record the mode in which the image was shot. Note that this differs from
479 * the scene type (SceneType) tag.
480 * Tag = 41990 (A406.H)
481 * Type = SHORT
482 * Count = 1
483 * Default = 0
484 * 0 = Standard
485 * 1 = Landscape
486 * 2 = Portrait
487 * 3 = Night scene
488 * Other = reserved
489 */
490 public static final int TAG_SCENE_CAPTURE_TYPE = 0xA406;
491 /**
492 * This tag indicates the degree of overall image gain adjustment.
493 * Tag = 41991 (A407.H)
494 * Type = SHORT
495 * Count = 1
496 * Default = none
497 * 0 = None
498 * 1 = Low gain up
499 * 2 = High gain up
500 * 3 = Low gain down
501 * 4 = High gain down
502 * Other = reserved
503 */
504 public static final int TAG_GAIN_CONTROL = 0xA407;
505 /**
506 * This tag indicates the direction of contrast processing applied by the camera
507 * when the image was shot.
508 * Tag = 41992 (A408.H)
509 * Type = SHORT
510 * Count = 1
511 * Default = 0
512 * 0 = Normal
513 * 1 = Soft
514 * 2 = Hard
515 * Other = reserved
516 */
517 public static final int TAG_CONTRAST = 0xA408;
518 /**
519 * This tag indicates the direction of saturation processing applied by the camera
520 * when the image was shot.
521 * Tag = 41993 (A409.H)
522 * Type = SHORT
523 * Count = 1
524 * Default = 0
525 * 0 = Normal
526 * 1 = Low saturation
527 * 2 = High saturation
528 * Other = reserved
529 */
530 public static final int TAG_SATURATION = 0xA409;
531 /**
532 * This tag indicates the direction of sharpness processing applied by the camera
533 * when the image was shot.
534 * Tag = 41994 (A40A.H)
535 * Type = SHORT
536 * Count = 1
537 * Default = 0
538 * 0 = Normal
539 * 1 = Soft
540 * 2 = Hard
541 * Other = reserved
542 */
543 public static final int TAG_SHARPNESS = 0xA40A;
544 /**
545 * This tag indicates information on the picture-taking conditions of a particular
546 * camera model. The tag is used only to indicate the picture-taking conditions in
547 * the reader.
548 * Tag = 41995 (A40B.H)
549 * Type = UNDEFINED
550 * Count = Any
551 * Default = none
552 *
553 * The information is recorded in the format shown below. The data is recorded
554 * in Unicode using SHORT type for the number of display rows and columns and
555 * UNDEFINED type for the camera settings. The Unicode (UCS-2) string including
556 * Signature is NULL terminated. The specifics of the Unicode string are as given
557 * in ISO/IEC 10464-1.
558 *
559 * Length Type Meaning
560 * ------+-----------+------------------
561 * 2 SHORT Display columns
562 * 2 SHORT Display rows
563 * Any UNDEFINED Camera setting-1
564 * Any UNDEFINED Camera setting-2
565 * : : :
566 * Any UNDEFINED Camera setting-n
567 */
568 public static final int TAG_DEVICE_SETTING_DESCRIPTION = 0xA40B;
569 /**
570 * This tag indicates the distance to the subject.
571 * Tag = 41996 (A40C.H)
572 * Type = SHORT
573 * Count = 1
574 * Default = none
575 * 0 = unknown
576 * 1 = Macro
577 * 2 = Close view
578 * 3 = Distant view
579 * Other = reserved
580 */
581 public static final int TAG_SUBJECT_DISTANCE_RANGE = 0xA40C;
582
583 /**
584 * This tag indicates an identifier assigned uniquely to each image. It is
585 * recorded as an ASCII string equivalent to hexadecimal notation and 128-bit
586 * fixed length.
587 * Tag = 42016 (A420.H)
588 * Type = ASCII
589 * Count = 33
590 * Default = none
591 */
592 public static final int TAG_IMAGE_UNIQUE_ID = 0xA420;
593 /** String. */
594 public static final int TAG_CAMERA_OWNER_NAME = 0xA430;
595 /** String. */
596 public static final int TAG_BODY_SERIAL_NUMBER = 0xA431;
597 /** An array of four Rational64u numbers giving focal and aperture ranges. */
598 public static final int TAG_LENS_SPECIFICATION = 0xA432;
599 /** String. */
600 public static final int TAG_LENS_MAKE = 0xA433;
601 /** String. */
602 public static final int TAG_LENS_MODEL = 0xA434;
603 /** String. */
604 public static final int TAG_LENS_SERIAL_NUMBER = 0xA435;
605 /** Rational64u. */
606 public static final int TAG_GAMMA = 0xA500;
607
608 public static final int TAG_PRINT_IMAGE_MATCHING_INFO = 0xC4A5;
609
610 public static final int TAG_PANASONIC_TITLE = 0xC6D2;
611 public static final int TAG_PANASONIC_TITLE_2 = 0xC6D3;
612
613 public static final int TAG_PADDING = 0xEA1C;
614
615 public static final int TAG_LENS = 0xFDEA;
616
617 protected static void addExifTagNames(HashMap<Integer, String> map)
618 {
619 map.put(TAG_INTEROP_INDEX, "Interoperability Index");
620 map.put(TAG_INTEROP_VERSION, "Interoperability Version");
621 map.put(TAG_NEW_SUBFILE_TYPE, "New Subfile Type");
622 map.put(TAG_SUBFILE_TYPE, "Subfile Type");
623 map.put(TAG_IMAGE_WIDTH, "Image Width");
624 map.put(TAG_IMAGE_HEIGHT, "Image Height");
625 map.put(TAG_BITS_PER_SAMPLE, "Bits Per Sample");
626 map.put(TAG_COMPRESSION, "Compression");
627 map.put(TAG_PHOTOMETRIC_INTERPRETATION, "Photometric Interpretation");
628 map.put(TAG_THRESHOLDING, "Thresholding");
629 map.put(TAG_FILL_ORDER, "Fill Order");
630 map.put(TAG_DOCUMENT_NAME, "Document Name");
631 map.put(TAG_IMAGE_DESCRIPTION, "Image Description");
632 map.put(TAG_MAKE, "Make");
633 map.put(TAG_MODEL, "Model");
634 map.put(TAG_STRIP_OFFSETS, "Strip Offsets");
635 map.put(TAG_ORIENTATION, "Orientation");
636 map.put(TAG_SAMPLES_PER_PIXEL, "Samples Per Pixel");
637 map.put(TAG_ROWS_PER_STRIP, "Rows Per Strip");
638 map.put(TAG_STRIP_BYTE_COUNTS, "Strip Byte Counts");
639 map.put(TAG_MIN_SAMPLE_VALUE, "Minimum Sample Value");
640 map.put(TAG_MAX_SAMPLE_VALUE, "Maximum Sample Value");
641 map.put(TAG_X_RESOLUTION, "X Resolution");
642 map.put(TAG_Y_RESOLUTION, "Y Resolution");
643 map.put(TAG_PLANAR_CONFIGURATION, "Planar Configuration");
644 map.put(TAG_PAGE_NAME, "Page Name");
645 map.put(TAG_RESOLUTION_UNIT, "Resolution Unit");
646 map.put(TAG_PAGE_NUMBER, "Page Number");
647 map.put(TAG_TRANSFER_FUNCTION, "Transfer Function");
648 map.put(TAG_SOFTWARE, "Software");
649 map.put(TAG_DATETIME, "Date/Time");
650 map.put(TAG_ARTIST, "Artist");
651 map.put(TAG_PREDICTOR, "Predictor");
652 map.put(TAG_HOST_COMPUTER, "Host Computer");
653 map.put(TAG_WHITE_POINT, "White Point");
654 map.put(TAG_PRIMARY_CHROMATICITIES, "Primary Chromaticities");
655 map.put(TAG_TILE_WIDTH, "Tile Width");
656 map.put(TAG_TILE_LENGTH, "Tile Length");
657 map.put(TAG_TILE_OFFSETS, "Tile Offsets");
658 map.put(TAG_TILE_BYTE_COUNTS, "Tile Byte Counts");
659 map.put(TAG_SUB_IFD_OFFSET, "Sub IFD Pointer(s)");
660 map.put(TAG_EXTRA_SAMPLES, "Extra Samples");
661 map.put(TAG_SAMPLE_FORMAT, "Sample Format");
662 map.put(TAG_TRANSFER_RANGE, "Transfer Range");
663 map.put(TAG_JPEG_TABLES, "JPEG Tables");
664 map.put(TAG_JPEG_PROC, "JPEG Proc");
665
666 map.put(TAG_JPEG_RESTART_INTERVAL, "JPEG Restart Interval");
667 map.put(TAG_JPEG_LOSSLESS_PREDICTORS, "JPEG Lossless Predictors");
668 map.put(TAG_JPEG_POINT_TRANSFORMS, "JPEG Point Transforms");
669 map.put(TAG_JPEG_Q_TABLES, "JPEGQ Tables");
670 map.put(TAG_JPEG_DC_TABLES, "JPEGDC Tables");
671 map.put(TAG_JPEG_AC_TABLES, "JPEGAC Tables");
672
673 map.put(TAG_YCBCR_COEFFICIENTS, "YCbCr Coefficients");
674 map.put(TAG_YCBCR_SUBSAMPLING, "YCbCr Sub-Sampling");
675 map.put(TAG_YCBCR_POSITIONING, "YCbCr Positioning");
676 map.put(TAG_REFERENCE_BLACK_WHITE, "Reference Black/White");
677 map.put(TAG_STRIP_ROW_COUNTS, "Strip Row Counts");
678 map.put(TAG_APPLICATION_NOTES, "Application Notes");
679 map.put(TAG_RELATED_IMAGE_FILE_FORMAT, "Related Image File Format");
680 map.put(TAG_RELATED_IMAGE_WIDTH, "Related Image Width");
681 map.put(TAG_RELATED_IMAGE_HEIGHT, "Related Image Height");
682 map.put(TAG_RATING, "Rating");
683 map.put(TAG_RATING_PERCENT, "Rating Percent");
684 map.put(TAG_CFA_REPEAT_PATTERN_DIM, "CFA Repeat Pattern Dim");
685 map.put(TAG_CFA_PATTERN_2, "CFA Pattern");
686 map.put(TAG_BATTERY_LEVEL, "Battery Level");
687 map.put(TAG_COPYRIGHT, "Copyright");
688 map.put(TAG_EXPOSURE_TIME, "Exposure Time");
689 map.put(TAG_FNUMBER, "F-Number");
690 map.put(TAG_IPTC_NAA, "IPTC/NAA");
691 map.put(TAG_PHOTOSHOP_SETTINGS, "Photoshop Settings");
692 map.put(TAG_INTER_COLOR_PROFILE, "Inter Color Profile");
693 map.put(TAG_EXPOSURE_PROGRAM, "Exposure Program");
694 map.put(TAG_SPECTRAL_SENSITIVITY, "Spectral Sensitivity");
695 map.put(TAG_ISO_EQUIVALENT, "ISO Speed Ratings");
696 map.put(TAG_OPTO_ELECTRIC_CONVERSION_FUNCTION, "Opto-electric Conversion Function (OECF)");
697 map.put(TAG_INTERLACE, "Interlace");
698 map.put(TAG_TIME_ZONE_OFFSET_TIFF_EP, "Time Zone Offset");
699 map.put(TAG_SELF_TIMER_MODE_TIFF_EP, "Self Timer Mode");
700 map.put(TAG_SENSITIVITY_TYPE, "Sensitivity Type");
701 map.put(TAG_STANDARD_OUTPUT_SENSITIVITY, "Standard Output Sensitivity");
702 map.put(TAG_RECOMMENDED_EXPOSURE_INDEX, "Recommended Exposure Index");
703 map.put(TAG_ISO_SPEED, "ISO Speed");
704 map.put(TAG_ISO_SPEED_LATITUDE_YYY, "ISO Speed Latitude yyy");
705 map.put(TAG_ISO_SPEED_LATITUDE_ZZZ, "ISO Speed Latitude zzz");
706 map.put(TAG_EXIF_VERSION, "Exif Version");
707 map.put(TAG_DATETIME_ORIGINAL, "Date/Time Original");
708 map.put(TAG_DATETIME_DIGITIZED, "Date/Time Digitized");
709 map.put(TAG_TIME_ZONE, "Time Zone");
710 map.put(TAG_TIME_ZONE_ORIGINAL, "Time Zone Original");
711 map.put(TAG_TIME_ZONE_DIGITIZED, "Time Zone Digitized");
712 map.put(TAG_COMPONENTS_CONFIGURATION, "Components Configuration");
713 map.put(TAG_COMPRESSED_AVERAGE_BITS_PER_PIXEL, "Compressed Bits Per Pixel");
714 map.put(TAG_SHUTTER_SPEED, "Shutter Speed Value");
715 map.put(TAG_APERTURE, "Aperture Value");
716 map.put(TAG_BRIGHTNESS_VALUE, "Brightness Value");
717 map.put(TAG_EXPOSURE_BIAS, "Exposure Bias Value");
718 map.put(TAG_MAX_APERTURE, "Max Aperture Value");
719 map.put(TAG_SUBJECT_DISTANCE, "Subject Distance");
720 map.put(TAG_METERING_MODE, "Metering Mode");
721 map.put(TAG_WHITE_BALANCE, "White Balance");
722 map.put(TAG_FLASH, "Flash");
723 map.put(TAG_FOCAL_LENGTH, "Focal Length");
724 map.put(TAG_FLASH_ENERGY_TIFF_EP, "Flash Energy");
725 map.put(TAG_SPATIAL_FREQ_RESPONSE_TIFF_EP, "Spatial Frequency Response");
726 map.put(TAG_NOISE, "Noise");
727 map.put(TAG_FOCAL_PLANE_X_RESOLUTION_TIFF_EP, "Focal Plane X Resolution");
728 map.put(TAG_FOCAL_PLANE_Y_RESOLUTION_TIFF_EP, "Focal Plane Y Resolution");
729 map.put(TAG_IMAGE_NUMBER, "Image Number");
730 map.put(TAG_SECURITY_CLASSIFICATION, "Security Classification");
731 map.put(TAG_IMAGE_HISTORY, "Image History");
732 map.put(TAG_SUBJECT_LOCATION_TIFF_EP, "Subject Location");
733 map.put(TAG_EXPOSURE_INDEX_TIFF_EP, "Exposure Index");
734 map.put(TAG_STANDARD_ID_TIFF_EP, "TIFF/EP Standard ID");
735 map.put(TAG_MAKERNOTE, "Makernote");
736 map.put(TAG_USER_COMMENT, "User Comment");
737 map.put(TAG_SUBSECOND_TIME, "Sub-Sec Time");
738 map.put(TAG_SUBSECOND_TIME_ORIGINAL, "Sub-Sec Time Original");
739 map.put(TAG_SUBSECOND_TIME_DIGITIZED, "Sub-Sec Time Digitized");
740 map.put(TAG_TEMPERATURE, "Temperature");
741 map.put(TAG_HUMIDITY, "Humidity");
742 map.put(TAG_PRESSURE, "Pressure");
743 map.put(TAG_WATER_DEPTH, "Water Depth");
744 map.put(TAG_ACCELERATION, "Acceleration");
745 map.put(TAG_CAMERA_ELEVATION_ANGLE, "Camera Elevation Angle");
746 map.put(TAG_WIN_TITLE, "Windows XP Title");
747 map.put(TAG_WIN_COMMENT, "Windows XP Comment");
748 map.put(TAG_WIN_AUTHOR, "Windows XP Author");
749 map.put(TAG_WIN_KEYWORDS, "Windows XP Keywords");
750 map.put(TAG_WIN_SUBJECT, "Windows XP Subject");
751 map.put(TAG_FLASHPIX_VERSION, "FlashPix Version");
752 map.put(TAG_COLOR_SPACE, "Color Space");
753 map.put(TAG_EXIF_IMAGE_WIDTH, "Exif Image Width");
754 map.put(TAG_EXIF_IMAGE_HEIGHT, "Exif Image Height");
755 map.put(TAG_RELATED_SOUND_FILE, "Related Sound File");
756 map.put(TAG_FLASH_ENERGY, "Flash Energy");
757 map.put(TAG_SPATIAL_FREQ_RESPONSE, "Spatial Frequency Response");
758 map.put(TAG_FOCAL_PLANE_X_RESOLUTION, "Focal Plane X Resolution");
759 map.put(TAG_FOCAL_PLANE_Y_RESOLUTION, "Focal Plane Y Resolution");
760 map.put(TAG_FOCAL_PLANE_RESOLUTION_UNIT, "Focal Plane Resolution Unit");
761 map.put(TAG_SUBJECT_LOCATION, "Subject Location");
762 map.put(TAG_EXPOSURE_INDEX, "Exposure Index");
763 map.put(TAG_SENSING_METHOD, "Sensing Method");
764 map.put(TAG_FILE_SOURCE, "File Source");
765 map.put(TAG_SCENE_TYPE, "Scene Type");
766 map.put(TAG_CFA_PATTERN, "CFA Pattern");
767 map.put(TAG_CUSTOM_RENDERED, "Custom Rendered");
768 map.put(TAG_EXPOSURE_MODE, "Exposure Mode");
769 map.put(TAG_WHITE_BALANCE_MODE, "White Balance Mode");
770 map.put(TAG_DIGITAL_ZOOM_RATIO, "Digital Zoom Ratio");
771 map.put(TAG_35MM_FILM_EQUIV_FOCAL_LENGTH, "Focal Length 35");
772 map.put(TAG_SCENE_CAPTURE_TYPE, "Scene Capture Type");
773 map.put(TAG_GAIN_CONTROL, "Gain Control");
774 map.put(TAG_CONTRAST, "Contrast");
775 map.put(TAG_SATURATION, "Saturation");
776 map.put(TAG_SHARPNESS, "Sharpness");
777 map.put(TAG_DEVICE_SETTING_DESCRIPTION, "Device Setting Description");
778 map.put(TAG_SUBJECT_DISTANCE_RANGE, "Subject Distance Range");
779 map.put(TAG_IMAGE_UNIQUE_ID, "Unique Image ID");
780 map.put(TAG_CAMERA_OWNER_NAME, "Camera Owner Name");
781 map.put(TAG_BODY_SERIAL_NUMBER, "Body Serial Number");
782 map.put(TAG_LENS_SPECIFICATION, "Lens Specification");
783 map.put(TAG_LENS_MAKE, "Lens Make");
784 map.put(TAG_LENS_MODEL, "Lens Model");
785 map.put(TAG_LENS_SERIAL_NUMBER, "Lens Serial Number");
786 map.put(TAG_GAMMA, "Gamma");
787 map.put(TAG_PRINT_IMAGE_MATCHING_INFO, "Print Image Matching (PIM) Info");
788 map.put(TAG_PANASONIC_TITLE, "Panasonic Title");
789 map.put(TAG_PANASONIC_TITLE_2, "Panasonic Title (2)");
790 map.put(TAG_PADDING, "Padding");
791 map.put(TAG_LENS, "Lens");
792 }
793 }