source: josm/trunk/src/com/drew/metadata/exif/makernotes/OlympusFocusInfoMakernoteDirectory.java@ 13061

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

fix #15505 - update to metadata-extractor 2.10.1

  • Property svn:eol-style set to native
File size: 4.3 KB
Line 
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 */
21package com.drew.metadata.exif.makernotes;
22
23import com.drew.lang.annotations.NotNull;
24import com.drew.metadata.Directory;
25
26import java.util.HashMap;
27
28/**
29 * The Olympus focus info 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")
36public class OlympusFocusInfoMakernoteDirectory extends Directory
37{
38 public static final int TagFocusInfoVersion = 0x0000;
39 public static final int TagAutoFocus = 0x0209;
40 public static final int TagSceneDetect = 0x0210;
41 public static final int TagSceneArea = 0x0211;
42 public static final int TagSceneDetectData = 0x0212;
43
44 public static final int TagZoomStepCount = 0x0300;
45 public static final int TagFocusStepCount = 0x0301;
46 public static final int TagFocusStepInfinity = 0x0303;
47 public static final int TagFocusStepNear = 0x0304;
48 public static final int TagFocusDistance = 0x0305;
49 public static final int TagAfPoint = 0x0308;
50 // 0x031a Continuous AF parameters?
51 public static final int TagAfInfo = 0x0328; // ifd
52
53 public static final int TagExternalFlash = 0x1201;
54 public static final int TagExternalFlashGuideNumber = 0x1203;
55 public static final int TagExternalFlashBounce = 0x1204;
56 public static final int TagExternalFlashZoom = 0x1205;
57 public static final int TagInternalFlash = 0x1208;
58 public static final int TagManualFlash = 0x1209;
59 public static final int TagMacroLed = 0x120A;
60
61 public static final int TagSensorTemperature = 0x1500;
62
63 public static final int TagImageStabilization = 0x1600;
64
65 @NotNull
66 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
67
68 static {
69 _tagNameMap.put(TagFocusInfoVersion, "Focus Info Version");
70 _tagNameMap.put(TagAutoFocus, "Auto Focus");
71 _tagNameMap.put(TagSceneDetect, "Scene Detect");
72 _tagNameMap.put(TagSceneArea, "Scene Area");
73 _tagNameMap.put(TagSceneDetectData, "Scene Detect Data");
74 _tagNameMap.put(TagZoomStepCount, "Zoom Step Count");
75 _tagNameMap.put(TagFocusStepCount, "Focus Step Count");
76 _tagNameMap.put(TagFocusStepInfinity, "Focus Step Infinity");
77 _tagNameMap.put(TagFocusStepNear, "Focus Step Near");
78 _tagNameMap.put(TagFocusDistance, "Focus Distance");
79 _tagNameMap.put(TagAfPoint, "AF Point");
80 _tagNameMap.put(TagAfInfo, "AF Info");
81 _tagNameMap.put(TagExternalFlash, "External Flash");
82 _tagNameMap.put(TagExternalFlashGuideNumber, "External Flash Guide Number");
83 _tagNameMap.put(TagExternalFlashBounce, "External Flash Bounce");
84 _tagNameMap.put(TagExternalFlashZoom, "External Flash Zoom");
85 _tagNameMap.put(TagInternalFlash, "Internal Flash");
86 _tagNameMap.put(TagManualFlash, "Manual Flash");
87 _tagNameMap.put(TagMacroLed, "Macro LED");
88 _tagNameMap.put(TagSensorTemperature, "Sensor Temperature");
89 _tagNameMap.put(TagImageStabilization, "Image Stabilization");
90 }
91
92 public OlympusFocusInfoMakernoteDirectory()
93 {
94 this.setDescriptor(new OlympusFocusInfoMakernoteDescriptor(this));
95 }
96
97 @Override
98 @NotNull
99 public String getName()
100 {
101 return "Olympus Focus Info";
102 }
103
104 @Override
105 @NotNull
106 protected HashMap<Integer, String> getTagNameMap()
107 {
108 return _tagNameMap;
109 }
110}
Note: See TracBrowser for help on using the repository browser.