Package jj2000.j2k.codestream.reader
Class CBlkInfo
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
FieldsModifier and TypeFieldDescriptionintThe cumulative number of truncation pointsintHeight of the code-blockint[]Length of each piece of code-block's codewordsintThe number of most significant bits which are skipped for this code-block (= Mb-1-bitDepth).int[]The number of truncation point for each layerint[]Offset of each piece of code-block's codewords in the fileint[]Index of the packet where each layer has been foundint[][]The length of each segment (used with regular termination or in selective arithmetic bypass coding mode)intUpper-left x-coordinate of the code-block (relative to the tile)intUpper-left y-coordinate of the code-block (relative to the tile)intWidth of the code-block -
Constructor Summary
ConstructorsConstructorDescriptionCBlkInfo(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
-
Field Details
-
ulx
public int ulxUpper-left x-coordinate of the code-block (relative to the tile) -
uly
public int ulyUpper-left y-coordinate of the code-block (relative to the tile) -
w
public int wWidth of the code-block -
h
public int hHeight of the code-block -
msbSkipped
public int msbSkippedThe number of most significant bits which are skipped for this code-block (= Mb-1-bitDepth). See VM text -
len
public int[] lenLength of each piece of code-block's codewords -
off
public int[] offOffset of each piece of code-block's codewords in the file -
ntp
public int[] ntpThe number of truncation point for each layer -
ctp
public int ctpThe cumulative number of truncation points -
segLen
public int[][] segLenThe length of each segment (used with regular termination or in selective arithmetic bypass coding mode) -
pktIdx
public int[] pktIdxIndex of the packet where each layer has been found
-
-
Constructor Details
-
CBlkInfo
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. The number corresponds to the maximum piece of codeword for one code-block.- Parameters:
ulx- The uper-left x-coordinateuly- The uper-left y-coordinatew- Width of the code-blockh- Height of the code-blocknl- The number of layers
-
-
Method Details