1 | /*
|
---|
2 | * Copyright 2002-2012 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 | * http://drewnoakes.com/code/exif/
|
---|
19 | * http://code.google.com/p/metadata-extractor/
|
---|
20 | */
|
---|
21 | package com.drew.metadata.exif;
|
---|
22 |
|
---|
23 | import com.drew.lang.annotations.NotNull;
|
---|
24 | import com.drew.metadata.Directory;
|
---|
25 |
|
---|
26 | import java.util.HashMap;
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Describes tags specific to Sony cameras that use the Sony Type 1 makernote tags.
|
---|
30 | *
|
---|
31 | * @author Drew Noakes http://drewnoakes.com
|
---|
32 | */
|
---|
33 | public class SonyType1MakernoteDirectory extends Directory
|
---|
34 | {
|
---|
35 | public static final int TAG_PRINT_IMAGE_MATCHING_INFO = 0x0E00;
|
---|
36 | public static final int TAG_PREVIEW_IMAGE = 0x2001;
|
---|
37 | public static final int TAG_COLOR_MODE_SETTING = 0xb020;
|
---|
38 | public static final int TAG_COLOR_TEMPERATURE = 0xb021;
|
---|
39 | public static final int TAG_SCENE_MODE = 0xb023;
|
---|
40 | public static final int TAG_ZONE_MATCHING = 0xb024;
|
---|
41 | public static final int TAG_DYNAMIC_RANGE_OPTIMISER = 0xb025;
|
---|
42 | public static final int TAG_IMAGE_STABILISATION = 0xb026;
|
---|
43 | public static final int TAG_LENS_ID = 0xb027;
|
---|
44 | public static final int TAG_MINOLTA_MAKER_NOTE = 0xb028;
|
---|
45 | public static final int TAG_COLOR_MODE = 0xb029;
|
---|
46 | public static final int TAG_MACRO = 0xb040;
|
---|
47 | public static final int TAG_EXPOSURE_MODE = 0xb041;
|
---|
48 | public static final int TAG_QUALITY = 0xb047;
|
---|
49 | public static final int TAG_ANTI_BLUR = 0xb04B;
|
---|
50 | public static final int TAG_LONG_EXPOSURE_NOISE_REDUCTION = 0xb04E;
|
---|
51 | public static final int TAG_NO_PRINT = 0xFFFF;
|
---|
52 |
|
---|
53 | @NotNull
|
---|
54 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
---|
55 |
|
---|
56 | static
|
---|
57 | {
|
---|
58 | _tagNameMap.put(TAG_PRINT_IMAGE_MATCHING_INFO, "Print Image Matching Info");
|
---|
59 | _tagNameMap.put(TAG_PREVIEW_IMAGE, "Preview Image");
|
---|
60 | _tagNameMap.put(TAG_COLOR_MODE_SETTING, "Color Mode Setting");
|
---|
61 | _tagNameMap.put(TAG_COLOR_TEMPERATURE, "Color Temperature");
|
---|
62 | _tagNameMap.put(TAG_SCENE_MODE, "Scene Mode");
|
---|
63 | _tagNameMap.put(TAG_ZONE_MATCHING, "Zone Matching");
|
---|
64 | _tagNameMap.put(TAG_DYNAMIC_RANGE_OPTIMISER, "Dynamic Range Optimizer");
|
---|
65 | _tagNameMap.put(TAG_IMAGE_STABILISATION, "Image Stabilisation");
|
---|
66 | _tagNameMap.put(TAG_LENS_ID, "Lens ID");
|
---|
67 | _tagNameMap.put(TAG_MINOLTA_MAKER_NOTE, "Minolta Maker Note");
|
---|
68 | _tagNameMap.put(TAG_COLOR_MODE, "Color Mode");
|
---|
69 | _tagNameMap.put(TAG_MACRO, "Macro");
|
---|
70 | _tagNameMap.put(TAG_EXPOSURE_MODE, "Exposure Mode");
|
---|
71 | _tagNameMap.put(TAG_QUALITY, "Quality");
|
---|
72 | _tagNameMap.put(TAG_ANTI_BLUR, "Anti Blur");
|
---|
73 | _tagNameMap.put(TAG_LONG_EXPOSURE_NOISE_REDUCTION, "Long Exposure Noise Reduction");
|
---|
74 | _tagNameMap.put(TAG_NO_PRINT, "No Print");
|
---|
75 | }
|
---|
76 |
|
---|
77 | public SonyType1MakernoteDirectory()
|
---|
78 | {
|
---|
79 | this.setDescriptor(new SonyType1MakernoteDescriptor(this));
|
---|
80 | }
|
---|
81 |
|
---|
82 | @NotNull
|
---|
83 | public String getName()
|
---|
84 | {
|
---|
85 | return "Sony Makernote";
|
---|
86 | }
|
---|
87 |
|
---|
88 | @NotNull
|
---|
89 | protected HashMap<Integer, String> getTagNameMap()
|
---|
90 | {
|
---|
91 | return _tagNameMap;
|
---|
92 | }
|
---|
93 | }
|
---|