1 | /*
|
---|
2 | * Copyright 2002-2015 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 | package com.drew.metadata.exif.makernotes;
|
---|
22 |
|
---|
23 | import com.drew.lang.annotations.NotNull;
|
---|
24 | import com.drew.metadata.Directory;
|
---|
25 |
|
---|
26 | import java.util.HashMap;
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * The Olympus raw development 2 makernote is used by many manufacturers (Epson, Konica, Minolta and Agfa...), and as such contains some tags
|
---|
30 | * that appear specific to those manufacturers.
|
---|
31 | *
|
---|
32 | * @author Kevin Mott https://github.com/kwhopper
|
---|
33 | * @author Drew Noakes https://drewnoakes.com
|
---|
34 | */
|
---|
35 | @SuppressWarnings("WeakerAccess")
|
---|
36 | public class OlympusRawDevelopment2MakernoteDirectory extends Directory
|
---|
37 | {
|
---|
38 | public static final int TagRawDevVersion = 0x0000;
|
---|
39 | public static final int TagRawDevExposureBiasValue = 0x0100;
|
---|
40 | public static final int TagRawDevWhiteBalance = 0x0101;
|
---|
41 | public static final int TagRawDevWhiteBalanceValue = 0x0102;
|
---|
42 | public static final int TagRawDevWbFineAdjustment = 0x0103;
|
---|
43 | public static final int TagRawDevGrayPoint = 0x0104;
|
---|
44 | public static final int TagRawDevContrastValue = 0x0105;
|
---|
45 | public static final int TagRawDevSharpnessValue = 0x0106;
|
---|
46 | public static final int TagRawDevSaturationEmphasis = 0x0107;
|
---|
47 | public static final int TagRawDevMemoryColorEmphasis = 0x0108;
|
---|
48 | public static final int TagRawDevColorSpace = 0x0109;
|
---|
49 | public static final int TagRawDevNoiseReduction = 0x010a;
|
---|
50 | public static final int TagRawDevEngine = 0x010b;
|
---|
51 | public static final int TagRawDevPictureMode = 0x010c;
|
---|
52 | public static final int TagRawDevPmSaturation = 0x010d;
|
---|
53 | public static final int TagRawDevPmContrast = 0x010e;
|
---|
54 | public static final int TagRawDevPmSharpness = 0x010f;
|
---|
55 | public static final int TagRawDevPmBwFilter = 0x0110;
|
---|
56 | public static final int TagRawDevPmPictureTone = 0x0111;
|
---|
57 | public static final int TagRawDevGradation = 0x0112;
|
---|
58 | public static final int TagRawDevSaturation3 = 0x0113;
|
---|
59 | public static final int TagRawDevAutoGradation = 0x0119;
|
---|
60 | public static final int TagRawDevPmNoiseFilter = 0x0120;
|
---|
61 | public static final int TagRawDevArtFilter = 0x0121;
|
---|
62 |
|
---|
63 | @NotNull
|
---|
64 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
---|
65 |
|
---|
66 | static {
|
---|
67 | _tagNameMap.put(TagRawDevVersion, "Raw Dev Version");
|
---|
68 | _tagNameMap.put(TagRawDevExposureBiasValue, "Raw Dev Exposure Bias Value");
|
---|
69 | _tagNameMap.put(TagRawDevWhiteBalance, "Raw Dev White Balance");
|
---|
70 | _tagNameMap.put(TagRawDevWhiteBalanceValue, "Raw Dev White Balance Value");
|
---|
71 | _tagNameMap.put(TagRawDevWbFineAdjustment, "Raw Dev WB Fine Adjustment");
|
---|
72 | _tagNameMap.put(TagRawDevGrayPoint, "Raw Dev Gray Point");
|
---|
73 | _tagNameMap.put(TagRawDevContrastValue, "Raw Dev Contrast Value");
|
---|
74 | _tagNameMap.put(TagRawDevSharpnessValue, "Raw Dev Sharpness Value");
|
---|
75 | _tagNameMap.put(TagRawDevSaturationEmphasis, "Raw Dev Saturation Emphasis");
|
---|
76 | _tagNameMap.put(TagRawDevMemoryColorEmphasis, "Raw Dev Memory Color Emphasis");
|
---|
77 | _tagNameMap.put(TagRawDevColorSpace, "Raw Dev Color Space");
|
---|
78 | _tagNameMap.put(TagRawDevNoiseReduction, "Raw Dev Noise Reduction");
|
---|
79 | _tagNameMap.put(TagRawDevEngine, "Raw Dev Engine");
|
---|
80 | _tagNameMap.put(TagRawDevPictureMode, "Raw Dev Picture Mode");
|
---|
81 | _tagNameMap.put(TagRawDevPmSaturation, "Raw Dev PM Saturation");
|
---|
82 | _tagNameMap.put(TagRawDevPmContrast, "Raw Dev PM Contrast");
|
---|
83 | _tagNameMap.put(TagRawDevPmSharpness, "Raw Dev PM Sharpness");
|
---|
84 | _tagNameMap.put(TagRawDevPmBwFilter, "Raw Dev PM BW Filter");
|
---|
85 | _tagNameMap.put(TagRawDevPmPictureTone, "Raw Dev PM Picture Tone");
|
---|
86 | _tagNameMap.put(TagRawDevGradation, "Raw Dev Gradation");
|
---|
87 | _tagNameMap.put(TagRawDevSaturation3, "Raw Dev Saturation 3");
|
---|
88 | _tagNameMap.put(TagRawDevAutoGradation, "Raw Dev Auto Gradation");
|
---|
89 | _tagNameMap.put(TagRawDevPmNoiseFilter, "Raw Dev PM Noise Filter");
|
---|
90 | _tagNameMap.put(TagRawDevArtFilter, "Raw Dev Art Filter");
|
---|
91 | }
|
---|
92 |
|
---|
93 | public OlympusRawDevelopment2MakernoteDirectory()
|
---|
94 | {
|
---|
95 | this.setDescriptor(new OlympusRawDevelopment2MakernoteDescriptor(this));
|
---|
96 | }
|
---|
97 |
|
---|
98 | @Override
|
---|
99 | @NotNull
|
---|
100 | public String getName()
|
---|
101 | {
|
---|
102 | return "Olympus Raw Development 2";
|
---|
103 | }
|
---|
104 |
|
---|
105 | @Override
|
---|
106 | @NotNull
|
---|
107 | protected HashMap<Integer, String> getTagNameMap()
|
---|
108 | {
|
---|
109 | return _tagNameMap;
|
---|
110 | }
|
---|
111 | }
|
---|