source: josm/trunk/src/com/drew/metadata/exif/PanasonicRawWbInfoDirectory.java@ 13376

Last change on this file since 13376 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.2 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 PanasonicRawWbInfoDirectory extends Directory
38{
39 public static final int TagNumWbEntries = 0;
40
41 public static final int TagWbType1 = 1;
42 public static final int TagWbRbLevels1 = 2;
43
44 public static final int TagWbType2 = 4;
45 public static final int TagWbRbLevels2 = 5;
46
47 public static final int TagWbType3 = 7;
48 public static final int TagWbRbLevels3 = 8;
49
50 public static final int TagWbType4 = 10;
51 public static final int TagWbRbLevels4 = 11;
52
53 public static final int TagWbType5 = 13;
54 public static final int TagWbRbLevels5 = 14;
55
56 public static final int TagWbType6 = 16;
57 public static final int TagWbRbLevels6 = 17;
58
59 public static final int TagWbType7 = 19;
60 public static final int TagWbRbLevels7 = 20;
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(TagWbType1, "WB Type 1");
69 _tagNameMap.put(TagWbRbLevels1, "WB RGB Levels 1");
70 _tagNameMap.put(TagWbType2, "WB Type 2");
71 _tagNameMap.put(TagWbRbLevels2, "WB RGB Levels 2");
72 _tagNameMap.put(TagWbType3, "WB Type 3");
73 _tagNameMap.put(TagWbRbLevels3, "WB RGB Levels 3");
74 _tagNameMap.put(TagWbType4, "WB Type 4");
75 _tagNameMap.put(TagWbRbLevels4, "WB RGB Levels 4");
76 _tagNameMap.put(TagWbType5, "WB Type 5");
77 _tagNameMap.put(TagWbRbLevels5, "WB RGB Levels 5");
78 _tagNameMap.put(TagWbType6, "WB Type 6");
79 _tagNameMap.put(TagWbRbLevels6, "WB RGB Levels 6");
80 _tagNameMap.put(TagWbType7, "WB Type 7");
81 _tagNameMap.put(TagWbRbLevels7, "WB RGB Levels 7");
82 }
83
84 public PanasonicRawWbInfoDirectory()
85 {
86 this.setDescriptor(new PanasonicRawWbInfoDescriptor(this));
87 }
88
89 @Override
90 @NotNull
91 public String getName()
92 {
93 return "PanasonicRaw WbInfo";
94 }
95
96 @Override
97 @NotNull
98 protected HashMap<Integer, String> getTagNameMap()
99 {
100 return _tagNameMap;
101 }
102}
Note: See TracBrowser for help on using the repository browser.