| [13061] | 1 | /*
|
|---|
| [15217] | 2 | * Copyright 2002-2019 Drew Noakes and contributors
|
|---|
| [13061] | 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 |
|
|---|
| 22 | package com.drew.metadata.exif;
|
|---|
| 23 |
|
|---|
| 24 | import com.drew.lang.annotations.NotNull;
|
|---|
| 25 | import com.drew.metadata.Directory;
|
|---|
| 26 |
|
|---|
| 27 | import 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")
|
|---|
| 37 | public 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 | }
|
|---|