Package gov.nih.mipav.model.file
Class MetadataExtractor.NikonType1MakernoteDescriptor
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor<MetadataExtractor.NikonType1MakernoteDirectory>
-
- gov.nih.mipav.model.file.MetadataExtractor.NikonType1MakernoteDescriptor
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.NikonType1MakernoteDescriptor extends MetadataExtractor.TagDescriptor<MetadataExtractor.NikonType1MakernoteDirectory>
Provides human-readable string representations of tag values stored in aMetadataExtractor.NikonType1MakernoteDirectory
.Type-1 is for E-Series cameras prior to (not including) E990. For example: E700, E800, E900, E900S, E910, E950.
Makernote starts from ASCII string "Nikon". Data format is the same as IFD, but it starts from offset 0x08. This is the same as Olympus except start string. Example of actual data structure is shown below.
:0000: 4E 69 6B 6F 6E 00 01 00-05 00 02 00 02 00 06 00 Nikon........... :0010: 00 00 EC 02 00 00 03 00-03 00 01 00 00 00 06 00 ................
- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory
-
-
Constructor Summary
Constructors Constructor Description NikonType1MakernoteDescriptor(MetadataExtractor.NikonType1MakernoteDirectory directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCcdSensitivityDescription()
java.lang.String
getColorModeDescription()
java.lang.String
getConverterDescription()
java.lang.String
getDescription(int tagType)
Returns a descriptive value of the specified tag for this image.java.lang.String
getDigitalZoomDescription()
java.lang.String
getFocusDescription()
java.lang.String
getImageAdjustmentDescription()
java.lang.String
getQualityDescription()
java.lang.String
getWhiteBalanceDescription()
-
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
-
NikonType1MakernoteDescriptor
public NikonType1MakernoteDescriptor(MetadataExtractor.NikonType1MakernoteDirectory 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.NikonType1MakernoteDirectory>
- 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.
-
getConverterDescription
public java.lang.String getConverterDescription()
-
getDigitalZoomDescription
public java.lang.String getDigitalZoomDescription()
-
getFocusDescription
public java.lang.String getFocusDescription()
-
getWhiteBalanceDescription
public java.lang.String getWhiteBalanceDescription()
-
getCcdSensitivityDescription
public java.lang.String getCcdSensitivityDescription()
-
getImageAdjustmentDescription
public java.lang.String getImageAdjustmentDescription()
-
getColorModeDescription
public java.lang.String getColorModeDescription()
-
getQualityDescription
public java.lang.String getQualityDescription()
-
-