| java.lang.Object com.sun.media.imageioimpl.plugins.jpeg2000.Box com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox
ChannelDefinitionBox | public class ChannelDefinitionBox extends Box (Code) | | This class is designed to represent a Channel Definition Box of
JPEG JP2 file format. A Channel Definition Box has a length, and
a fixed type of "cdef". Its content defines the type of the image
channels: color channel, alpha channel or premultiplied alpha channel.
|
Constructor Summary | |
public | ChannelDefinitionBox(ColorModel colorModel) Constructs a ChannelDefinitionBox based on the provided
ColorModel . | public | ChannelDefinitionBox(byte[] data) Constructs a ChannelDefinitionBox based on the provided
content in byte array. | public | ChannelDefinitionBox(short[] channel, short[] types, short[] associations) Constructs a ChannelDefinitionBox based on the provided
channel definitions. | public | ChannelDefinitionBox(Node node) Constructs a ChannelDefinitionBox based on the provided
org.w3c.dom.Node . |
Method Summary | |
protected void | compose() | public static void | fillBasedOnBands(int numComps, boolean isPremultiplied, short[] c, short[] t, short[] a) Fills the channel definitions into the arrays based on the number
of components and isPremultiplied. | public short[] | getAssociation() Returns the association which associates a color channel to a color
component in the color space of the image. | public short[] | getChannel() Returns the defined channels. | public IIOMetadataNode | getNativeNode() Creates an IIOMetadataNode from this channel definition
box. | public short[] | getTypes() Returns the channel types. | protected void | parse(byte[] data) Parse the channel definitions from the content data array. |
ChannelDefinitionBox | public ChannelDefinitionBox(ColorModel colorModel)(Code) | | Constructs a ChannelDefinitionBox based on the provided
ColorModel .
|
ChannelDefinitionBox | public ChannelDefinitionBox(byte[] data)(Code) | | Constructs a ChannelDefinitionBox based on the provided
content in byte array.
|
ChannelDefinitionBox | public ChannelDefinitionBox(short[] channel, short[] types, short[] associations)(Code) | | Constructs a ChannelDefinitionBox based on the provided
channel definitions.
|
ChannelDefinitionBox | public ChannelDefinitionBox(Node node) throws IIOInvalidTreeException(Code) | | Constructs a ChannelDefinitionBox based on the provided
org.w3c.dom.Node .
|
compose | protected void compose()(Code) | | |
fillBasedOnBands | public static void fillBasedOnBands(int numComps, boolean isPremultiplied, short[] c, short[] t, short[] a)(Code) | | Fills the channel definitions into the arrays based on the number
of components and isPremultiplied.
|
getAssociation | public short[] getAssociation()(Code) | | Returns the association which associates a color channel to a color
component in the color space of the image.
|
getChannel | public short[] getChannel()(Code) | | Returns the defined channels.
|
getNativeNode | public IIOMetadataNode getNativeNode()(Code) | | Creates an IIOMetadataNode from this channel definition
box. The format of this node is defined in the XML dtd and xsd
for the JP2 image file.
|
getTypes | public short[] getTypes()(Code) | | Returns the channel types.
|
parse | protected void parse(byte[] data)(Code) | | Parse the channel definitions from the content data array.
|
|
|