|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jj2000.j2k.ModuleSpec
|
+--jj2000.j2k.entropy.PrecinctSizeSpec
This class extends ModuleSpec class for precinct partition sizes holding purposes.
It stores the size a of precinct when precinct partition is used or not. If precinct partition is used, we can have several packets for a given resolution level whereas there is only one packet per resolution level if no precinct partition is used.
| Field Summary | |
private IntegerSpec |
dls
Reference to wavelet number of decomposition levels for each tile-component. |
private static java.lang.String |
optName
Name of the option |
| Fields inherited from class jj2000.j2k.ModuleSpec |
compDef, def, nComp, nTiles, SPEC_COMP_DEF, SPEC_DEF, SPEC_TILE_COMP, SPEC_TILE_DEF, SPEC_TYPE_COMP, SPEC_TYPE_TILE, SPEC_TYPE_TILE_COMP, specType, specValType, tileCompVal, tileDef |
| Constructor Summary | |
PrecinctSizeSpec(int nt,
int nc,
byte type,
BlkImgDataSrc imgsrc,
IntegerSpec dls,
ParameterList pl)
Creates a new PrecinctSizeSpec object for the specified number of tiles and components and the ParameterList instance. |
|
PrecinctSizeSpec(int nt,
int nc,
byte type,
IntegerSpec dls)
Creates a new PrecinctSizeSpec object for the specified number of tiles and components. |
|
| Method Summary | |
int |
getPPX(int t,
int c,
int rl)
Returns the precinct partition width in component 'n' and tile 't' at resolution level 'rl'. |
int |
getPPY(int t,
int c,
int rl)
Returns the precinct partition height in component 'n' and tile 't' at resolution level 'rl'. |
| Methods inherited from class jj2000.j2k.ModuleSpec |
clone, getCompDef, getCopy, getDefault, getSpec, getSpecValType, getTileCompVal, getTileDef, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx, rotate90, setCompDef, setDefault, setTileCompVal, setTileDef |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String optName
private IntegerSpec dls
| Constructor Detail |
public PrecinctSizeSpec(int nt,
int nc,
byte type,
IntegerSpec dls)
nt - The number of tilesnc - The number of componentstype - the type of the specification module i.e. tile specific,
component specific or both.dls - Reference to the number of decomposition levels
specification
public PrecinctSizeSpec(int nt,
int nc,
byte type,
BlkImgDataSrc imgsrc,
IntegerSpec dls,
ParameterList pl)
nt - The number of tilesnc - The number of componentstype - the type of the specification module i.e. tile specific,
component specific or both.imgsrc - The image source (used to get the image size)pl - The ParameterList instance| Method Detail |
public int getPPX(int t,
int c,
int rl)
t - The tile index, in raster scan order. Specify -1 if it is not
a specific tile.c - The component index. Specify -1 if it is not a specific
component.rl - The resolution level
public int getPPY(int t,
int c,
int rl)
t - The tile index, in raster scan order. Specify -1 if it is not
a specific tile.c - The component index. Specify -1 if it is not a specific
component.rl - The resolution level.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||