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 a
MetadataExtractor.CanonMakernoteDirectory.- Author:
- Drew Noakes https://drewnoakes.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap fromto string descriptions. Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate doubledecodeCanonEv(int val) Canon hex-based EV (modulo 0x20) to real number.getDescription(int tagType) Returns a descriptive value of the specified tag for this image.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 Details
-
_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 Details
-
CanonMakernoteDescriptor
-
-
Method Details
-
getDescription
Description copied from class:MetadataExtractor.TagDescriptorReturns 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:
getDescriptionin 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
nullif the tag hasn't been defined.
-
getSerialNumberDescription
-
getFlashBiasDescription
-
getAfPointUsedDescription
-
getTagAfPointsInFocus
-
getWhiteBalanceDescription
-
getFocusMode2Description
-
getFlashDetailsDescription
-
getFocalUnitsPerMillimetreDescription
-
getShortFocalLengthDescription
-
getLongFocalLengthDescription
-
getExposureModeDescription
-
getLensTypeDescription
-
getMaxApertureDescription
-
getMinApertureDescription
-
getAfPointSelectedDescription
-
getMeteringModeDescription
-
getIsoDescription
-
getSharpnessDescription
-
getSaturationDescription
-
getContrastDescription
-
getEasyShootingModeDescription
-
getImageSizeDescription
-
getFocusMode1Description
-
getContinuousDriveModeDescription
-
getFlashModeDescription
-
getSelfTimerDelayDescription
-
getMacroModeDescription
-
getQualityDescription
-
getDigitalZoomDescription
-
getRecordModeDescription
-
getFocusTypeDescription
-
getFlashActivityDescription
-
getFocusContinuousDescription
-
getAESettingDescription
-
getDisplayApertureDescription
-
getSpotMeteringModeDescription
-
getPhotoEffectDescription
-
getManualFlashOutputDescription
-
getColorToneDescription
-
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
-