Package gov.nih.mipav.model.file
Class MetadataExtractor.JpegComponent
java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.JpegComponent
- All Implemented Interfaces:
Serializable
- Enclosing class:
MetadataExtractor
Stores information about a JPEG image component such as the component id, horiz/vert sampling factor and
quantization table number.
- Author:
- Drew Noakes https://drewnoakes.com
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionJpegComponent(int componentId, int samplingFactorByte, int quantizationTableNumber) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the component name (one of: Y, Cb, Cr, I, or Q)intintinttoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_componentId
private final int _componentId -
_samplingFactorByte
private final int _samplingFactorByte -
_quantizationTableNumber
private final int _quantizationTableNumber
-
-
Constructor Details
-
JpegComponent
public JpegComponent(int componentId, int samplingFactorByte, int quantizationTableNumber)
-
-
Method Details
-
getComponentId
public int getComponentId() -
getComponentName
Returns the component name (one of: Y, Cb, Cr, I, or Q)- Returns:
- the component name
-
getQuantizationTableNumber
public int getQuantizationTableNumber() -
getHorizontalSamplingFactor
public int getHorizontalSamplingFactor() -
getVerticalSamplingFactor
public int getVerticalSamplingFactor() -
toString
-