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