| 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 |
|
| 34 |
|
| 35 |
@SuppressWarnings("WeakerAccess") |
| 36 |
public class LeicaMakernoteDirectory extends Directory |
| 37 |
{ |
| 38 |
public static final int TAG_QUALITY = 0x0300; |
| 39 |
public static final int TAG_USER_PROFILE = 0x0302; |
| 40 |
public static final int TAG_SERIAL_NUMBER = 0x0303; |
| 41 |
public static final int TAG_WHITE_BALANCE = 0x0304; |
| 42 |
|
| 43 |
public static final int TAG_LENS_TYPE = 0x0310; |
| 44 |
public static final int TAG_EXTERNAL_SENSOR_BRIGHTNESS_VALUE = 0x0311; |
| 45 |
public static final int TAG_MEASURED_LV = 0x0312; |
| 46 |
public static final int TAG_APPROXIMATE_F_NUMBER = 0x0313; |
| 47 |
|
| 48 |
public static final int TAG_CAMERA_TEMPERATURE = 0x0320; |
| 49 |
public static final int TAG_COLOR_TEMPERATURE = 0x0321; |
| 50 |
public static final int TAG_WB_RED_LEVEL = 0x0322; |
| 51 |
public static final int TAG_WB_GREEN_LEVEL = 0x0323; |
| 52 |
public static final int TAG_WB_BLUE_LEVEL = 0x0324; |
| 53 |
|
| 54 |
public static final int TAG_CCD_VERSION = 0x0330; |
| 55 |
public static final int TAG_CCD_BOARD_VERSION = 0x0331; |
| 56 |
public static final int TAG_CONTROLLER_BOARD_VERSION = 0x0332; |
| 57 |
public static final int TAG_M16_C_VERSION = 0x0333; |
| 58 |
|
| 59 |
public static final int TAG_IMAGE_ID_NUMBER = 0x0340; |
| 60 |
|
| 61 |
@NotNull |
| 62 |
private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>(); |
| 63 |
|
| 64 |
static |
| 65 |
{ |
| 66 |
_tagNameMap.put(TAG_QUALITY, "Quality"); |
| 67 |
_tagNameMap.put(TAG_USER_PROFILE, "User Profile"); |
| 68 |
_tagNameMap.put(TAG_SERIAL_NUMBER, "Serial Number"); |
| 69 |
_tagNameMap.put(TAG_WHITE_BALANCE, "White Balance"); |
| 70 |
|
| 71 |
_tagNameMap.put(TAG_LENS_TYPE, "Lens Type"); |
| 72 |
_tagNameMap.put(TAG_EXTERNAL_SENSOR_BRIGHTNESS_VALUE, "External Sensor Brightness Value"); |
| 73 |
_tagNameMap.put(TAG_MEASURED_LV, "Measured LV"); |
| 74 |
_tagNameMap.put(TAG_APPROXIMATE_F_NUMBER, "Approximate F Number"); |
| 75 |
|
| 76 |
_tagNameMap.put(TAG_CAMERA_TEMPERATURE, "Camera Temperature"); |
| 77 |
_tagNameMap.put(TAG_COLOR_TEMPERATURE, "Color Temperature"); |
| 78 |
_tagNameMap.put(TAG_WB_RED_LEVEL, "WB Red Level"); |
| 79 |
_tagNameMap.put(TAG_WB_GREEN_LEVEL, "WB Green Level"); |
| 80 |
_tagNameMap.put(TAG_WB_BLUE_LEVEL, "WB Blue Level"); |
| 81 |
|
| 82 |
_tagNameMap.put(TAG_CCD_VERSION, "CCD Version"); |
| 83 |
_tagNameMap.put(TAG_CCD_BOARD_VERSION, "CCD Board Version"); |
| 84 |
_tagNameMap.put(TAG_CONTROLLER_BOARD_VERSION, "Controller Board Version"); |
| 85 |
_tagNameMap.put(TAG_M16_C_VERSION, "M16 C Version"); |
| 86 |
|
| 87 |
_tagNameMap.put(TAG_IMAGE_ID_NUMBER, "Image ID Number"); |
| 88 |
} |
| 89 |
|
| 90 |
public LeicaMakernoteDirectory() |
| 91 |
{ |
| 92 |
this.setDescriptor(new LeicaMakernoteDescriptor(this)); |
| 93 |
} |
| 94 |
|
| 95 |
@Override |
| 96 |
@NotNull |
| 97 |
public String getName() |
| 98 |
{ |
| 99 |
return "Leica Makernote"; |
| 100 |
} |
| 101 |
|
| 102 |
@Override |
| 103 |
@NotNull |
| 104 |
protected HashMap<Integer, String> getTagNameMap() |
| 105 |
{ |
| 106 |
return _tagNameMap; |
| 107 |
} |
| 108 |
} |