Class PrecInfo

java.lang.Object
jj2000.j2k.codestream.PrecInfo

public class PrecInfo extends Object
Class that holds precinct coordinates and references to contained code-blocks in each subband.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Code-blocks belonging to this precinct in each subbands of the resolution level
    int
    Precinct height in the corresponding resolution level
    int[]
    Number of code-blocks in each subband belonging to this precinct
    int
    Resolution level index
    int
    Precinct height reported in the reference grid
    int
    Precinct horizontal upper-left coordinate in the reference grid
    int
    Precinct vertical upper-left coordinate in the reference grid
    int
    Precinct width reported in the reference grid
    int
    Precinct horizontal upper-left coordinate in the corresponding resolution level
    int
    Precinct vertical upper-left coordinate in the corresponding resolution level
    int
    Precinct width in the corresponding resolution level
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrecInfo(int r, int ulx, int uly, int w, int h, int rgulx, int rguly, int rgw, int rgh)
    Class constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns PrecInfo object information in a String

    Methods inherited from class java.lang.Object

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

    • rgulx

      public int rgulx
      Precinct horizontal upper-left coordinate in the reference grid
    • rguly

      public int rguly
      Precinct vertical upper-left coordinate in the reference grid
    • rgw

      public int rgw
      Precinct width reported in the reference grid
    • rgh

      public int rgh
      Precinct height reported in the reference grid
    • ulx

      public int ulx
      Precinct horizontal upper-left coordinate in the corresponding resolution level
    • uly

      public int uly
      Precinct vertical upper-left coordinate in the corresponding resolution level
    • w

      public int w
      Precinct width in the corresponding resolution level
    • h

      public int h
      Precinct height in the corresponding resolution level
    • r

      public int r
      Resolution level index
    • cblk

      public CBlkCoordInfo[][][] cblk
      Code-blocks belonging to this precinct in each subbands of the resolution level
    • nblk

      public int[] nblk
      Number of code-blocks in each subband belonging to this precinct
  • Constructor Details

    • PrecInfo

      public PrecInfo(int r, int ulx, int uly, int w, int h, int rgulx, int rguly, int rgw, int rgh)
      Class constructor.
      Parameters:
      r - Resolution level index.
      ulx - Precinct horizontal offset.
      uly - Precinct vertical offset.
      w - Precinct width.
      h - Precinct height.
      rgulx - Precinct horizontal offset in the image reference grid.
      rguly - Precinct horizontal offset in the image reference grid.
      rgw - Precinct width in the reference grid.
      rgh - Precinct height in the reference grid.
  • Method Details

    • toString

      public String toString()
      Returns PrecInfo object information in a String
      Overrides:
      toString in class Object
      Returns:
      PrecInfo information