| java.lang.Object com.sun.media.imageioimpl.plugins.jpeg2000.Box com.sun.media.imageioimpl.plugins.jpeg2000.HeaderBox
HeaderBox | public class HeaderBox extends Box (Code) | | This class is defined to represent an Image Header Box of JPEG JP2 file
format. An Image Header Box has a length, and a fixed type of "ihdr".
The content of an image header box contains the width/height, number of
image components, the bit depth (coded with sign/unsign information),
the compression type (7 for JP2 file), the flag to indicate the color
space is known or not, and a flag to indicate whether the intellectual
property information included in this file.
|
Constructor Summary | |
public | HeaderBox(int height, int width, int numComp, int bitDepth, int compressionType, int unknownColor, int intelProp) Create an Image Header Box from the element values. | public | HeaderBox(byte[] data) Create an Image Header Box using the content data. | public | HeaderBox(Node node) Constructs an Image Header Box from a Node. |
HeaderBox | public HeaderBox(int height, int width, int numComp, int bitDepth, int compressionType, int unknownColor, int intelProp)(Code) | | Create an Image Header Box from the element values.
|
HeaderBox | public HeaderBox(byte[] data)(Code) | | Create an Image Header Box using the content data.
|
compose | protected void compose()(Code) | | |
getBitDepth | public byte getBitDepth()(Code) | | Returns the bit depth for all the image components.
|
getCompressionType | public byte getCompressionType()(Code) | | Returns the compression type.
|
getElementNames | public static String[] getElementNames()(Code) | | This method will be called by the getNativeNodeForSimpleBox of the
class Box to get the element names.
|
getHeight | public int getHeight()(Code) | | Returns the height of the image.
|
getIntellectualProperty | public byte getIntellectualProperty()(Code) | | Returns the IntellectualProperty flag.
|
getNativeNode | public IIOMetadataNode getNativeNode()(Code) | | Creates an IIOMetadataNode from this image header box.
The format of this node is defined in the XML dtd and xsd
for the JP2 image file.
|
getNumComponents | public short getNumComponents()(Code) | | Returns the number of image components.
|
getUnknownColorspace | public byte getUnknownColorspace()(Code) | | Returns the UnknowColorspace flag.
|
getWidth | public int getWidth()(Code) | | Returns the width of the image.
|
parse | protected void parse(byte[] data)(Code) | | Parse the data elements from the byte array of the content.
|
|
|