Debian Codegraph @

src/com/drew/metadata/exif/makernotes/FujifilmMakernoteDirectory.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 package com.drew.metadata.exif.makernotes;
22
23 import com.drew.lang.annotations.NotNull;
24 import com.drew.metadata.Directory;
25
26 import java.util.HashMap;
27
28 /**
29 * Describes tags specific to Fujifilm cameras.
30 *
31 * @author Drew Noakes https://drewnoakes.com
32 */
33 @SuppressWarnings("WeakerAccess")
34 public class FujifilmMakernoteDirectory extends Directory
35 {
36 public static final int TAG_MAKERNOTE_VERSION = 0x0000;
37 public static final int TAG_SERIAL_NUMBER = 0x0010;
38
39 public static final int TAG_QUALITY = 0x1000;
40 public static final int TAG_SHARPNESS = 0x1001;
41 public static final int TAG_WHITE_BALANCE = 0x1002;
42 public static final int TAG_COLOR_SATURATION = 0x1003;
43 public static final int TAG_TONE = 0x1004;
44 public static final int TAG_COLOR_TEMPERATURE = 0x1005;
45 public static final int TAG_CONTRAST = 0x1006;
46
47 public static final int TAG_WHITE_BALANCE_FINE_TUNE = 0x100a;
48 public static final int TAG_NOISE_REDUCTION = 0x100b;
49 public static final int TAG_HIGH_ISO_NOISE_REDUCTION = 0x100e;
50
51 public static final int TAG_FLASH_MODE = 0x1010;
52 public static final int TAG_FLASH_EV = 0x1011;
53
54 public static final int TAG_MACRO = 0x1020;
55 public static final int TAG_FOCUS_MODE = 0x1021;
56 public static final int TAG_FOCUS_PIXEL = 0x1023;
57
58 public static final int TAG_SLOW_SYNC = 0x1030;
59 public static final int TAG_PICTURE_MODE = 0x1031;
60 public static final int TAG_EXR_AUTO = 0x1033;
61 public static final int TAG_EXR_MODE = 0x1034;
62
63 public static final int TAG_AUTO_BRACKETING = 0x1100;
64 public static final int TAG_SEQUENCE_NUMBER = 0x1101;
65
66 public static final int TAG_FINE_PIX_COLOR = 0x1210;
67
68 public static final int TAG_BLUR_WARNING = 0x1300;
69 public static final int TAG_FOCUS_WARNING = 0x1301;
70 public static final int TAG_AUTO_EXPOSURE_WARNING = 0x1302;
71 public static final int TAG_GE_IMAGE_SIZE = 0x1304;
72
73 public static final int TAG_DYNAMIC_RANGE = 0x1400;
74 public static final int TAG_FILM_MODE = 0x1401;
75 public static final int TAG_DYNAMIC_RANGE_SETTING = 0x1402;
76 public static final int TAG_DEVELOPMENT_DYNAMIC_RANGE = 0x1403;
77 public static final int TAG_MIN_FOCAL_LENGTH = 0x1404;
78 public static final int TAG_MAX_FOCAL_LENGTH = 0x1405;
79 public static final int TAG_MAX_APERTURE_AT_MIN_FOCAL = 0x1406;
80 public static final int TAG_MAX_APERTURE_AT_MAX_FOCAL = 0x1407;
81
82 public static final int TAG_AUTO_DYNAMIC_RANGE = 0x140b;
83
84 public static final int TAG_FACES_DETECTED = 0x4100;
85 /**
86 * Left, top, right and bottom coordinates in full-sized image for each face detected.
87 */
88 public static final int TAG_FACE_POSITIONS = 0x4103;
89 public static final int TAG_FACE_REC_INFO = 0x4282;
90
91 public static final int TAG_FILE_SOURCE = 0x8000;
92 public static final int TAG_ORDER_NUMBER = 0x8002;
93 public static final int TAG_FRAME_NUMBER = 0x8003;
94
95 public static final int TAG_PARALLAX = 0xb211;
96 public static final int TAG_IMAGE_NUMBER = 0x1438;
97
98 @NotNull
99 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
100
101 static
102 {
103 _tagNameMap.put(TAG_MAKERNOTE_VERSION, "Makernote Version");
104 _tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number");
105
106 _tagNameMap.put(TAG_QUALITY, "Quality");
107 _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
108 _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
109 _tagNameMap.put(TAG_COLOR_SATURATION, "Color Saturation");
110 _tagNameMap.put(TAG_TONE, "Tone (Contrast)");
111 _tagNameMap.put(TAG_COLOR_TEMPERATURE, "Color Temperature");
112 _tagNameMap.put(TAG_CONTRAST, "Contrast");
113
114 _tagNameMap.put(TAG_WHITE_BALANCE_FINE_TUNE, "White Balance Fine Tune");
115 _tagNameMap.put(TAG_NOISE_REDUCTION, "Noise Reduction");
116 _tagNameMap.put(TAG_HIGH_ISO_NOISE_REDUCTION, "High ISO Noise Reduction");
117
118 _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
119 _tagNameMap.put(TAG_FLASH_EV, "Flash Strength");
120
121 _tagNameMap.put(TAG_MACRO, "Macro");
122 _tagNameMap.put(TAG_FOCUS_MODE, "Focus Mode");
123 _tagNameMap.put(TAG_FOCUS_PIXEL, "Focus Pixel");
124
125 _tagNameMap.put(TAG_SLOW_SYNC, "Slow Sync");
126 _tagNameMap.put(TAG_PICTURE_MODE, "Picture Mode");
127 _tagNameMap.put(TAG_EXR_AUTO, "EXR Auto");
128 _tagNameMap.put(TAG_EXR_MODE, "EXR Mode");
129
130 _tagNameMap.put(TAG_AUTO_BRACKETING, "Auto Bracketing");
131 _tagNameMap.put(TAG_SEQUENCE_NUMBER, "Sequence Number");
132
133 _tagNameMap.put(TAG_FINE_PIX_COLOR, "FinePix Color Setting");
134
135 _tagNameMap.put(TAG_BLUR_WARNING, "Blur Warning");
136 _tagNameMap.put(TAG_FOCUS_WARNING, "Focus Warning");
137 _tagNameMap.put(TAG_AUTO_EXPOSURE_WARNING, "AE Warning");
138 _tagNameMap.put(TAG_GE_IMAGE_SIZE, "GE Image Size");
139
140 _tagNameMap.put(TAG_DYNAMIC_RANGE, "Dynamic Range");
141 _tagNameMap.put(TAG_FILM_MODE, "Film Mode");
142 _tagNameMap.put(TAG_DYNAMIC_RANGE_SETTING, "Dynamic Range Setting");
143 _tagNameMap.put(TAG_DEVELOPMENT_DYNAMIC_RANGE, "Development Dynamic Range");
144 _tagNameMap.put(TAG_MIN_FOCAL_LENGTH, "Minimum Focal Length");
145 _tagNameMap.put(TAG_MAX_FOCAL_LENGTH, "Maximum Focal Length");
146 _tagNameMap.put(TAG_MAX_APERTURE_AT_MIN_FOCAL, "Maximum Aperture at Minimum Focal Length");
147 _tagNameMap.put(TAG_MAX_APERTURE_AT_MAX_FOCAL, "Maximum Aperture at Maximum Focal Length");
148
149 _tagNameMap.put(TAG_AUTO_DYNAMIC_RANGE, "Auto Dynamic Range");
150
151 _tagNameMap.put(TAG_FACES_DETECTED, "Faces Detected");
152 _tagNameMap.put(TAG_FACE_POSITIONS, "Face Positions");
153 _tagNameMap.put(TAG_FACE_REC_INFO, "Face Detection Data");
154
155 _tagNameMap.put(TAG_FILE_SOURCE, "File Source");
156 _tagNameMap.put(TAG_ORDER_NUMBER, "Order Number");
157 _tagNameMap.put(TAG_FRAME_NUMBER, "Frame Number");
158
159 _tagNameMap.put(TAG_PARALLAX, "Parallax");
160 _tagNameMap.put(TAG_IMAGE_NUMBER, "Image Number");
161 }
162
163 public FujifilmMakernoteDirectory()
164 {
165 this.setDescriptor(new FujifilmMakernoteDescriptor(this));
166 }
167
168 @Override
169 @NotNull
170 public String getName()
171 {
172 return "Fujifilm Makernote";
173 }
174
175 @Override
176 @NotNull
177 protected HashMap<Integer, String> getTagNameMap()
178 {
179 return _tagNameMap;
180 }
181 }