| java.lang.Object com.sun.media.imageioimpl.plugins.jpeg2000.Box com.sun.media.imageioimpl.plugins.jpeg2000.ColorSpecificationBox
ColorSpecificationBox | public class ColorSpecificationBox extends Box (Code) | | This class is defined to represent a Color Specification Box of JPEG JP2
file format. A Channel Definition Box has a length, and a fixed type
of "colr". Its content contains the method to define the color space,
the precedence and approximation accuracy (0 for JP2 files), the
enumerated color space, and the ICC color profile if any.
|
Field Summary | |
final public static int | ECS_GRAY | final public static int | ECS_YCC | final public static int | ECS_sRGB The enumerated color space defined in JP2 file format. |
Constructor Summary | |
public | ColorSpecificationBox(byte m, byte p, byte a, int ecs, ICC_Profile profile) Creates a ColorSpecificationBox from the provided data
elements. | public | ColorSpecificationBox(byte[] data) Creates a ColorSpecificationBox from the provided byte
array. | public | ColorSpecificationBox(Node node) Constructs a ColorSpecificationBox based on the provided
org.w3c.dom.Node . |
ECS_GRAY | final public static int ECS_GRAY(Code) | | |
ECS_YCC | final public static int ECS_YCC(Code) | | |
ECS_sRGB | final public static int ECS_sRGB(Code) | | The enumerated color space defined in JP2 file format.
|
ColorSpecificationBox | public ColorSpecificationBox(byte m, byte p, byte a, int ecs, ICC_Profile profile)(Code) | | Creates a ColorSpecificationBox from the provided data
elements.
|
ColorSpecificationBox | public ColorSpecificationBox(byte[] data)(Code) | | Creates a ColorSpecificationBox from the provided byte
array.
|
ColorSpecificationBox | public ColorSpecificationBox(Node node) throws IIOInvalidTreeException(Code) | | Constructs a ColorSpecificationBox based on the provided
org.w3c.dom.Node .
|
compose | protected void compose()(Code) | | |
getApproximationAccuracy | public byte getApproximationAccuracy()(Code) | | Returns ApproximationAccuracy .
|
getElementNames | public static String[] getElementNames()(Code) | | This method will be called by the getNativeNodeForSimpleBox of the
class Box to get the element names.
|
getEnumeratedColorSpace | public int getEnumeratedColorSpace()(Code) | | Returns the enumerated color space.
|
getICCProfile | public ICC_Profile getICCProfile()(Code) | | Returns the ICC color profile in this color specification box.
|
getMethod | public byte getMethod()(Code) | | Returns the method to define the color space.
|
getNativeNode | public IIOMetadataNode getNativeNode()(Code) | | Creates an IIOMetadataNode from this color specification
box. The format of this node is defined in the XML dtd and xsd
for the JP2 image file.
|
getPrecedence | public byte getPrecedence()(Code) | | Returns Precedence .
|
parse | protected void parse(byte[] data)(Code) | | |
|
|