source: josm/trunk/src/com/drew/metadata/exif/makernotes/PentaxMakernoteDirectory.java@ 15217

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

see #17848 - update to metadata-extractor 2.12.0

File size: 4.2 KB
Line 
1/*
2 * Copyright 2002-2019 Drew Noakes and contributors
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 Pentax and Asahi cameras.
30 *
31 * @author Drew Noakes https://drewnoakes.com
32 */
33@SuppressWarnings("WeakerAccess")
34public class PentaxMakernoteDirectory extends Directory
35{
36 /**
37 * 0 = Auto
38 * 1 = Night-scene
39 * 2 = Manual
40 * 4 = Multiple
41 */
42 public static final int TAG_CAPTURE_MODE = 0x0001;
43
44 /**
45 * 0 = Good
46 * 1 = Better
47 * 2 = Best
48 */
49 public static final int TAG_QUALITY_LEVEL = 0x0002;
50
51 /**
52 * 2 = Custom
53 * 3 = Auto
54 */
55 public static final int TAG_FOCUS_MODE = 0x0003;
56
57 /**
58 * 1 = Auto
59 * 2 = Flash on
60 * 4 = Flash off
61 * 6 = Red-eye Reduction
62 */
63 public static final int TAG_FLASH_MODE = 0x0004;
64
65 /**
66 * 0 = Auto
67 * 1 = Daylight
68 * 2 = Shade
69 * 3 = Tungsten
70 * 4 = Fluorescent
71 * 5 = Manual
72 */
73 public static final int TAG_WHITE_BALANCE = 0x0007;
74
75 /**
76 * (0 = Off)
77 */
78 public static final int TAG_DIGITAL_ZOOM = 0x000A;
79
80 /**
81 * 0 = Normal
82 * 1 = Soft
83 * 2 = Hard
84 */
85 public static final int TAG_SHARPNESS = 0x000B;
86
87 /**
88 * 0 = Normal
89 * 1 = Low
90 * 2 = High
91 */
92 public static final int TAG_CONTRAST = 0x000C;
93
94 /**
95 * 0 = Normal
96 * 1 = Low
97 * 2 = High
98 */
99 public static final int TAG_SATURATION = 0x000D;
100
101 /**
102 * 10 = ISO 100
103 * 16 = ISO 200
104 * 100 = ISO 100
105 * 200 = ISO 200
106 */
107 public static final int TAG_ISO_SPEED = 0x0014;
108
109 /**
110 * 1 = Normal
111 * 2 = Black & White
112 * 3 = Sepia
113 */
114 public static final int TAG_COLOUR = 0x0017;
115
116 /**
117 * See Print Image Matching for specification.
118 * http://www.ozhiker.com/electronics/pjmt/jpeg_info/pim.html
119 */
120 public static final int TAG_PRINT_IMAGE_MATCHING_INFO = 0x0E00;
121
122 /**
123 * (String).
124 */
125 public static final int TAG_TIME_ZONE = 0x1000;
126
127 /**
128 * (String).
129 */
130 public static final int TAG_DAYLIGHT_SAVINGS = 0x1001;
131
132 @NotNull
133 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
134
135 static
136 {
137 _tagNameMap.put(TAG_CAPTURE_MODE, "Capture Mode");
138 _tagNameMap.put(TAG_QUALITY_LEVEL, "Quality Level");
139 _tagNameMap.put(TAG_FOCUS_MODE, "Focus Mode");
140 _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
141 _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
142 _tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
143 _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
144 _tagNameMap.put(TAG_CONTRAST, "Contrast");
145 _tagNameMap.put(TAG_SATURATION, "Saturation");
146 _tagNameMap.put(TAG_ISO_SPEED, "ISO Speed");
147 _tagNameMap.put(TAG_COLOUR, "Colour");
148 _tagNameMap.put(TAG_PRINT_IMAGE_MATCHING_INFO, "Print Image Matching (PIM) Info");
149 _tagNameMap.put(TAG_TIME_ZONE, "Time Zone");
150 _tagNameMap.put(TAG_DAYLIGHT_SAVINGS, "Daylight Savings");
151 }
152
153 public PentaxMakernoteDirectory()
154 {
155 this.setDescriptor(new PentaxMakernoteDescriptor(this));
156 }
157
158 @Override
159 @NotNull
160 public String getName()
161 {
162 return "Pentax Makernote";
163 }
164
165 @Override
166 @NotNull
167 protected HashMap<Integer, String> getTagNameMap()
168 {
169 return _tagNameMap;
170 }
171}
Note: See TracBrowser for help on using the repository browser.