Package gov.nih.mipav.model.file
Class MetadataExtractor.CanonMakernoteDescriptor
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor<MetadataExtractor.CanonMakernoteDirectory>
-
- gov.nih.mipav.model.file.MetadataExtractor.CanonMakernoteDescriptor
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.CanonMakernoteDescriptor extends MetadataExtractor.TagDescriptor<MetadataExtractor.CanonMakernoteDirectory>
Provides human-readable string representations of tag values stored in aMetadataExtractor.CanonMakernoteDirectory
.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.Integer,java.lang.String>
_lensTypeById
Map fromto string descriptions. -
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory
-
-
Constructor Summary
Constructors Constructor Description CanonMakernoteDescriptor(MetadataExtractor.CanonMakernoteDirectory directory)
-
Method Summary
-
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
-
-
-
-
Field Detail
-
_lensTypeById
private final java.util.HashMap<java.lang.Integer,java.lang.String> _lensTypeById
Map fromto string descriptions. Data sourced from http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Canon.html#LensType Note that only Canon lenses are listed. Lenses from other manufacturers may identify themselves to the camera as being from this set, but in fact may be quite different. This limits the usefulness of this data, unfortunately.
-
-
Constructor Detail
-
CanonMakernoteDescriptor
public CanonMakernoteDescriptor(MetadataExtractor.CanonMakernoteDirectory 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.CanonMakernoteDirectory>
- 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.
-
getSerialNumberDescription
public java.lang.String getSerialNumberDescription()
-
getFlashBiasDescription
public java.lang.String getFlashBiasDescription()
-
getAfPointUsedDescription
public java.lang.String getAfPointUsedDescription()
-
getTagAfPointsInFocus
public java.lang.String getTagAfPointsInFocus()
-
getWhiteBalanceDescription
public java.lang.String getWhiteBalanceDescription()
-
getFocusMode2Description
public java.lang.String getFocusMode2Description()
-
getFlashDetailsDescription
public java.lang.String getFlashDetailsDescription()
-
getFocalUnitsPerMillimetreDescription
public java.lang.String getFocalUnitsPerMillimetreDescription()
-
getShortFocalLengthDescription
public java.lang.String getShortFocalLengthDescription()
-
getLongFocalLengthDescription
public java.lang.String getLongFocalLengthDescription()
-
getExposureModeDescription
public java.lang.String getExposureModeDescription()
-
getLensTypeDescription
public java.lang.String getLensTypeDescription()
-
getMaxApertureDescription
public java.lang.String getMaxApertureDescription()
-
getMinApertureDescription
public java.lang.String getMinApertureDescription()
-
getAfPointSelectedDescription
public java.lang.String getAfPointSelectedDescription()
-
getMeteringModeDescription
public java.lang.String getMeteringModeDescription()
-
getIsoDescription
public java.lang.String getIsoDescription()
-
getSharpnessDescription
public java.lang.String getSharpnessDescription()
-
getSaturationDescription
public java.lang.String getSaturationDescription()
-
getContrastDescription
public java.lang.String getContrastDescription()
-
getEasyShootingModeDescription
public java.lang.String getEasyShootingModeDescription()
-
getImageSizeDescription
public java.lang.String getImageSizeDescription()
-
getFocusMode1Description
public java.lang.String getFocusMode1Description()
-
getContinuousDriveModeDescription
public java.lang.String getContinuousDriveModeDescription()
-
getFlashModeDescription
public java.lang.String getFlashModeDescription()
-
getSelfTimerDelayDescription
public java.lang.String getSelfTimerDelayDescription()
-
getMacroModeDescription
public java.lang.String getMacroModeDescription()
-
getQualityDescription
public java.lang.String getQualityDescription()
-
getDigitalZoomDescription
public java.lang.String getDigitalZoomDescription()
-
getRecordModeDescription
public java.lang.String getRecordModeDescription()
-
getFocusTypeDescription
public java.lang.String getFocusTypeDescription()
-
getFlashActivityDescription
public java.lang.String getFlashActivityDescription()
-
getFocusContinuousDescription
public java.lang.String getFocusContinuousDescription()
-
getAESettingDescription
public java.lang.String getAESettingDescription()
-
getDisplayApertureDescription
public java.lang.String getDisplayApertureDescription()
-
getSpotMeteringModeDescription
public java.lang.String getSpotMeteringModeDescription()
-
getPhotoEffectDescription
public java.lang.String getPhotoEffectDescription()
-
getManualFlashOutputDescription
public java.lang.String getManualFlashOutputDescription()
-
getColorToneDescription
public java.lang.String getColorToneDescription()
-
getSRawQualityDescription
public java.lang.String getSRawQualityDescription()
-
decodeCanonEv
private double decodeCanonEv(int val)
Canon hex-based EV (modulo 0x20) to real number. Converted from Exiftool version 10.10 created by Phil Harvey http://www.sno.phy.queensu.ca/~phil/exiftool/ lib\Image\ExifTool\Canon.pm eg) 0x00 -> 0 0x0c -> 0.33333 0x10 -> 0.5 0x14 -> 0.66666 0x20 -> 1 ... etc
-
-