source: josm/trunk/src/com/drew/metadata/exif/PanasonicRawIFD0Directory.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: 6.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 */
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 are found in IFD0 of Panasonic/Leica RAW, RW2 and RWL images.
31 *
32 * @author Kevin Mott https://github.com/kwhopper
33 * @author Drew Noakes https://drewnoakes.com
34 */
35@SuppressWarnings("WeakerAccess")
36public class PanasonicRawIFD0Directory extends Directory
37{
38 public static final int TagPanasonicRawVersion = 0x0001;
39 public static final int TagSensorWidth = 0x0002;
40 public static final int TagSensorHeight = 0x0003;
41 public static final int TagSensorTopBorder = 0x0004;
42 public static final int TagSensorLeftBorder = 0x0005;
43 public static final int TagSensorBottomBorder = 0x0006;
44 public static final int TagSensorRightBorder = 0x0007;
45
46 public static final int TagBlackLevel1 = 0x0008;
47 public static final int TagBlackLevel2 = 0x0009;
48 public static final int TagBlackLevel3 = 0x000a;
49 public static final int TagLinearityLimitRed = 0x000e;
50 public static final int TagLinearityLimitGreen = 0x000f;
51 public static final int TagLinearityLimitBlue = 0x0010;
52 public static final int TagRedBalance = 0x0011;
53 public static final int TagBlueBalance = 0x0012;
54 public static final int TagWbInfo = 0x0013;
55
56 public static final int TagIso = 0x0017;
57 public static final int TagHighIsoMultiplierRed = 0x0018;
58 public static final int TagHighIsoMultiplierGreen = 0x0019;
59 public static final int TagHighIsoMultiplierBlue = 0x001a;
60 public static final int TagBlackLevelRed = 0x001c;
61 public static final int TagBlackLevelGreen = 0x001d;
62 public static final int TagBlackLevelBlue = 0x001e;
63 public static final int TagWbRedLevel = 0x0024;
64 public static final int TagWbGreenLevel = 0x0025;
65 public static final int TagWbBlueLevel = 0x0026;
66
67 public static final int TagWbInfo2 = 0x0027;
68
69 public static final int TagJpgFromRaw = 0x002e;
70
71 public static final int TagCropTop = 0x002f;
72 public static final int TagCropLeft = 0x0030;
73 public static final int TagCropBottom = 0x0031;
74 public static final int TagCropRight = 0x0032;
75
76 public static final int TagMake = 0x010f;
77 public static final int TagModel = 0x0110;
78 public static final int TagStripOffsets = 0x0111;
79 public static final int TagOrientation = 0x0112;
80 public static final int TagRowsPerStrip = 0x0116;
81 public static final int TagStripByteCounts = 0x0117;
82 public static final int TagRawDataOffset = 0x0118;
83
84 public static final int TagDistortionInfo = 0x0119;
85
86 public PanasonicRawIFD0Directory()
87 {
88 this.setDescriptor(new PanasonicRawIFD0Descriptor(this));
89 }
90
91 @NotNull
92 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
93
94 static
95 {
96 _tagNameMap.put(TagPanasonicRawVersion, "Panasonic Raw Version");
97 _tagNameMap.put(TagSensorWidth, "Sensor Width");
98 _tagNameMap.put(TagSensorHeight, "Sensor Height");
99 _tagNameMap.put(TagSensorTopBorder, "Sensor Top Border");
100 _tagNameMap.put(TagSensorLeftBorder, "Sensor Left Border");
101 _tagNameMap.put(TagSensorBottomBorder, "Sensor Bottom Border");
102 _tagNameMap.put(TagSensorRightBorder, "Sensor Right Border");
103
104 _tagNameMap.put(TagBlackLevel1, "Black Level 1");
105 _tagNameMap.put(TagBlackLevel2, "Black Level 2");
106 _tagNameMap.put(TagBlackLevel3, "Black Level 3");
107 _tagNameMap.put(TagLinearityLimitRed, "Linearity Limit Red");
108 _tagNameMap.put(TagLinearityLimitGreen, "Linearity Limit Green");
109 _tagNameMap.put(TagLinearityLimitBlue, "Linearity Limit Blue");
110 _tagNameMap.put(TagRedBalance, "Red Balance");
111 _tagNameMap.put(TagBlueBalance, "Blue Balance");
112
113 _tagNameMap.put(TagIso, "ISO");
114 _tagNameMap.put(TagHighIsoMultiplierRed, "High ISO Multiplier Red");
115 _tagNameMap.put(TagHighIsoMultiplierGreen, "High ISO Multiplier Green");
116 _tagNameMap.put(TagHighIsoMultiplierBlue, "High ISO Multiplier Blue");
117 _tagNameMap.put(TagBlackLevelRed, "Black Level Red");
118 _tagNameMap.put(TagBlackLevelGreen, "Black Level Green");
119 _tagNameMap.put(TagBlackLevelBlue, "Black Level Blue");
120 _tagNameMap.put(TagWbRedLevel, "WB Red Level");
121 _tagNameMap.put(TagWbGreenLevel, "WB Green Level");
122 _tagNameMap.put(TagWbBlueLevel, "WB Blue Level");
123
124 _tagNameMap.put(TagJpgFromRaw, "Jpg From Raw");
125
126 _tagNameMap.put(TagCropTop, "Crop Top");
127 _tagNameMap.put(TagCropLeft, "Crop Left");
128 _tagNameMap.put(TagCropBottom, "Crop Bottom");
129 _tagNameMap.put(TagCropRight, "Crop Right");
130
131 _tagNameMap.put(TagMake, "Make");
132 _tagNameMap.put(TagModel, "Model");
133 _tagNameMap.put(TagStripOffsets, "Strip Offsets");
134 _tagNameMap.put(TagOrientation, "Orientation");
135 _tagNameMap.put(TagRowsPerStrip, "Rows Per Strip");
136 _tagNameMap.put(TagStripByteCounts, "Strip Byte Counts");
137 _tagNameMap.put(TagRawDataOffset, "Raw Data Offset");
138 }
139
140 @Override
141 @NotNull
142 public String getName()
143 {
144 return "PanasonicRaw Exif IFD0";
145 }
146
147 @Override
148 @NotNull
149 protected HashMap<Integer, String> getTagNameMap()
150 {
151 return _tagNameMap;
152 }
153}
Note: See TracBrowser for help on using the repository browser.