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

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

fix #15505 - update to metadata-extractor 2.10.1

File size: 3.8 KB
Line 
1/*
2 * Copyright 2002-2017 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 * Describes tags specific to certain Leica cameras.
30 * <p>
31 * Tag reference from: http://gvsoft.homedns.org/exif/makernote-leica-type1.html
32 *
33 * @author Drew Noakes https://drewnoakes.com
34 */
35@SuppressWarnings("WeakerAccess")
36public class LeicaMakernoteDirectory extends Directory
37{
38 public static final int TAG_QUALITY = 0x0300;
39 public static final int TAG_USER_PROFILE = 0x0302;
40 public static final int TAG_SERIAL_NUMBER = 0x0303;
41 public static final int TAG_WHITE_BALANCE = 0x0304;
42
43 public static final int TAG_LENS_TYPE = 0x0310;
44 public static final int TAG_EXTERNAL_SENSOR_BRIGHTNESS_VALUE = 0x0311;
45 public static final int TAG_MEASURED_LV = 0x0312;
46 public static final int TAG_APPROXIMATE_F_NUMBER = 0x0313;
47
48 public static final int TAG_CAMERA_TEMPERATURE = 0x0320;
49 public static final int TAG_COLOR_TEMPERATURE = 0x0321;
50 public static final int TAG_WB_RED_LEVEL = 0x0322;
51 public static final int TAG_WB_GREEN_LEVEL = 0x0323;
52 public static final int TAG_WB_BLUE_LEVEL = 0x0324;
53
54 public static final int TAG_CCD_VERSION = 0x0330;
55 public static final int TAG_CCD_BOARD_VERSION = 0x0331;
56 public static final int TAG_CONTROLLER_BOARD_VERSION = 0x0332;
57 public static final int TAG_M16_C_VERSION = 0x0333;
58
59 public static final int TAG_IMAGE_ID_NUMBER = 0x0340;
60
61 @NotNull
62 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
63
64 static
65 {
66 _tagNameMap.put(TAG_QUALITY, "Quality");
67 _tagNameMap.put(TAG_USER_PROFILE, "User Profile");
68 _tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number");
69 _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
70
71 _tagNameMap.put(TAG_LENS_TYPE, "Lens Type");
72 _tagNameMap.put(TAG_EXTERNAL_SENSOR_BRIGHTNESS_VALUE, "External Sensor Brightness Value");
73 _tagNameMap.put(TAG_MEASURED_LV, "Measured LV");
74 _tagNameMap.put(TAG_APPROXIMATE_F_NUMBER, "Approximate F Number");
75
76 _tagNameMap.put(TAG_CAMERA_TEMPERATURE, "Camera Temperature");
77 _tagNameMap.put(TAG_COLOR_TEMPERATURE, "Color Temperature");
78 _tagNameMap.put(TAG_WB_RED_LEVEL, "WB Red Level");
79 _tagNameMap.put(TAG_WB_GREEN_LEVEL, "WB Green Level");
80 _tagNameMap.put(TAG_WB_BLUE_LEVEL, "WB Blue Level");
81
82 _tagNameMap.put(TAG_CCD_VERSION, "CCD Version");
83 _tagNameMap.put(TAG_CCD_BOARD_VERSION, "CCD Board Version");
84 _tagNameMap.put(TAG_CONTROLLER_BOARD_VERSION, "Controller Board Version");
85 _tagNameMap.put(TAG_M16_C_VERSION, "M16 C Version");
86
87 _tagNameMap.put(TAG_IMAGE_ID_NUMBER, "Image ID Number");
88 }
89
90 public LeicaMakernoteDirectory()
91 {
92 this.setDescriptor(new LeicaMakernoteDescriptor(this));
93 }
94
95 @Override
96 @NotNull
97 public String getName()
98 {
99 return "Leica Makernote";
100 }
101
102 @Override
103 @NotNull
104 protected HashMap<Integer, String> getTagNameMap()
105 {
106 return _tagNameMap;
107 }
108}
Note: See TracBrowser for help on using the repository browser.