1 | /*
|
---|
2 | * Copyright 2002-2015 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 | 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 | * The Olympus camera settings makernote is used by many manufacturers (Epson, Konica, Minolta and Agfa...), and as such contains some tags
|
---|
30 | * that appear specific to those manufacturers.
|
---|
31 | *
|
---|
32 | * @author Kevin Mott https://github.com/kwhopper
|
---|
33 | * @author Drew Noakes https://drewnoakes.com
|
---|
34 | */
|
---|
35 | @SuppressWarnings("WeakerAccess")
|
---|
36 | public class OlympusCameraSettingsMakernoteDirectory extends Directory
|
---|
37 | {
|
---|
38 | public static final int TagCameraSettingsVersion = 0x0000;
|
---|
39 | public static final int TagPreviewImageValid = 0x0100;
|
---|
40 | public static final int TagPreviewImageStart = 0x0101;
|
---|
41 | public static final int TagPreviewImageLength = 0x0102;
|
---|
42 |
|
---|
43 | public static final int TagExposureMode = 0x0200;
|
---|
44 | public static final int TagAeLock = 0x0201;
|
---|
45 | public static final int TagMeteringMode = 0x0202;
|
---|
46 | public static final int TagExposureShift = 0x0203;
|
---|
47 | public static final int TagNdFilter = 0x0204;
|
---|
48 |
|
---|
49 | public static final int TagMacroMode = 0x0300;
|
---|
50 | public static final int TagFocusMode = 0x0301;
|
---|
51 | public static final int TagFocusProcess = 0x0302;
|
---|
52 | public static final int TagAfSearch = 0x0303;
|
---|
53 | public static final int TagAfAreas = 0x0304;
|
---|
54 | public static final int TagAfPointSelected = 0x0305;
|
---|
55 | public static final int TagAfFineTune = 0x0306;
|
---|
56 | public static final int TagAfFineTuneAdj = 0x0307;
|
---|
57 |
|
---|
58 | public static final int TagFlashMode = 0x400;
|
---|
59 | public static final int TagFlashExposureComp = 0x401;
|
---|
60 | public static final int TagFlashRemoteControl = 0x403;
|
---|
61 | public static final int TagFlashControlMode = 0x404;
|
---|
62 | public static final int TagFlashIntensity = 0x405;
|
---|
63 | public static final int TagManualFlashStrength = 0x406;
|
---|
64 |
|
---|
65 | public static final int TagWhiteBalance2 = 0x500;
|
---|
66 | public static final int TagWhiteBalanceTemperature = 0x501;
|
---|
67 | public static final int TagWhiteBalanceBracket = 0x502;
|
---|
68 | public static final int TagCustomSaturation = 0x503;
|
---|
69 | public static final int TagModifiedSaturation = 0x504;
|
---|
70 | public static final int TagContrastSetting = 0x505;
|
---|
71 | public static final int TagSharpnessSetting = 0x506;
|
---|
72 | public static final int TagColorSpace = 0x507;
|
---|
73 | public static final int TagSceneMode = 0x509;
|
---|
74 | public static final int TagNoiseReduction = 0x50a;
|
---|
75 | public static final int TagDistortionCorrection = 0x50b;
|
---|
76 | public static final int TagShadingCompensation = 0x50c;
|
---|
77 | public static final int TagCompressionFactor = 0x50d;
|
---|
78 | public static final int TagGradation = 0x50f;
|
---|
79 | public static final int TagPictureMode = 0x520;
|
---|
80 | public static final int TagPictureModeSaturation = 0x521;
|
---|
81 | public static final int TagPictureModeHue = 0x522;
|
---|
82 | public static final int TagPictureModeContrast = 0x523;
|
---|
83 | public static final int TagPictureModeSharpness = 0x524;
|
---|
84 | public static final int TagPictureModeBWFilter = 0x525;
|
---|
85 | public static final int TagPictureModeTone = 0x526;
|
---|
86 | public static final int TagNoiseFilter = 0x527;
|
---|
87 | public static final int TagArtFilter = 0x529;
|
---|
88 | public static final int TagMagicFilter = 0x52c;
|
---|
89 | public static final int TagPictureModeEffect = 0x52d;
|
---|
90 | public static final int TagToneLevel = 0x52e;
|
---|
91 | public static final int TagArtFilterEffect = 0x52f;
|
---|
92 | public static final int TagColorCreatorEffect = 0x532;
|
---|
93 |
|
---|
94 | public static final int TagDriveMode = 0x600;
|
---|
95 | public static final int TagPanoramaMode = 0x601;
|
---|
96 | public static final int TagImageQuality2 = 0x603;
|
---|
97 | public static final int TagImageStabilization = 0x604;
|
---|
98 |
|
---|
99 | public static final int TagStackedImage = 0x804;
|
---|
100 |
|
---|
101 | public static final int TagManometerPressure = 0x900;
|
---|
102 | public static final int TagManometerReading = 0x901;
|
---|
103 | public static final int TagExtendedWBDetect = 0x902;
|
---|
104 | public static final int TagRollAngle = 0x903;
|
---|
105 | public static final int TagPitchAngle = 0x904;
|
---|
106 | public static final int TagDateTimeUtc = 0x908;
|
---|
107 |
|
---|
108 | @NotNull
|
---|
109 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
---|
110 |
|
---|
111 | static {
|
---|
112 | _tagNameMap.put(TagCameraSettingsVersion, "Camera Settings Version");
|
---|
113 | _tagNameMap.put(TagPreviewImageValid, "Preview Image Valid");
|
---|
114 | _tagNameMap.put(TagPreviewImageStart, "Preview Image Start");
|
---|
115 | _tagNameMap.put(TagPreviewImageLength, "Preview Image Length");
|
---|
116 |
|
---|
117 | _tagNameMap.put(TagExposureMode, "Exposure Mode");
|
---|
118 | _tagNameMap.put(TagAeLock, "AE Lock");
|
---|
119 | _tagNameMap.put(TagMeteringMode, "Metering Mode");
|
---|
120 | _tagNameMap.put(TagExposureShift, "Exposure Shift");
|
---|
121 | _tagNameMap.put(TagNdFilter, "ND Filter");
|
---|
122 |
|
---|
123 | _tagNameMap.put(TagMacroMode, "Macro Mode");
|
---|
124 | _tagNameMap.put(TagFocusMode, "Focus Mode");
|
---|
125 | _tagNameMap.put(TagFocusProcess, "Focus Process");
|
---|
126 | _tagNameMap.put(TagAfSearch, "AF Search");
|
---|
127 | _tagNameMap.put(TagAfAreas, "AF Areas");
|
---|
128 | _tagNameMap.put(TagAfPointSelected, "AF Point Selected");
|
---|
129 | _tagNameMap.put(TagAfFineTune, "AF Fine Tune");
|
---|
130 | _tagNameMap.put(TagAfFineTuneAdj, "AF Fine Tune Adj");
|
---|
131 |
|
---|
132 | _tagNameMap.put(TagFlashMode, "Flash Mode");
|
---|
133 | _tagNameMap.put(TagFlashExposureComp, "Flash Exposure Comp");
|
---|
134 | _tagNameMap.put(TagFlashRemoteControl, "Flash Remote Control");
|
---|
135 | _tagNameMap.put(TagFlashControlMode, "Flash Control Mode");
|
---|
136 | _tagNameMap.put(TagFlashIntensity, "Flash Intensity");
|
---|
137 | _tagNameMap.put(TagManualFlashStrength, "Manual Flash Strength");
|
---|
138 |
|
---|
139 | _tagNameMap.put(TagWhiteBalance2, "White Balance 2");
|
---|
140 | _tagNameMap.put(TagWhiteBalanceTemperature, "White Balance Temperature");
|
---|
141 | _tagNameMap.put(TagWhiteBalanceBracket, "White Balance Bracket");
|
---|
142 | _tagNameMap.put(TagCustomSaturation, "Custom Saturation");
|
---|
143 | _tagNameMap.put(TagModifiedSaturation, "Modified Saturation");
|
---|
144 | _tagNameMap.put(TagContrastSetting, "Contrast Setting");
|
---|
145 | _tagNameMap.put(TagSharpnessSetting, "Sharpness Setting");
|
---|
146 | _tagNameMap.put(TagColorSpace, "Color Space");
|
---|
147 | _tagNameMap.put(TagSceneMode, "Scene Mode");
|
---|
148 | _tagNameMap.put(TagNoiseReduction, "Noise Reduction");
|
---|
149 | _tagNameMap.put(TagDistortionCorrection, "Distortion Correction");
|
---|
150 | _tagNameMap.put(TagShadingCompensation, "Shading Compensation");
|
---|
151 | _tagNameMap.put(TagCompressionFactor, "Compression Factor");
|
---|
152 | _tagNameMap.put(TagGradation, "Gradation");
|
---|
153 | _tagNameMap.put(TagPictureMode, "Picture Mode");
|
---|
154 | _tagNameMap.put(TagPictureModeSaturation, "Picture Mode Saturation");
|
---|
155 | _tagNameMap.put(TagPictureModeHue, "Picture Mode Hue");
|
---|
156 | _tagNameMap.put(TagPictureModeContrast, "Picture Mode Contrast");
|
---|
157 | _tagNameMap.put(TagPictureModeSharpness, "Picture Mode Sharpness");
|
---|
158 | _tagNameMap.put(TagPictureModeBWFilter, "Picture Mode BW Filter");
|
---|
159 | _tagNameMap.put(TagPictureModeTone, "Picture Mode Tone");
|
---|
160 | _tagNameMap.put(TagNoiseFilter, "Noise Filter");
|
---|
161 | _tagNameMap.put(TagArtFilter, "Art Filter");
|
---|
162 | _tagNameMap.put(TagMagicFilter, "Magic Filter");
|
---|
163 | _tagNameMap.put(TagPictureModeEffect, "Picture Mode Effect");
|
---|
164 | _tagNameMap.put(TagToneLevel, "Tone Level");
|
---|
165 | _tagNameMap.put(TagArtFilterEffect, "Art Filter Effect");
|
---|
166 | _tagNameMap.put(TagColorCreatorEffect, "Color Creator Effect");
|
---|
167 |
|
---|
168 | _tagNameMap.put(TagDriveMode, "Drive Mode");
|
---|
169 | _tagNameMap.put(TagPanoramaMode, "Panorama Mode");
|
---|
170 | _tagNameMap.put(TagImageQuality2, "Image Quality 2");
|
---|
171 | _tagNameMap.put(TagImageStabilization, "Image Stabilization");
|
---|
172 |
|
---|
173 | _tagNameMap.put(TagStackedImage, "Stacked Image");
|
---|
174 |
|
---|
175 | _tagNameMap.put(TagManometerPressure, "Manometer Pressure");
|
---|
176 | _tagNameMap.put(TagManometerReading, "Manometer Reading");
|
---|
177 | _tagNameMap.put(TagExtendedWBDetect, "Extended WB Detect");
|
---|
178 | _tagNameMap.put(TagRollAngle, "Roll Angle");
|
---|
179 | _tagNameMap.put(TagPitchAngle, "Pitch Angle");
|
---|
180 | _tagNameMap.put(TagDateTimeUtc, "Date Time UTC");
|
---|
181 | }
|
---|
182 |
|
---|
183 | public OlympusCameraSettingsMakernoteDirectory()
|
---|
184 | {
|
---|
185 | this.setDescriptor(new OlympusCameraSettingsMakernoteDescriptor(this));
|
---|
186 | }
|
---|
187 |
|
---|
188 | @Override
|
---|
189 | @NotNull
|
---|
190 | public String getName()
|
---|
191 | {
|
---|
192 | return "Olympus Camera Settings";
|
---|
193 | }
|
---|
194 |
|
---|
195 | @Override
|
---|
196 | @NotNull
|
---|
197 | protected HashMap<Integer, String> getTagNameMap()
|
---|
198 | {
|
---|
199 | return _tagNameMap;
|
---|
200 | }
|
---|
201 | }
|
---|