Package gov.nih.mipav.model.file
Class MetadataExtractor.JpegComponent
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.JpegComponent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.JpegComponent extends java.lang.Object implements java.io.SerializableStores 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int_componentIdprivate int_quantizationTableNumberprivate int_samplingFactorByteprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description JpegComponent(int componentId, int samplingFactorByte, int quantizationTableNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetComponentId()java.lang.StringgetComponentName()Returns the component name (one of: Y, Cb, Cr, I, or Q)intgetHorizontalSamplingFactor()intgetQuantizationTableNumber()intgetVerticalSamplingFactor()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
_componentId
private final int _componentId
-
_samplingFactorByte
private final int _samplingFactorByte
-
_quantizationTableNumber
private final int _quantizationTableNumber
-
-
Method Detail
-
getComponentId
public int getComponentId()
-
getComponentName
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-