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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The coded (compressed) data length.
    int
    The index of the first truncation point returned
    int
    The height of the code-block
    int
    The number of layers in the coded data.
    int
    The total number of truncation points from layer 1 to the last one in this object.
    boolean
    The progressive flag, false by default (see above).
    int[]
    The length of each terminated segment.
    int
    The horizontal coordinate of the upper-left corner of the code-block
    int
    The vertical coordinate of the upper left corner of the code-block
    int
    The width of the code-block

    Fields inherited from class jj2000.j2k.entropy.CodedCBlk

    data, m, n, skipMSBP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Object information in a string

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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.
  • Constructor Details

    • DecLyrdCBlk

      public DecLyrdCBlk()
  • Method Details

    • toString

      public String toString()
      Object information in a string
      Overrides:
      toString in class CodedCBlk
      Returns:
      Information in a string