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

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

fix #15505 - update to metadata-extractor 2.10.1

File size: 4.0 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 */
21
22package com.drew.metadata.exif.makernotes;
23
24import com.drew.lang.annotations.NotNull;
25import com.drew.metadata.Directory;
26
27import java.util.HashMap;
28
29/**
30 * Describes tags specific to Sigma / Foveon cameras.
31 *
32 * @author Drew Noakes https://drewnoakes.com
33 */
34@SuppressWarnings("WeakerAccess")
35public class SigmaMakernoteDirectory extends Directory
36{
37 public static final int TAG_SERIAL_NUMBER = 0x2;
38 public static final int TAG_DRIVE_MODE = 0x3;
39 public static final int TAG_RESOLUTION_MODE = 0x4;
40 public static final int TAG_AUTO_FOCUS_MODE = 0x5;
41 public static final int TAG_FOCUS_SETTING = 0x6;
42 public static final int TAG_WHITE_BALANCE = 0x7;
43 public static final int TAG_EXPOSURE_MODE = 0x8;
44 public static final int TAG_METERING_MODE = 0x9;
45 public static final int TAG_LENS_RANGE = 0xa;
46 public static final int TAG_COLOR_SPACE = 0xb;
47 public static final int TAG_EXPOSURE = 0xc;
48 public static final int TAG_CONTRAST = 0xd;
49 public static final int TAG_SHADOW = 0xe;
50 public static final int TAG_HIGHLIGHT = 0xf;
51 public static final int TAG_SATURATION = 0x10;
52 public static final int TAG_SHARPNESS = 0x11;
53 public static final int TAG_FILL_LIGHT = 0x12;
54 public static final int TAG_COLOR_ADJUSTMENT = 0x14;
55 public static final int TAG_ADJUSTMENT_MODE = 0x15;
56 public static final int TAG_QUALITY = 0x16;
57 public static final int TAG_FIRMWARE = 0x17;
58 public static final int TAG_SOFTWARE = 0x18;
59 public static final int TAG_AUTO_BRACKET = 0x19;
60
61 @NotNull
62 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
63
64 static
65 {
66 _tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number");
67 _tagNameMap.put(TAG_DRIVE_MODE, "Drive Mode");
68 _tagNameMap.put(TAG_RESOLUTION_MODE, "Resolution Mode");
69 _tagNameMap.put(TAG_AUTO_FOCUS_MODE, "Auto Focus Mode");
70 _tagNameMap.put(TAG_FOCUS_SETTING, "Focus Setting");
71 _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
72 _tagNameMap.put(TAG_EXPOSURE_MODE, "Exposure Mode");
73 _tagNameMap.put(TAG_METERING_MODE, "Metering Mode");
74 _tagNameMap.put(TAG_LENS_RANGE, "Lens Range");
75 _tagNameMap.put(TAG_COLOR_SPACE, "Color Space");
76 _tagNameMap.put(TAG_EXPOSURE, "Exposure");
77 _tagNameMap.put(TAG_CONTRAST, "Contrast");
78 _tagNameMap.put(TAG_SHADOW, "Shadow");
79 _tagNameMap.put(TAG_HIGHLIGHT, "Highlight");
80 _tagNameMap.put(TAG_SATURATION, "Saturation");
81 _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
82 _tagNameMap.put(TAG_FILL_LIGHT, "Fill Light");
83 _tagNameMap.put(TAG_COLOR_ADJUSTMENT, "Color Adjustment");
84 _tagNameMap.put(TAG_ADJUSTMENT_MODE, "Adjustment Mode");
85 _tagNameMap.put(TAG_QUALITY, "Quality");
86 _tagNameMap.put(TAG_FIRMWARE, "Firmware");
87 _tagNameMap.put(TAG_SOFTWARE, "Software");
88 _tagNameMap.put(TAG_AUTO_BRACKET, "Auto Bracket");
89 }
90
91
92 public SigmaMakernoteDirectory()
93 {
94 this.setDescriptor(new SigmaMakernoteDescriptor(this));
95 }
96
97 @Override
98 @NotNull
99 public String getName()
100 {
101 return "Sigma Makernote";
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.