Package jj2000.j2k.entropy.decoder
Class DecLyrdCBlk
- java.lang.Object
-
- jj2000.j2k.entropy.CodedCBlk
-
- jj2000.j2k.entropy.decoder.DecLyrdCBlk
-
public class DecLyrdCBlk extends CodedCBlk
This class stores coded (compressed) code-blocks that are organized in layers. This object can contain either all the data of the code-block (i.e. all layers), or a subset of all the layers that make up the whole compressed-code-block. It is applicable to the decoder engine only. Some data of the coded-block is stored in the super class, see CodedCBlk.A code-block may have its progressive attribute set (i.e. the 'prog' flag is true). If a code-block is progressive then it means that more data for it may be obtained for an improved quality. If the progressive flag is false then no more data is available from the source for this code-block.
- See Also:
CodedCBlk
-
-
Field Summary
Fields Modifier and Type Field Description int
dl
The coded (compressed) data length.int
ftpIdx
The index of the first truncation point returnedint
h
The height of the code-blockint
nl
The number of layers in the coded data.int
nTrunc
The total number of truncation points from layer 1 to the last one in this object.boolean
prog
The progressive flag, false by default (see above).int[]
tsLengths
The length of each terminated segment.int
ulx
The horizontal coordinate of the upper-left corner of the code-blockint
uly
The vertical coordinate of the upper left corner of the code-blockint
w
The width of the code-block
-
Constructor Summary
Constructors Constructor Description DecLyrdCBlk()
-
-
-
Field Detail
-
ulx
public int ulx
The horizontal coordinate of the upper-left corner of the code-block
-
uly
public int uly
The vertical coordinate of the upper left corner of the code-block
-
w
public int w
The width of the code-block
-
h
public int h
The height of the code-block
-
dl
public int dl
The coded (compressed) data length. The data is stored in the 'data' array (see super class).
-
prog
public boolean prog
The progressive flag, false by default (see above).
-
nl
public int nl
The number of layers in the coded data.
-
ftpIdx
public int ftpIdx
The index of the first truncation point returned
-
nTrunc
public int nTrunc
The total number of truncation points from layer 1 to the last one in this object. The number of truncation points in 'data' is 'nTrunc-ftpIdx'.
-
tsLengths
public int[] tsLengths
The length of each terminated segment. If null then there is only one terminated segment, and its length is 'dl'. The number of terminated segments is to be deduced from 'ftpIdx', 'nTrunc' and the coding options. This array contains all terminated segments from the 'ftpIdx' truncation point, upto, and including, the 'nTrunc-1' truncation point. Any data after 'nTrunc-1' is not included in any length.
-
-