Changeset 6127 in josm for trunk/src/com/drew/metadata/exif/FujifilmMakernoteDirectory.java
- Timestamp:
- 2013-08-09T18:05:11+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/FujifilmMakernoteDirectory.java
r4231 r6127 1 1 /* 2 * This is public domain software - that is, you can do whatever you want 3 * with it, and include it software that is licensed under the GNU or the 4 * BSD license, or whatever other licence you choose, including proprietary 5 * closed source licenses. I do ask that you leave this header in tact. 2 * Copyright 2002-2012 Drew Noakes 6 3 * 7 * If you make modifications to this code that you think would benefit the 8 * wider community, please send me a copy and I'll post it on my site. 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 9 7 * 10 * If you make use of this code, I'd appreciate hearing about it. 11 * drew@drewnoakes.com 12 * Latest version of this software kept at 13 * http://drewnoakes.com/ 8 * http://www.apache.org/licenses/LICENSE-2.0 14 9 * 15 * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA. 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/ 16 20 */ 17 21 package com.drew.metadata.exif; 18 22 23 import com.drew.lang.annotations.NotNull; 19 24 import com.drew.metadata.Directory; 20 25 … … 22 27 23 28 /** 29 * Describes tags specific to Fujifilm cameras. 24 30 * 31 * @author Drew Noakes http://drewnoakes.com 25 32 */ 26 33 public class FujifilmMakernoteDirectory extends Directory 27 34 { 28 35 public static final int TAG_FUJIFILM_MAKERNOTE_VERSION = 0x0000; 29 public static final int TAG_FUJIFILM_QUALITY = 0x1000; 30 public static final int TAG_FUJIFILM_SHARPNESS = 0x1001; 31 public static final int TAG_FUJIFILM_WHITE_BALANCE = 0x1002; 32 public static final int TAG_FUJIFILM_COLOR = 0x1003; 33 public static final int TAG_FUJIFILM_TONE = 0x1004; 34 public static final int TAG_FUJIFILM_FLASH_MODE = 0x1010; 35 public static final int TAG_FUJIFILM_FLASH_STRENGTH = 0x1011; 36 public static final int TAG_FUJIFILM_MACRO = 0x1020; 37 public static final int TAG_FUJIFILM_FOCUS_MODE = 0x1021; 38 public static final int TAG_FUJIFILM_SLOW_SYNCH RO= 0x1030;39 public static final int TAG_FUJIFILM_PICTURE_MODE = 0x1031; 40 public static final int TAG_FUJIFILM_UNKNOWN_1 = 0x1032; 41 public static final int TAG_FUJIFILM_CONTINUOUS_TAKING_OR_AUTO_BRACKETTING = 0x1100; 42 public static final int TAG_FUJIFILM_UNKNOWN_2 = 0x1200; 43 public static final int TAG_FUJIFILM_BLUR_WARNING = 0x1300; 44 public static final int TAG_FUJIFILM_FOCUS_WARNING = 0x1301; 45 public static final int TAG_FUJIFILM_AE_WARNING = 0x1302; 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 46 53 47 protected static final HashMap tagNameMap = new HashMap(); 54 @NotNull 55 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>(); 48 56 49 57 static 50 58 { 51 tagNameMap.put( new Integer(TAG_FUJIFILM_AE_WARNING), "AE Warning");52 tagNameMap.put( new Integer(TAG_FUJIFILM_BLUR_WARNING), "Blur Warning");53 tagNameMap.put( new Integer(TAG_FUJIFILM_COLOR), "Color");54 tagNameMap.put( new Integer(TAG_FUJIFILM_CONTINUOUS_TAKING_OR_AUTO_BRACKETTING), "Continuous Taking Or Auto Bracketting");55 tagNameMap.put( new Integer(TAG_FUJIFILM_FLASH_MODE), "Flash Mode");56 tagNameMap.put( new Integer(TAG_FUJIFILM_FLASH_STRENGTH), "Flash Strength");57 tagNameMap.put( new Integer(TAG_FUJIFILM_FOCUS_MODE), "FocusMode");58 tagNameMap.put( new Integer(TAG_FUJIFILM_FOCUS_WARNING), "Focus Warning");59 tagNameMap.put (new Integer(TAG_FUJIFILM_MACRO), "Macro");60 tagNameMap.put( new Integer(TAG_FUJIFILM_MAKERNOTE_VERSION), "Makernote Version");61 tagNameMap.put( new Integer(TAG_FUJIFILM_PICTURE_MODE), "Picture Mode");62 tagNameMap.put( new Integer(TAG_FUJIFILM_QUALITY), "Quality");63 tagNameMap.put( new Integer(TAG_FUJIFILM_SHARPNESS), "Sharpness");64 tagNameMap.put( new Integer(TAG_FUJIFILM_SLOW_SYNCHRO), "Slow Synchro");65 tagNameMap.put( new Integer(TAG_FUJIFILM_TONE), "Tone");66 tagNameMap.put( new Integer(TAG_FUJIFILM_UNKNOWN_1), "Makernote Unknown 1");67 tagNameMap.put( new Integer(TAG_FUJIFILM_UNKNOWN_2), "Makernote Unknown 2");68 tagNameMap.put( new Integer(TAG_FUJIFILM_WHITE_BALANCE), "White Balance");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"); 69 77 } 70 78 … … 74 82 } 75 83 84 @NotNull 76 85 public String getName() 77 86 { … … 79 88 } 80 89 81 protected HashMap getTagNameMap() 90 @NotNull 91 protected HashMap<Integer, String> getTagNameMap() 82 92 { 83 return tagNameMap; 93 return _tagNameMap; 84 94 } 85 95 }
Note:
See TracChangeset
for help on using the changeset viewer.
