Debian Codegraph @

src/com/drew/metadata/exif/makernotes/SanyoMakernoteDirectory.java

raw symbols SCIP
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 */
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 Sanyo cameras.
31 *
32 * @author Drew Noakes https://drewnoakes.com
33 */
34 @SuppressWarnings("WeakerAccess")
35 public class SanyoMakernoteDirectory extends Directory
36 {
37 public static final int TAG_MAKERNOTE_OFFSET = 0x00ff;
38
39 public static final int TAG_SANYO_THUMBNAIL = 0x0100;
40
41 public static final int TAG_SPECIAL_MODE = 0x0200;
42 public static final int TAG_SANYO_QUALITY = 0x0201;
43 public static final int TAG_MACRO = 0x0202;
44 public static final int TAG_DIGITAL_ZOOM = 0x0204;
45 public static final int TAG_SOFTWARE_VERSION = 0x0207;
46 public static final int TAG_PICT_INFO = 0x0208;
47 public static final int TAG_CAMERA_ID = 0x0209;
48 public static final int TAG_SEQUENTIAL_SHOT = 0x020e;
49 public static final int TAG_WIDE_RANGE = 0x020f;
50 public static final int TAG_COLOR_ADJUSTMENT_MODE = 0x0210;
51 public static final int TAG_QUICK_SHOT = 0x0213;
52 public static final int TAG_SELF_TIMER = 0x0214;
53 public static final int TAG_VOICE_MEMO = 0x0216;
54 public static final int TAG_RECORD_SHUTTER_RELEASE = 0x0217;
55 public static final int TAG_FLICKER_REDUCE = 0x0218;
56 public static final int TAG_OPTICAL_ZOOM_ON = 0x0219;
57 public static final int TAG_DIGITAL_ZOOM_ON = 0x021b;
58 public static final int TAG_LIGHT_SOURCE_SPECIAL = 0x021d;
59 public static final int TAG_RESAVED = 0x021e;
60 public static final int TAG_SCENE_SELECT = 0x021f;
61 public static final int TAG_MANUAL_FOCUS_DISTANCE_OR_FACE_INFO = 0x0223;
62 public static final int TAG_SEQUENCE_SHOT_INTERVAL = 0x0224;
63 public static final int TAG_FLASH_MODE = 0x0225;
64
65 public static final int TAG_PRINT_IMAGE_MATCHING_INFO = 0x0E00;
66
67 public static final int TAG_DATA_DUMP = 0x0f00;
68
69 @NotNull
70 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
71
72 static
73 {
74 _tagNameMap.put(TAG_MAKERNOTE_OFFSET, "Makernote Offset");
75
76 _tagNameMap.put(TAG_SANYO_THUMBNAIL, "Sanyo Thumbnail");
77
78 _tagNameMap.put(TAG_SPECIAL_MODE, "Special Mode");
79 _tagNameMap.put(TAG_SANYO_QUALITY, "Sanyo Quality");
80 _tagNameMap.put(TAG_MACRO, "Macro");
81 _tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
82 _tagNameMap.put(TAG_SOFTWARE_VERSION, "Software Version");
83 _tagNameMap.put(TAG_PICT_INFO, "Pict Info");
84 _tagNameMap.put(TAG_CAMERA_ID, "Camera ID");
85 _tagNameMap.put(TAG_SEQUENTIAL_SHOT, "Sequential Shot");
86 _tagNameMap.put(TAG_WIDE_RANGE, "Wide Range");
87 _tagNameMap.put(TAG_COLOR_ADJUSTMENT_MODE, "Color Adjustment Node");
88 _tagNameMap.put(TAG_QUICK_SHOT, "Quick Shot");
89 _tagNameMap.put(TAG_SELF_TIMER, "Self Timer");
90 _tagNameMap.put(TAG_VOICE_MEMO, "Voice Memo");
91 _tagNameMap.put(TAG_RECORD_SHUTTER_RELEASE, "Record Shutter Release");
92 _tagNameMap.put(TAG_FLICKER_REDUCE, "Flicker Reduce");
93 _tagNameMap.put(TAG_OPTICAL_ZOOM_ON, "Optical Zoom On");
94 _tagNameMap.put(TAG_DIGITAL_ZOOM_ON, "Digital Zoom On");
95 _tagNameMap.put(TAG_LIGHT_SOURCE_SPECIAL, "Light Source Special");
96 _tagNameMap.put(TAG_RESAVED, "Resaved");
97 _tagNameMap.put(TAG_SCENE_SELECT, "Scene Select");
98 _tagNameMap.put(TAG_MANUAL_FOCUS_DISTANCE_OR_FACE_INFO, "Manual Focus Distance or Face Info");
99 _tagNameMap.put(TAG_SEQUENCE_SHOT_INTERVAL, "Sequence Shot Interval");
100 _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
101
102 _tagNameMap.put(TAG_PRINT_IMAGE_MATCHING_INFO, "Print IM");
103
104 _tagNameMap.put(TAG_DATA_DUMP, "Data Dump");
105 }
106
107 public SanyoMakernoteDirectory()
108 {
109 this.setDescriptor(new SanyoMakernoteDescriptor(this));
110 }
111
112 @Override
113 @NotNull
114 public String getName()
115 {
116 return "Sanyo Makernote";
117 }
118
119 @Override
120 @NotNull
121 protected HashMap<Integer, String> getTagNameMap()
122 {
123 return _tagNameMap;
124 }
125 }