| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package com.drew.metadata.exif.makernotes; |
| 22 |
|
| 23 |
import com.drew.lang.annotations.NotNull; |
| 24 |
import com.drew.metadata.Directory; |
| 25 |
|
| 26 |
import java.util.HashMap; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
@SuppressWarnings("WeakerAccess") |
| 34 |
public class PentaxMakernoteDirectory extends Directory |
| 35 |
{ |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
public static final int TAG_CAPTURE_MODE = 0x0001; |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
public static final int TAG_QUALITY_LEVEL = 0x0002; |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
public static final int TAG_FOCUS_MODE = 0x0003; |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
public static final int TAG_FLASH_MODE = 0x0004; |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
public static final int TAG_WHITE_BALANCE = 0x0007; |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
public static final int TAG_DIGITAL_ZOOM = 0x000A; |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
public static final int TAG_SHARPNESS = 0x000B; |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
public static final int TAG_CONTRAST = 0x000C; |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
public static final int TAG_SATURATION = 0x000D; |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
public static final int TAG_ISO_SPEED = 0x0014; |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
public static final int TAG_COLOUR = 0x0017; |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
public static final int TAG_PRINT_IMAGE_MATCHING_INFO = 0x0E00; |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
public static final int TAG_TIME_ZONE = 0x1000; |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
public static final int TAG_DAYLIGHT_SAVINGS = 0x1001; |
| 131 |
|
| 132 |
@NotNull |
| 133 |
private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>(); |
| 134 |
|
| 135 |
static |
| 136 |
{ |
| 137 |
_tagNameMap.put(TAG_CAPTURE_MODE, "Capture Mode"); |
| 138 |
_tagNameMap.put(TAG_QUALITY_LEVEL, "Quality Level"); |
| 139 |
_tagNameMap.put(TAG_FOCUS_MODE, "Focus Mode"); |
| 140 |
_tagNameMap.put(TAG_FLASH_MODE, "Flash Mode"); |
| 141 |
_tagNameMap.put(TAG_WHITE_BALANCE, "White Balance"); |
| 142 |
_tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom"); |
| 143 |
_tagNameMap.put(TAG_SHARPNESS, "Sharpness"); |
| 144 |
_tagNameMap.put(TAG_CONTRAST, "Contrast"); |
| 145 |
_tagNameMap.put(TAG_SATURATION, "Saturation"); |
| 146 |
_tagNameMap.put(TAG_ISO_SPEED, "ISO Speed"); |
| 147 |
_tagNameMap.put(TAG_COLOUR, "Colour"); |
| 148 |
_tagNameMap.put(TAG_PRINT_IMAGE_MATCHING_INFO, "Print Image Matching (PIM) Info"); |
| 149 |
_tagNameMap.put(TAG_TIME_ZONE, "Time Zone"); |
| 150 |
_tagNameMap.put(TAG_DAYLIGHT_SAVINGS, "Daylight Savings"); |
| 151 |
} |
| 152 |
|
| 153 |
public PentaxMakernoteDirectory() |
| 154 |
{ |
| 155 |
this.setDescriptor(new PentaxMakernoteDescriptor(this)); |
| 156 |
} |
| 157 |
|
| 158 |
@Override |
| 159 |
@NotNull |
| 160 |
public String getName() |
| 161 |
{ |
| 162 |
return "Pentax Makernote"; |
| 163 |
} |
| 164 |
|
| 165 |
@Override |
| 166 |
@NotNull |
| 167 |
protected HashMap<Integer, String> getTagNameMap() |
| 168 |
{ |
| 169 |
return _tagNameMap; |
| 170 |
} |
| 171 |
} |