|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--colorspace.boxes.JP2Box
|
+--colorspace.boxes.ChannelDefinitionBox
This class maps the components in the codestream to channels in the image. It models the Component Mapping box in the JP2 header.
| Nested Class Summary |
| Nested classes inherited from class colorspace.boxes.JP2Box |
JP2Box.BoxType |
| Field Summary | |
private java.util.Hashtable |
definitions
|
private int |
ndefs
|
| Fields inherited from class colorspace.boxes.JP2Box |
boxEnd, boxStart, dataStart, eol, in, length, type |
| Constructor Summary | |
ChannelDefinitionBox(RandomAccessIO in,
int boxStart)
Construct a ChannelDefinitionBox from an input image. |
|
| Method Summary | |
private int |
getAsoc(byte[] bfr)
Return the associated channel from the record. |
int |
getAsoc(int channel)
|
private int |
getAsoc(int[] bfr)
|
private int |
getCn(byte[] bfr)
Return the channel from the record. |
int |
getCn(int asoc)
|
private int |
getCn(int[] bfr)
|
int |
getNDefs()
|
private int |
getTyp(byte[] bfr)
Return the channel type from the record. |
int |
getTyp(int channel)
|
private int |
getTyp(int[] bfr)
|
private void |
readBox()
Analyze the box content. |
java.lang.String |
toString()
Return a suitable String representation of the class instance. |
| Methods inherited from class colorspace.boxes.JP2Box |
getTypeString, getTypeString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int ndefs
private java.util.Hashtable definitions
| Constructor Detail |
public ChannelDefinitionBox(RandomAccessIO in,
int boxStart)
throws java.io.IOException,
ColorSpaceException
in - RandomAccessIO jp2 imageboxStart - offset to the start of the box in the image
IOException, - ColorSpaceException
java.io.IOException
ColorSpaceException| Method Detail |
private void readBox()
throws java.io.IOException
java.io.IOExceptionpublic int getNDefs()
public int getCn(int asoc)
public int getTyp(int channel)
public int getAsoc(int channel)
public java.lang.String toString()
toString in class java.lang.Objectprivate int getCn(byte[] bfr)
private int getTyp(byte[] bfr)
private int getAsoc(byte[] bfr)
private int getCn(int[] bfr)
private int getTyp(int[] bfr)
private int getAsoc(int[] bfr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||