| 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 |
|
|---|
| 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 | * Describes tags specific to Sigma / Foveon cameras.
|
|---|
| 31 | *
|
|---|
| 32 | * @author Drew Noakes http://drewnoakes.com
|
|---|
| 33 | */
|
|---|
| 34 | public class SigmaMakernoteDirectory extends Directory
|
|---|
| 35 | {
|
|---|
| 36 | public static final int TAG_SERIAL_NUMBER = 2;
|
|---|
| 37 | public static final int TAG_DRIVE_MODE = 3;
|
|---|
| 38 | public static final int TAG_RESOLUTION_MODE = 4;
|
|---|
| 39 | public static final int TAG_AUTO_FOCUS_MODE = 5;
|
|---|
| 40 | public static final int TAG_FOCUS_SETTING = 6;
|
|---|
| 41 | public static final int TAG_WHITE_BALANCE = 7;
|
|---|
| 42 | public static final int TAG_EXPOSURE_MODE = 8;
|
|---|
| 43 | public static final int TAG_METERING_MODE = 9;
|
|---|
| 44 | public static final int TAG_LENS_RANGE = 10;
|
|---|
| 45 | public static final int TAG_COLOR_SPACE = 11;
|
|---|
| 46 | public static final int TAG_EXPOSURE = 12;
|
|---|
| 47 | public static final int TAG_CONTRAST = 13;
|
|---|
| 48 | public static final int TAG_SHADOW = 14;
|
|---|
| 49 | public static final int TAG_HIGHLIGHT = 15;
|
|---|
| 50 | public static final int TAG_SATURATION = 16;
|
|---|
| 51 | public static final int TAG_SHARPNESS = 17;
|
|---|
| 52 | public static final int TAG_FILL_LIGHT = 18;
|
|---|
| 53 | public static final int TAG_COLOR_ADJUSTMENT = 20;
|
|---|
| 54 | public static final int TAG_ADJUSTMENT_MODE = 21;
|
|---|
| 55 | public static final int TAG_QUALITY = 22;
|
|---|
| 56 | public static final int TAG_FIRMWARE = 23;
|
|---|
| 57 | public static final int TAG_SOFTWARE = 24;
|
|---|
| 58 | public static final int TAG_AUTO_BRACKET = 25;
|
|---|
| 59 |
|
|---|
| 60 | @NotNull
|
|---|
| 61 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
|---|
| 62 |
|
|---|
| 63 | static
|
|---|
| 64 | {
|
|---|
| 65 | _tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number");
|
|---|
| 66 | _tagNameMap.put(TAG_DRIVE_MODE, "Drive Mode");
|
|---|
| 67 | _tagNameMap.put(TAG_RESOLUTION_MODE, "Resolution Mode");
|
|---|
| 68 | _tagNameMap.put(TAG_AUTO_FOCUS_MODE, "Auto Focus Mode");
|
|---|
| 69 | _tagNameMap.put(TAG_FOCUS_SETTING, "Focus Setting");
|
|---|
| 70 | _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
|
|---|
| 71 | _tagNameMap.put(TAG_EXPOSURE_MODE, "Exposure Mode");
|
|---|
| 72 | _tagNameMap.put(TAG_METERING_MODE, "Metering Mode");
|
|---|
| 73 | _tagNameMap.put(TAG_LENS_RANGE, "Lens Range");
|
|---|
| 74 | _tagNameMap.put(TAG_COLOR_SPACE, "Color Space");
|
|---|
| 75 | _tagNameMap.put(TAG_EXPOSURE, "Exposure");
|
|---|
| 76 | _tagNameMap.put(TAG_CONTRAST, "Contrast");
|
|---|
| 77 | _tagNameMap.put(TAG_SHADOW, "Shadow");
|
|---|
| 78 | _tagNameMap.put(TAG_HIGHLIGHT, "Highlight");
|
|---|
| 79 | _tagNameMap.put(TAG_SATURATION, "Saturation");
|
|---|
| 80 | _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
|
|---|
| 81 | _tagNameMap.put(TAG_FILL_LIGHT, "Fill Light");
|
|---|
| 82 | _tagNameMap.put(TAG_COLOR_ADJUSTMENT, "Color Adjustment");
|
|---|
| 83 | _tagNameMap.put(TAG_ADJUSTMENT_MODE, "Adjustment Mode");
|
|---|
| 84 | _tagNameMap.put(TAG_QUALITY, "Quality");
|
|---|
| 85 | _tagNameMap.put(TAG_FIRMWARE, "Firmware");
|
|---|
| 86 | _tagNameMap.put(TAG_SOFTWARE, "Software");
|
|---|
| 87 | _tagNameMap.put(TAG_AUTO_BRACKET, "Auto Bracket");
|
|---|
| 88 | }
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | public SigmaMakernoteDirectory()
|
|---|
| 92 | {
|
|---|
| 93 | this.setDescriptor(new SigmaMakernoteDescriptor(this));
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 | @NotNull
|
|---|
| 97 | public String getName()
|
|---|
| 98 | {
|
|---|
| 99 | return "Sigma Makernote";
|
|---|
| 100 | }
|
|---|
| 101 |
|
|---|
| 102 | @NotNull
|
|---|
| 103 | protected HashMap<Integer, String> getTagNameMap()
|
|---|
| 104 | {
|
|---|
| 105 | return _tagNameMap;
|
|---|
| 106 | }
|
|---|
| 107 | }
|
|---|