source: josm/trunk/src/com/drew/metadata/exif/makernotes/KodakMakernoteDirectory.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.3 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 Kodak cameras.
30 *
31 * @author Drew Noakes https://drewnoakes.com
32 */
33@SuppressWarnings("WeakerAccess")
34public class KodakMakernoteDirectory extends Directory
35{
36 public final static int TAG_KODAK_MODEL = 0;
37 public final static int TAG_QUALITY = 9;
38 public final static int TAG_BURST_MODE = 10;
39 public final static int TAG_IMAGE_WIDTH = 12;
40 public final static int TAG_IMAGE_HEIGHT = 14;
41 public final static int TAG_YEAR_CREATED = 16;
42 public final static int TAG_MONTH_DAY_CREATED = 18;
43 public final static int TAG_TIME_CREATED = 20;
44 public final static int TAG_BURST_MODE_2 = 24;
45 public final static int TAG_SHUTTER_MODE = 27;
46 public final static int TAG_METERING_MODE = 28;
47 public final static int TAG_SEQUENCE_NUMBER = 29;
48 public final static int TAG_F_NUMBER = 30;
49 public final static int TAG_EXPOSURE_TIME = 32;
50 public final static int TAG_EXPOSURE_COMPENSATION = 36;
51 public final static int TAG_FOCUS_MODE = 56;
52 public final static int TAG_WHITE_BALANCE = 64;
53 public final static int TAG_FLASH_MODE = 92;
54 public final static int TAG_FLASH_FIRED = 93;
55 public final static int TAG_ISO_SETTING = 94;
56 public final static int TAG_ISO = 96;
57 public final static int TAG_TOTAL_ZOOM = 98;
58 public final static int TAG_DATE_TIME_STAMP = 100;
59 public final static int TAG_COLOR_MODE = 102;
60 public final static int TAG_DIGITAL_ZOOM = 104;
61 public final static int TAG_SHARPNESS = 107;
62
63 @NotNull
64 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
65
66 static
67 {
68 _tagNameMap.put(TAG_KODAK_MODEL, "Kodak Model");
69 _tagNameMap.put(TAG_QUALITY, "Quality");
70 _tagNameMap.put(TAG_BURST_MODE, "Burst Mode");
71 _tagNameMap.put(TAG_IMAGE_WIDTH, "Image Width");
72 _tagNameMap.put(TAG_IMAGE_HEIGHT, "Image Height");
73 _tagNameMap.put(TAG_YEAR_CREATED, "Year Created");
74 _tagNameMap.put(TAG_MONTH_DAY_CREATED, "Month/Day Created");
75 _tagNameMap.put(TAG_TIME_CREATED, "Time Created");
76 _tagNameMap.put(TAG_BURST_MODE_2, "Burst Mode 2");
77 _tagNameMap.put(TAG_SHUTTER_MODE, "Shutter Speed");
78 _tagNameMap.put(TAG_METERING_MODE, "Metering Mode");
79 _tagNameMap.put(TAG_SEQUENCE_NUMBER, "Sequence Number");
80 _tagNameMap.put(TAG_F_NUMBER, "F Number");
81 _tagNameMap.put(TAG_EXPOSURE_TIME, "Exposure Time");
82 _tagNameMap.put(TAG_EXPOSURE_COMPENSATION, "Exposure Compensation");
83 _tagNameMap.put(TAG_FOCUS_MODE, "Focus Mode");
84 _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
85 _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
86 _tagNameMap.put(TAG_FLASH_FIRED, "Flash Fired");
87 _tagNameMap.put(TAG_ISO_SETTING, "ISO Setting");
88 _tagNameMap.put(TAG_ISO, "ISO");
89 _tagNameMap.put(TAG_TOTAL_ZOOM, "Total Zoom");
90 _tagNameMap.put(TAG_DATE_TIME_STAMP, "Date/Time Stamp");
91 _tagNameMap.put(TAG_COLOR_MODE, "Color Mode");
92 _tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
93 _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
94 }
95
96 public KodakMakernoteDirectory()
97 {
98 this.setDescriptor(new KodakMakernoteDescriptor(this));
99 }
100
101 @Override
102 @NotNull
103 public String getName()
104 {
105 return "Kodak Makernote";
106 }
107
108 @Override
109 @NotNull
110 protected HashMap<Integer, String> getTagNameMap()
111 {
112 return _tagNameMap;
113 }
114}
Note: See TracBrowser for help on using the repository browser.