source: josm/trunk/src/com/drew/metadata/exif/makernotes/ReconyxUltraFireMakernoteDirectory.java@ 13722

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

fix #15505 - update to metadata-extractor 2.10.1

  • Property svn:eol-style set to native
File size: 4.4 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 Reconyx UltraFire cameras.
31 *
32 * Reconyx uses a fixed makernote block. Tag values are the byte index of the tag within the makernote.
33 * @author Todd West http://cascadescarnivoreproject.blogspot.com
34 */
35@SuppressWarnings("WeakerAccess")
36public class ReconyxUltraFireMakernoteDirectory extends Directory
37{
38 /**
39 * Version number used for identifying makernotes from Reconyx UltraFire cameras.
40 */
41 public static final int MAKERNOTE_ID = 0x00010000;
42
43 /**
44 * Version number used for identifying the public portion of makernotes from Reconyx UltraFire cameras.
45 */
46 public static final int MAKERNOTE_PUBLIC_ID = 0x07f10001;
47
48 public static final int TAG_LABEL = 0;
49 public static final int TAG_MAKERNOTE_ID = 10;
50 public static final int TAG_MAKERNOTE_SIZE = 14;
51 public static final int TAG_MAKERNOTE_PUBLIC_ID = 18;
52 public static final int TAG_MAKERNOTE_PUBLIC_SIZE = 22;
53 public static final int TAG_CAMERA_VERSION = 24;
54 public static final int TAG_UIB_VERSION = 31;
55 public static final int TAG_BTL_VERSION = 38;
56 public static final int TAG_PEX_VERSION = 45;
57 public static final int TAG_EVENT_TYPE = 52;
58 public static final int TAG_SEQUENCE = 53;
59 public static final int TAG_EVENT_NUMBER = 55;
60 public static final int TAG_DATE_TIME_ORIGINAL = 59;
61 public static final int TAG_DAY_OF_WEEK = 66;
62 public static final int TAG_MOON_PHASE = 67;
63 public static final int TAG_AMBIENT_TEMPERATURE_FAHRENHEIT = 68;
64 public static final int TAG_AMBIENT_TEMPERATURE = 70;
65 public static final int TAG_FLASH = 72;
66 public static final int TAG_BATTERY_VOLTAGE = 73;
67 public static final int TAG_SERIAL_NUMBER = 75;
68 public static final int TAG_USER_LABEL = 80;
69
70 @NotNull
71 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
72
73 static
74 {
75 _tagNameMap.put(TAG_LABEL, "Makernote Label");
76 _tagNameMap.put(TAG_MAKERNOTE_ID, "Makernote ID");
77 _tagNameMap.put(TAG_MAKERNOTE_SIZE, "Makernote Size");
78 _tagNameMap.put(TAG_MAKERNOTE_PUBLIC_ID, "Makernote Public ID");
79 _tagNameMap.put(TAG_MAKERNOTE_PUBLIC_SIZE, "Makernote Public Size");
80 _tagNameMap.put(TAG_CAMERA_VERSION, "Camera Version");
81 _tagNameMap.put(TAG_UIB_VERSION, "Uib Version");
82 _tagNameMap.put(TAG_BTL_VERSION, "Btl Version");
83 _tagNameMap.put(TAG_PEX_VERSION, "Pex Version");
84 _tagNameMap.put(TAG_EVENT_TYPE, "Event Type");
85 _tagNameMap.put(TAG_SEQUENCE, "Sequence");
86 _tagNameMap.put(TAG_EVENT_NUMBER, "Event Number");
87 _tagNameMap.put(TAG_DATE_TIME_ORIGINAL, "Date/Time Original");
88 _tagNameMap.put(TAG_DAY_OF_WEEK, "Day of Week");
89 _tagNameMap.put(TAG_MOON_PHASE, "Moon Phase");
90 _tagNameMap.put(TAG_AMBIENT_TEMPERATURE_FAHRENHEIT, "Ambient Temperature Fahrenheit");
91 _tagNameMap.put(TAG_AMBIENT_TEMPERATURE, "Ambient Temperature");
92 _tagNameMap.put(TAG_FLASH, "Flash");
93 _tagNameMap.put(TAG_BATTERY_VOLTAGE, "Battery Voltage");
94 _tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number");
95 _tagNameMap.put(TAG_USER_LABEL, "User Label");
96 }
97
98 public ReconyxUltraFireMakernoteDirectory()
99 {
100 this.setDescriptor(new ReconyxUltraFireMakernoteDescriptor(this));
101 }
102
103 @Override
104 @NotNull
105 public String getName()
106 {
107 return "Reconyx UltraFire Makernote";
108 }
109
110 @Override
111 @NotNull
112 protected HashMap<Integer, String> getTagNameMap()
113 {
114 return _tagNameMap;
115 }
116}
Note: See TracBrowser for help on using the repository browser.