| 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.
|
|---|
| 6 | *
|
|---|
| 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.
|
|---|
| 9 | *
|
|---|
| 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/
|
|---|
| 14 | *
|
|---|
| 15 | * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
|
|---|
| 16 | */
|
|---|
| 17 | package com.drew.metadata.exif;
|
|---|
| 18 |
|
|---|
| 19 | import com.drew.metadata.Directory;
|
|---|
| 20 |
|
|---|
| 21 | import java.util.HashMap;
|
|---|
| 22 |
|
|---|
| 23 | /**
|
|---|
| 24 | *
|
|---|
| 25 | */
|
|---|
| 26 | public class FujifilmMakernoteDirectory extends Directory
|
|---|
| 27 | {
|
|---|
| 28 | 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_SYNCHRO = 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;
|
|---|
| 46 |
|
|---|
| 47 | protected static final HashMap tagNameMap = new HashMap();
|
|---|
| 48 |
|
|---|
| 49 | static
|
|---|
| 50 | {
|
|---|
| 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), "Focus Mode");
|
|---|
| 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");
|
|---|
| 69 | }
|
|---|
| 70 |
|
|---|
| 71 | public FujifilmMakernoteDirectory()
|
|---|
| 72 | {
|
|---|
| 73 | this.setDescriptor(new FujifilmMakernoteDescriptor(this));
|
|---|
| 74 | }
|
|---|
| 75 |
|
|---|
| 76 | public String getName()
|
|---|
| 77 | {
|
|---|
| 78 | return "FujiFilm Makernote";
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 | protected HashMap getTagNameMap()
|
|---|
| 82 | {
|
|---|
| 83 | return tagNameMap;
|
|---|
| 84 | }
|
|---|
| 85 | }
|
|---|