Debian Codegraph @

src/com/drew/metadata/exif/makernotes/OlympusEquipmentMakernoteDirectory.java

raw symbols SCIP
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 equipment 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 OlympusEquipmentMakernoteDirectory extends Directory
37 {
38 public static final int TAG_EQUIPMENT_VERSION = 0x0000;
39 public static final int TAG_CAMERA_TYPE_2 = 0x0100;
40 public static final int TAG_SERIAL_NUMBER = 0x0101;
41
42 public static final int TAG_INTERNAL_SERIAL_NUMBER = 0x0102;
43 public static final int TAG_FOCAL_PLANE_DIAGONAL = 0x0103;
44 public static final int TAG_BODY_FIRMWARE_VERSION = 0x0104;
45
46 public static final int TAG_LENS_TYPE = 0x0201;
47 public static final int TAG_LENS_SERIAL_NUMBER = 0x0202;
48 public static final int TAG_LENS_MODEL = 0x0203;
49 public static final int TAG_LENS_FIRMWARE_VERSION = 0x0204;
50 public static final int TAG_MAX_APERTURE_AT_MIN_FOCAL = 0x0205;
51 public static final int TAG_MAX_APERTURE_AT_MAX_FOCAL = 0x0206;
52 public static final int TAG_MIN_FOCAL_LENGTH = 0x0207;
53 public static final int TAG_MAX_FOCAL_LENGTH = 0x0208;
54 public static final int TAG_MAX_APERTURE = 0x020A;
55 public static final int TAG_LENS_PROPERTIES = 0x020B;
56
57 public static final int TAG_EXTENDER = 0x0301;
58 public static final int TAG_EXTENDER_SERIAL_NUMBER = 0x0302;
59 public static final int TAG_EXTENDER_MODEL = 0x0303;
60 public static final int TAG_EXTENDER_FIRMWARE_VERSION = 0x0304;
61
62 public static final int TAG_CONVERSION_LENS = 0x0403;
63
64 public static final int TAG_FLASH_TYPE = 0x1000;
65 public static final int TAG_FLASH_MODEL = 0x1001;
66 public static final int TAG_FLASH_FIRMWARE_VERSION = 0x1002;
67 public static final int TAG_FLASH_SERIAL_NUMBER = 0x1003;
68
69 @NotNull
70 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
71
72 static {
73 _tagNameMap.put(TAG_EQUIPMENT_VERSION, "Equipment Version");
74 _tagNameMap.put(TAG_CAMERA_TYPE_2, "Camera Type 2");
75 _tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number");
76 _tagNameMap.put(TAG_INTERNAL_SERIAL_NUMBER, "Internal Serial Number");
77 _tagNameMap.put(TAG_FOCAL_PLANE_DIAGONAL, "Focal Plane Diagonal");
78 _tagNameMap.put(TAG_BODY_FIRMWARE_VERSION, "Body Firmware Version");
79 _tagNameMap.put(TAG_LENS_TYPE, "Lens Type");
80 _tagNameMap.put(TAG_LENS_SERIAL_NUMBER, "Lens Serial Number");
81 _tagNameMap.put(TAG_LENS_MODEL, "Lens Model");
82 _tagNameMap.put(TAG_LENS_FIRMWARE_VERSION, "Lens Firmware Version");
83 _tagNameMap.put(TAG_MAX_APERTURE_AT_MIN_FOCAL, "Max Aperture At Min Focal");
84 _tagNameMap.put(TAG_MAX_APERTURE_AT_MAX_FOCAL, "Max Aperture At Max Focal");
85 _tagNameMap.put(TAG_MIN_FOCAL_LENGTH, "Min Focal Length");
86 _tagNameMap.put(TAG_MAX_FOCAL_LENGTH, "Max Focal Length");
87 _tagNameMap.put(TAG_MAX_APERTURE, "Max Aperture");
88 _tagNameMap.put(TAG_LENS_PROPERTIES, "Lens Properties");
89 _tagNameMap.put(TAG_EXTENDER, "Extender");
90 _tagNameMap.put(TAG_EXTENDER_SERIAL_NUMBER, "Extender Serial Number");
91 _tagNameMap.put(TAG_EXTENDER_MODEL, "Extender Model");
92 _tagNameMap.put(TAG_EXTENDER_FIRMWARE_VERSION, "Extender Firmware Version");
93 _tagNameMap.put(TAG_CONVERSION_LENS, "Conversion Lens");
94 _tagNameMap.put(TAG_FLASH_TYPE, "Flash Type");
95 _tagNameMap.put(TAG_FLASH_MODEL, "Flash Model");
96 _tagNameMap.put(TAG_FLASH_FIRMWARE_VERSION, "Flash Firmware Version");
97 _tagNameMap.put(TAG_FLASH_SERIAL_NUMBER, "Flash Serial Number");
98 }
99
100 public OlympusEquipmentMakernoteDirectory()
101 {
102 this.setDescriptor(new OlympusEquipmentMakernoteDescriptor(this));
103 }
104
105 @Override
106 @NotNull
107 public String getName()
108 {
109 return "Olympus Equipment";
110 }
111
112 @Override
113 @NotNull
114 protected HashMap<Integer, String> getTagNameMap()
115 {
116 return _tagNameMap;
117 }
118 }