jj2000.j2k.codestream
Class PrecInfo

java.lang.Object
  |
  +--jj2000.j2k.codestream.PrecInfo

public class PrecInfo
extends java.lang.Object

Class that holds precinct coordinates and references to contained code-blocks in each subband.


Field Summary
 CBlkCoordInfo[][][] cblk
          Code-blocks belonging to this precinct in each subbands of the resolution level
 int h
          Precinct height in the corresponding resolution level
 int[] nblk
          Number of code-blocks in each subband belonging to this precinct
 int r
          Resolution level index
 int rgh
          Precinct height reported in the reference grid
 int rgulx
          Precinct horizontal upper-left coordinate in the reference grid
 int rguly
          Precinct vertical upper-left coordinate in the reference grid
 int rgw
          Precinct width reported in the reference grid
 int ulx
          Precinct horizontal upper-left coordinate in the corresponding resolution level
 int uly
          Precinct vertical upper-left coordinate in the corresponding resolution level
 int w
          Precinct width in the corresponding resolution level
 
Constructor Summary
PrecInfo(int r, int ulx, int uly, int w, int h, int rgulx, int rguly, int rgw, int rgh)
          Class constructor.
 
Method Summary
 java.lang.String toString()
          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 Detail

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 Detail

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 Detail

toString

public java.lang.String toString()
Returns PrecInfo object information in a String

Overrides:
toString in class java.lang.Object
Returns:
PrecInfo information