Changeset 13061 in josm for trunk/src/com/drew/metadata/exif/makernotes/OlympusEquipmentMakernoteDescriptor.java
- Timestamp:
- 2017-10-30T22:46:09+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/makernotes/OlympusEquipmentMakernoteDescriptor.java
r10862 r13061 40 40 * @author Drew Noakes https://drewnoakes.com 41 41 */ 42 @SuppressWarnings("WeakerAccess") 42 43 public class OlympusEquipmentMakernoteDescriptor extends TagDescriptor<OlympusEquipmentMakernoteDirectory> 43 44 { … … 53 54 switch (tagType) { 54 55 case TAG_EQUIPMENT_VERSION: 55 return GetEquipmentVersionDescription(); 56 return getEquipmentVersionDescription(); 57 case TAG_CAMERA_TYPE_2: 58 return getCameraType2Description(); 56 59 case TAG_FOCAL_PLANE_DIAGONAL: 57 return GetFocalPlaneDiagonalDescription();60 return getFocalPlaneDiagonalDescription(); 58 61 case TAG_BODY_FIRMWARE_VERSION: 59 return GetBodyFirmwareVersionDescription();62 return getBodyFirmwareVersionDescription(); 60 63 case TAG_LENS_TYPE: 61 return GetLensTypeDescription();64 return getLensTypeDescription(); 62 65 case TAG_LENS_FIRMWARE_VERSION: 63 return GetLensFirmwareVersionDescription();66 return getLensFirmwareVersionDescription(); 64 67 case TAG_MAX_APERTURE_AT_MIN_FOCAL: 65 return GetMaxApertureAtMinFocalDescription();68 return getMaxApertureAtMinFocalDescription(); 66 69 case TAG_MAX_APERTURE_AT_MAX_FOCAL: 67 return GetMaxApertureAtMaxFocalDescription();70 return getMaxApertureAtMaxFocalDescription(); 68 71 case TAG_MAX_APERTURE: 69 return GetMaxApertureDescription();72 return getMaxApertureDescription(); 70 73 case TAG_LENS_PROPERTIES: 71 return GetLensPropertiesDescription();74 return getLensPropertiesDescription(); 72 75 case TAG_EXTENDER: 73 return GetExtenderDescription();76 return getExtenderDescription(); 74 77 case TAG_FLASH_TYPE: 75 return GetFlashTypeDescription();78 return getFlashTypeDescription(); 76 79 case TAG_FLASH_MODEL: 77 return GetFlashModelDescription();80 return getFlashModelDescription(); 78 81 default: 79 82 return super.getDescription(tagType); … … 82 85 83 86 @Nullable 84 public String GetEquipmentVersionDescription()87 public String getEquipmentVersionDescription() 85 88 { 86 89 return getVersionBytesDescription(TAG_EQUIPMENT_VERSION, 4); … … 88 91 89 92 @Nullable 90 public String GetFocalPlaneDiagonalDescription() 93 public String getCameraType2Description() 94 { 95 String cameratype = _directory.getString(TAG_CAMERA_TYPE_2); 96 if(cameratype == null) 97 return null; 98 99 if(OlympusMakernoteDirectory.OlympusCameraTypes.containsKey(cameratype)) 100 return OlympusMakernoteDirectory.OlympusCameraTypes.get(cameratype); 101 102 return cameratype; 103 } 104 105 @Nullable 106 public String getFocalPlaneDiagonalDescription() 91 107 { 92 108 return _directory.getString(TAG_FOCAL_PLANE_DIAGONAL) + " mm"; … … 94 110 95 111 @Nullable 96 public String GetBodyFirmwareVersionDescription()112 public String getBodyFirmwareVersionDescription() 97 113 { 98 114 Integer value = _directory.getInteger(TAG_BODY_FIRMWARE_VERSION); … … 107 123 108 124 @Nullable 109 public String GetLensTypeDescription()125 public String getLensTypeDescription() 110 126 { 111 127 String str = _directory.getString(TAG_LENS_TYPE); … … 140 156 141 157 @Nullable 142 public String GetLensFirmwareVersionDescription()158 public String getLensFirmwareVersionDescription() 143 159 { 144 160 Integer value = _directory.getInteger(TAG_LENS_FIRMWARE_VERSION); … … 153 169 154 170 @Nullable 155 public String GetMaxApertureAtMinFocalDescription()171 public String getMaxApertureAtMinFocalDescription() 156 172 { 157 173 Integer value = _directory.getInteger(TAG_MAX_APERTURE_AT_MIN_FOCAL); … … 164 180 165 181 @Nullable 166 public String GetMaxApertureAtMaxFocalDescription()182 public String getMaxApertureAtMaxFocalDescription() 167 183 { 168 184 Integer value = _directory.getInteger(TAG_MAX_APERTURE_AT_MAX_FOCAL); … … 175 191 176 192 @Nullable 177 public String GetMaxApertureDescription()193 public String getMaxApertureDescription() 178 194 { 179 195 Integer value = _directory.getInteger(TAG_MAX_APERTURE); … … 191 207 192 208 @Nullable 193 public String GetLensPropertiesDescription()209 public String getLensPropertiesDescription() 194 210 { 195 211 Integer value = _directory.getInteger(TAG_LENS_PROPERTIES); … … 201 217 202 218 @Nullable 203 public String GetExtenderDescription()219 public String getExtenderDescription() 204 220 { 205 221 String str = _directory.getString(TAG_EXTENDER); … … 234 250 235 251 @Nullable 236 public String GetFlashTypeDescription()252 public String getFlashTypeDescription() 237 253 { 238 254 return getIndexedDescription(TAG_FLASH_TYPE, … … 241 257 242 258 @Nullable 243 public String GetFlashModelDescription()259 public String getFlashModelDescription() 244 260 { 245 261 return getIndexedDescription(TAG_FLASH_MODEL,
Note:
See TracChangeset
for help on using the changeset viewer.
