| 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 Fujifilm cameras.
|
|---|
| 30 | *
|
|---|
| 31 | * @author Drew Noakes http://drewnoakes.com
|
|---|
| 32 | */
|
|---|
| 33 | public class FujifilmMakernoteDirectory extends Directory
|
|---|
| 34 | {
|
|---|
| 35 | public static final int TAG_FUJIFILM_MAKERNOTE_VERSION = 0x0000;
|
|---|
| 36 | public static final int TAG_FUJIFILM_QUALITY = 0x1000; // 4096
|
|---|
| 37 | public static final int TAG_FUJIFILM_SHARPNESS = 0x1001; // 4097
|
|---|
| 38 | public static final int TAG_FUJIFILM_WHITE_BALANCE = 0x1002; // 4098
|
|---|
| 39 | public static final int TAG_FUJIFILM_COLOR_SATURATION = 0x1003; // 4099
|
|---|
| 40 | public static final int TAG_FUJIFILM_TONE = 0x1004; // 4100
|
|---|
| 41 | public static final int TAG_FUJIFILM_FLASH_MODE = 0x1010; // 4112
|
|---|
| 42 | public static final int TAG_FUJIFILM_FLASH_STRENGTH = 0x1011; // 4113
|
|---|
| 43 | public static final int TAG_FUJIFILM_MACRO = 0x1020; // 4128
|
|---|
| 44 | public static final int TAG_FUJIFILM_FOCUS_MODE = 0x1021; // 4129
|
|---|
| 45 | public static final int TAG_FUJIFILM_SLOW_SYNCH = 0x1030; // 4144
|
|---|
| 46 | public static final int TAG_FUJIFILM_PICTURE_MODE = 0x1031; // 4145
|
|---|
| 47 | public static final int TAG_FUJIFILM_UNKNOWN_1 = 0x1032; // 4146
|
|---|
| 48 | public static final int TAG_FUJIFILM_CONTINUOUS_TAKING_OR_AUTO_BRACKETTING = 0x1100; // 4352
|
|---|
| 49 | public static final int TAG_FUJIFILM_UNKNOWN_2 = 0x1200; // 4608
|
|---|
| 50 | public static final int TAG_FUJIFILM_BLUR_WARNING = 0x1300; // 4864
|
|---|
| 51 | public static final int TAG_FUJIFILM_FOCUS_WARNING = 0x1301; // 4865
|
|---|
| 52 | public static final int TAG_FUJIFILM_AE_WARNING = 0x1302; // 4866
|
|---|
| 53 |
|
|---|
| 54 | @NotNull
|
|---|
| 55 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
|---|
| 56 |
|
|---|
| 57 | static
|
|---|
| 58 | {
|
|---|
| 59 | _tagNameMap.put(TAG_FUJIFILM_MAKERNOTE_VERSION, "Makernote Version");
|
|---|
| 60 | _tagNameMap.put(TAG_FUJIFILM_QUALITY, "Quality");
|
|---|
| 61 | _tagNameMap.put(TAG_FUJIFILM_SHARPNESS, "Sharpness");
|
|---|
| 62 | _tagNameMap.put(TAG_FUJIFILM_WHITE_BALANCE, "White Balance");
|
|---|
| 63 | _tagNameMap.put(TAG_FUJIFILM_COLOR_SATURATION, "Color Saturation");
|
|---|
| 64 | _tagNameMap.put(TAG_FUJIFILM_TONE, "Tone (Contrast)");
|
|---|
| 65 | _tagNameMap.put(TAG_FUJIFILM_FLASH_MODE, "Flash Mode");
|
|---|
| 66 | _tagNameMap.put(TAG_FUJIFILM_FLASH_STRENGTH, "Flash Strength");
|
|---|
| 67 | _tagNameMap.put(TAG_FUJIFILM_MACRO, "Macro");
|
|---|
| 68 | _tagNameMap.put(TAG_FUJIFILM_FOCUS_MODE, "Focus Mode");
|
|---|
| 69 | _tagNameMap.put(TAG_FUJIFILM_SLOW_SYNCH, "Slow Synch");
|
|---|
| 70 | _tagNameMap.put(TAG_FUJIFILM_PICTURE_MODE, "Picture Mode");
|
|---|
| 71 | _tagNameMap.put(TAG_FUJIFILM_UNKNOWN_1, "Makernote Unknown 1");
|
|---|
| 72 | _tagNameMap.put(TAG_FUJIFILM_CONTINUOUS_TAKING_OR_AUTO_BRACKETTING, "Continuous Taking Or Auto Bracketting");
|
|---|
| 73 | _tagNameMap.put(TAG_FUJIFILM_UNKNOWN_2, "Makernote Unknown 2");
|
|---|
| 74 | _tagNameMap.put(TAG_FUJIFILM_BLUR_WARNING, "Blur Warning");
|
|---|
| 75 | _tagNameMap.put(TAG_FUJIFILM_FOCUS_WARNING, "Focus Warning");
|
|---|
| 76 | _tagNameMap.put(TAG_FUJIFILM_AE_WARNING, "AE Warning");
|
|---|
| 77 | }
|
|---|
| 78 |
|
|---|
| 79 | public FujifilmMakernoteDirectory()
|
|---|
| 80 | {
|
|---|
| 81 | this.setDescriptor(new FujifilmMakernoteDescriptor(this));
|
|---|
| 82 | }
|
|---|
| 83 |
|
|---|
| 84 | @NotNull
|
|---|
| 85 | public String getName()
|
|---|
| 86 | {
|
|---|
| 87 | return "FujiFilm Makernote";
|
|---|
| 88 | }
|
|---|
| 89 |
|
|---|
| 90 | @NotNull
|
|---|
| 91 | protected HashMap<Integer, String> getTagNameMap()
|
|---|
| 92 | {
|
|---|
| 93 | return _tagNameMap;
|
|---|
| 94 | }
|
|---|
| 95 | }
|
|---|