|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jj2000.j2k.codestream.reader.CBlkInfo
This class contains location of code-blocks' piece of codewords (there is one piece per layer) and some other information.
Field Summary | |
int |
ctp
The cumulative number of truncation points |
int |
h
Height of the code-block |
int[] |
len
Length of each piece of code-block's codewords |
int |
msbSkipped
The number of most significant bits which are skipped for this code-block (= Mb-1-bitDepth). |
int[] |
ntp
The number of truncation point for each layer |
int[] |
off
Offset of each piece of code-block's codewords in the file |
int[] |
pktIdx
Index of the packet where each layer has been found |
int[][] |
segLen
The length of each segment (used with regular termination or in selective arithmetic bypass coding mode) |
int |
ulx
Upper-left x-coordinate of the code-block (relative to the tile) |
int |
uly
Upper-left y-coordinate of the code-block (relative to the tile) |
int |
w
Width of the code-block |
Constructor Summary | |
CBlkInfo(int ulx,
int uly,
int w,
int h,
int nl)
Constructs a new instance with specified number of layers and code-block coordinates. |
Method Summary | |
void |
addNTP(int l,
int newtp)
Adds the number of new truncation for specified layer. |
java.lang.String |
toString()
Object information in a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int ulx
public int uly
public int w
public int h
public int msbSkipped
public int[] len
public int[] off
public int[] ntp
public int ctp
public int[][] segLen
public int[] pktIdx
Constructor Detail |
public CBlkInfo(int ulx, int uly, int w, int h, int nl)
ulx
- The uper-left x-coordinateuly
- The uper-left y-coordinatew
- Width of the code-blockh
- Height of the code-blocknl
- The number of layersMethod Detail |
public void addNTP(int l, int newtp)
l
- layer indexnewtp
- Number of new truncation pointspublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |