| java.lang.Object jj2000.j2k.codestream.reader.CBlkInfo
CBlkInfo | public class CBlkInfo (Code) | | This class contains location of code-blocks' piece of codewords
(there is one piece per layer) and some other information.
|
Field Summary | |
public int | ctp | public int | h | public int[] | len | public int | msbSkipped The number of most significant bits which are skipped for this
code-block (= Mb-1-bitDepth). | public int[] | ntp | public int[] | off | public int[] | pktIdx | public int[][] | segLen | public int | ulx | public int | uly | public int | w |
Constructor Summary | |
public | 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 | |
public void | addNTP(int l, int newtp) Adds the number of new truncation for specified layer. | public String | toString() Object information in a string. |
ctp | public int ctp(Code) | | The cumulative number of truncation points
|
h | public int h(Code) | | Height of the code-block
|
len | public int[] len(Code) | | Length of each piece of code-block's codewords
|
msbSkipped | public int msbSkipped(Code) | | The number of most significant bits which are skipped for this
code-block (= Mb-1-bitDepth). See VM text
|
ntp | public int[] ntp(Code) | | The number of truncation point for each layer
|
off | public int[] off(Code) | | Offset of each piece of code-block's codewords in the file
|
pktIdx | public int[] pktIdx(Code) | | Index of the packet where each layer has been found
|
segLen | public int[][] segLen(Code) | | The length of each segment (used with regular termination or
in selective arithmetic bypass coding mode)
|
ulx | public int ulx(Code) | | Upper-left x-coordinate of the code-block (relative to the
tile)
|
uly | public int uly(Code) | | Upper-left y-coordinate of the code-block (relative to the
tile)
|
w | public int w(Code) | | Width of the code-block
|
CBlkInfo | public CBlkInfo(int ulx, int uly, int w, int h, int nl)(Code) | | Constructs a new instance with specified number of layers and
code-block coordinates. The number corresponds to the maximum
piece of codeword for one code-block.
Parameters: ulx - The uper-left x-coordinate Parameters: uly - The uper-left y-coordinate Parameters: w - Width of the code-block Parameters: h - Height of the code-block Parameters: nl - The number of layers |
addNTP | public void addNTP(int l, int newtp)(Code) | | Adds the number of new truncation for specified layer.
Parameters: l - layer index Parameters: newtp - Number of new truncation points |
toString | public String toString()(Code) | | Object information in a string.
Object information |
|
|