source: josm/trunk/src/com/drew/metadata/exif/ExifDirectoryBase.java@ 10862

Last change on this file since 10862 was 10862, checked in by Don-vip, 8 years ago

update to metadata-extractor 2.9.1

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