Package gov.nih.mipav.model.file
Class MetadataExtractor.OlympusEquipmentMakernoteDescriptor
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor<MetadataExtractor.OlympusEquipmentMakernoteDirectory>
-
- gov.nih.mipav.model.file.MetadataExtractor.OlympusEquipmentMakernoteDescriptor
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.OlympusEquipmentMakernoteDescriptor extends MetadataExtractor.TagDescriptor<MetadataExtractor.OlympusEquipmentMakernoteDirectory>
Provides human-readable String representations of tag values stored in aMetadataExtractor.OlympusEquipmentMakernoteDirectory
.Some Description functions and the Extender and Lens types lists converted from Exiftool version 10.10 created by Phil Harvey http://www.sno.phy.queensu.ca/~phil/exiftool/ lib\Image\ExifTool\Olympus.pm
- Author:
- Kevin Mott https://github.com/kwhopper, Drew Noakes https://drewnoakes.com
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.String,java.lang.String>
_olympusExtenderTypes
private java.util.HashMap<java.lang.String,java.lang.String>
_olympusLensTypes
-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory
-
-
Constructor Summary
Constructors Constructor Description OlympusEquipmentMakernoteDescriptor(MetadataExtractor.OlympusEquipmentMakernoteDirectory directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private double
CalcMaxAperture(int value)
java.lang.String
getBodyFirmwareVersionDescription()
java.lang.String
getCameraType2Description()
java.lang.String
getDescription(int tagType)
Returns a descriptive value of the specified tag for this image.java.lang.String
getEquipmentVersionDescription()
java.lang.String
getExtenderDescription()
java.lang.String
getFlashModelDescription()
java.lang.String
getFlashTypeDescription()
java.lang.String
getFocalPlaneDiagonalDescription()
java.lang.String
getLensFirmwareVersionDescription()
java.lang.String
getLensPropertiesDescription()
java.lang.String
getLensTypeDescription()
java.lang.String
getMaxApertureAtMaxFocalDescription()
java.lang.String
getMaxApertureAtMinFocalDescription()
java.lang.String
getMaxApertureDescription()
-
Methods inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
convertBytesToVersionString, get7BitStringFromBytes, getBitFlagDescription, getByteLengthDescription, getDecimalRational, getEncodedTextDescription, getEpochTimeDescription, getFocalLengthDescription, getFormattedFloat, getFormattedInt, getFormattedString, getFStopDescription, getIndexedDescription, getIndexedDescription, getLensSpecificationDescription, getOrientationDescription, getRationalOrDoubleString, getShutterSpeedDescription, getSimpleRational, getStringFromBytes, getVersionBytesDescription
-
-
-
-
Constructor Detail
-
OlympusEquipmentMakernoteDescriptor
public OlympusEquipmentMakernoteDescriptor(MetadataExtractor.OlympusEquipmentMakernoteDirectory directory)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription(int tagType)
Description copied from class:MetadataExtractor.TagDescriptor
Returns a descriptive value of the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the metadata segment. If no substitution is available, the value provided bygetString(tagType)
will be returned.- Overrides:
getDescription
in classMetadataExtractor.TagDescriptor<MetadataExtractor.OlympusEquipmentMakernoteDirectory>
- Parameters:
tagType
- the tag to find a description for- Returns:
- a description of the image's value for the specified tag, or
null
if the tag hasn't been defined.
-
getEquipmentVersionDescription
public java.lang.String getEquipmentVersionDescription()
-
getCameraType2Description
public java.lang.String getCameraType2Description()
-
getFocalPlaneDiagonalDescription
public java.lang.String getFocalPlaneDiagonalDescription()
-
getBodyFirmwareVersionDescription
public java.lang.String getBodyFirmwareVersionDescription()
-
getLensTypeDescription
public java.lang.String getLensTypeDescription()
-
getLensFirmwareVersionDescription
public java.lang.String getLensFirmwareVersionDescription()
-
getMaxApertureAtMinFocalDescription
public java.lang.String getMaxApertureAtMinFocalDescription()
-
getMaxApertureAtMaxFocalDescription
public java.lang.String getMaxApertureAtMaxFocalDescription()
-
getMaxApertureDescription
public java.lang.String getMaxApertureDescription()
-
CalcMaxAperture
private double CalcMaxAperture(int value)
-
getLensPropertiesDescription
public java.lang.String getLensPropertiesDescription()
-
getExtenderDescription
public java.lang.String getExtenderDescription()
-
getFlashTypeDescription
public java.lang.String getFlashTypeDescription()
-
getFlashModelDescription
public java.lang.String getFlashModelDescription()
-
-