source: josm/trunk/src/com/drew/metadata/exif/makernotes/CasioType1MakernoteDirectory.java@ 13500

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

fix #15505 - update to metadata-extractor 2.10.1

File size: 4.0 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 Casio (type 1) cameras.
30 *
31 * A standard TIFF IFD directory but always uses Motorola (Big-Endian) Byte Alignment.
32 * Makernote data begins immediately (no header).
33 *
34 * @author Drew Noakes https://drewnoakes.com
35 */
36@SuppressWarnings("WeakerAccess")
37public class CasioType1MakernoteDirectory extends Directory
38{
39 public static final int TAG_RECORDING_MODE = 0x0001;
40 public static final int TAG_QUALITY = 0x0002;
41 public static final int TAG_FOCUSING_MODE = 0x0003;
42 public static final int TAG_FLASH_MODE = 0x0004;
43 public static final int TAG_FLASH_INTENSITY = 0x0005;
44 public static final int TAG_OBJECT_DISTANCE = 0x0006;
45 public static final int TAG_WHITE_BALANCE = 0x0007;
46 public static final int TAG_UNKNOWN_1 = 0x0008;
47 public static final int TAG_UNKNOWN_2 = 0x0009;
48 public static final int TAG_DIGITAL_ZOOM = 0x000A;
49 public static final int TAG_SHARPNESS = 0x000B;
50 public static final int TAG_CONTRAST = 0x000C;
51 public static final int TAG_SATURATION = 0x000D;
52 public static final int TAG_UNKNOWN_3 = 0x000E;
53 public static final int TAG_UNKNOWN_4 = 0x000F;
54 public static final int TAG_UNKNOWN_5 = 0x0010;
55 public static final int TAG_UNKNOWN_6 = 0x0011;
56 public static final int TAG_UNKNOWN_7 = 0x0012;
57 public static final int TAG_UNKNOWN_8 = 0x0013;
58 public static final int TAG_CCD_SENSITIVITY = 0x0014;
59
60 @NotNull
61 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
62
63 static
64 {
65 _tagNameMap.put(TAG_CCD_SENSITIVITY, "CCD Sensitivity");
66 _tagNameMap.put(TAG_CONTRAST, "Contrast");
67 _tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
68 _tagNameMap.put(TAG_FLASH_INTENSITY, "Flash Intensity");
69 _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
70 _tagNameMap.put(TAG_FOCUSING_MODE, "Focusing Mode");
71 _tagNameMap.put(TAG_OBJECT_DISTANCE, "Object Distance");
72 _tagNameMap.put(TAG_QUALITY, "Quality");
73 _tagNameMap.put(TAG_RECORDING_MODE, "Recording Mode");
74 _tagNameMap.put(TAG_SATURATION, "Saturation");
75 _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
76 _tagNameMap.put(TAG_UNKNOWN_1, "Makernote Unknown 1");
77 _tagNameMap.put(TAG_UNKNOWN_2, "Makernote Unknown 2");
78 _tagNameMap.put(TAG_UNKNOWN_3, "Makernote Unknown 3");
79 _tagNameMap.put(TAG_UNKNOWN_4, "Makernote Unknown 4");
80 _tagNameMap.put(TAG_UNKNOWN_5, "Makernote Unknown 5");
81 _tagNameMap.put(TAG_UNKNOWN_6, "Makernote Unknown 6");
82 _tagNameMap.put(TAG_UNKNOWN_7, "Makernote Unknown 7");
83 _tagNameMap.put(TAG_UNKNOWN_8, "Makernote Unknown 8");
84 _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
85 }
86
87 public CasioType1MakernoteDirectory()
88 {
89 this.setDescriptor(new CasioType1MakernoteDescriptor(this));
90 }
91
92 @Override
93 @NotNull
94 public String getName()
95 {
96 return "Casio Makernote";
97 }
98
99 @Override
100 @NotNull
101 protected HashMap<Integer, String> getTagNameMap()
102 {
103 return _tagNameMap;
104 }
105}
Note: See TracBrowser for help on using the repository browser.