source: josm/trunk/src/com/drew/metadata/exif/PanasonicRawWbInfo2Directory.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

  • Property svn:eol-style set to native
File size: 3.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 */
21
22package com.drew.metadata.exif;
23
24import com.drew.lang.annotations.NotNull;
25import com.drew.metadata.Directory;
26
27import java.util.HashMap;
28
29/**
30 * These tags can be found in Panasonic/Leica RAW, RW2 and RWL images. The index values are 'fake' but
31 * chosen specifically to make processing easier
32 *
33 * @author Kevin Mott https://github.com/kwhopper
34 * @author Drew Noakes https://drewnoakes.com
35 */
36@SuppressWarnings("WeakerAccess")
37public class PanasonicRawWbInfo2Directory extends Directory
38{
39 public static final int TagNumWbEntries = 0;
40
41 public static final int TagWbType1 = 1;
42 public static final int TagWbRgbLevels1 = 2;
43
44 public static final int TagWbType2 = 5;
45 public static final int TagWbRgbLevels2 = 6;
46
47 public static final int TagWbType3 = 9;
48 public static final int TagWbRgbLevels3 = 10;
49
50 public static final int TagWbType4 = 13;
51 public static final int TagWbRgbLevels4 = 14;
52
53 public static final int TagWbType5 = 17;
54 public static final int TagWbRgbLevels5 = 18;
55
56 public static final int TagWbType6 = 21;
57 public static final int TagWbRgbLevels6 = 22;
58
59 public static final int TagWbType7 = 25;
60 public static final int TagWbRgbLevels7 = 26;
61
62 @NotNull
63 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
64
65 static
66 {
67 _tagNameMap.put(TagNumWbEntries, "Num WB Entries");
68 _tagNameMap.put(TagNumWbEntries, "Num WB Entries");
69 _tagNameMap.put(TagWbType1, "WB Type 1");
70 _tagNameMap.put(TagWbRgbLevels1, "WB RGB Levels 1");
71 _tagNameMap.put(TagWbType2, "WB Type 2");
72 _tagNameMap.put(TagWbRgbLevels2, "WB RGB Levels 2");
73 _tagNameMap.put(TagWbType3, "WB Type 3");
74 _tagNameMap.put(TagWbRgbLevels3, "WB RGB Levels 3");
75 _tagNameMap.put(TagWbType4, "WB Type 4");
76 _tagNameMap.put(TagWbRgbLevels4, "WB RGB Levels 4");
77 _tagNameMap.put(TagWbType5, "WB Type 5");
78 _tagNameMap.put(TagWbRgbLevels5, "WB RGB Levels 5");
79 _tagNameMap.put(TagWbType6, "WB Type 6");
80 _tagNameMap.put(TagWbRgbLevels6, "WB RGB Levels 6");
81 _tagNameMap.put(TagWbType7, "WB Type 7");
82 _tagNameMap.put(TagWbRgbLevels7, "WB RGB Levels 7");
83 }
84
85 public PanasonicRawWbInfo2Directory()
86 {
87 this.setDescriptor(new PanasonicRawWbInfo2Descriptor(this));
88 }
89
90 @Override
91 @NotNull
92 public String getName()
93 {
94 return "PanasonicRaw WbInfo2";
95 }
96
97 @Override
98 @NotNull
99 protected HashMap<Integer, String> getTagNameMap()
100 {
101 return _tagNameMap;
102 }
103}
Note: See TracBrowser for help on using the repository browser.