Package jj2000.j2k.entropy.decoder
Class DecLyrdCBlk
java.lang.Object
jj2000.j2k.entropy.CodedCBlk
jj2000.j2k.entropy.decoder.DecLyrdCBlk
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe coded (compressed) data length.intThe index of the first truncation point returnedintThe height of the code-blockintThe number of layers in the coded data.intThe total number of truncation points from layer 1 to the last one in this object.booleanThe progressive flag, false by default (see above).int[]The length of each terminated segment.intThe horizontal coordinate of the upper-left corner of the code-blockintThe vertical coordinate of the upper left corner of the code-blockintThe width of the code-block -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ulx
public int ulxThe horizontal coordinate of the upper-left corner of the code-block -
uly
public int ulyThe vertical coordinate of the upper left corner of the code-block -
w
public int wThe width of the code-block -
h
public int hThe height of the code-block -
dl
public int dlThe coded (compressed) data length. The data is stored in the 'data' array (see super class). -
prog
public boolean progThe progressive flag, false by default (see above). -
nl
public int nlThe number of layers in the coded data. -
ftpIdx
public int ftpIdxThe index of the first truncation point returned -
nTrunc
public int nTruncThe 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[] tsLengthsThe 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.
-
-
Constructor Details
-
DecLyrdCBlk
public DecLyrdCBlk()
-
-
Method Details