jp2codec
Class IntegerSpec

java.lang.Object
  extended by jp2codec.ModuleSpec
      extended by jp2codec.IntegerSpec

public class IntegerSpec
extends ModuleSpec

This class extends ModuleSpec and is responsible of Integer specifications for each tile-component.

See Also:
ModuleSpec

Field Summary
protected static int MAX_INT
          The largest value of type int
 
Fields inherited from class jp2codec.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
IntegerSpec(int nt, int nc, byte type)
          Constructs a new 'IntegerSpec' for the specified number of tiles and components and with allowed type of specifications.
 
Method Summary
 int getMax()
          Get the maximum value of each tile-component
 int getMaxInComp(int c)
          Get the maximum value of each tile for specified component
 int getMaxInTile(int t)
          Get the maximum value of each component in specified tile
 int getMin()
          Get the minimum value of each tile-component
 int getMinInComp(int c)
          Get the minimum value of each tile for specified component
 int getMinInTile(int t)
          Get the minimum value of each component in specified tile
 
Methods inherited from class jp2codec.ModuleSpec
getCompDef, getCompDefRep, getDefault, getDefRep, getSpec, getSpecValType, getTileCompVal, getTileDef, getTileDefRep, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx, setCompDef, setDefault, setTileCompVal, setTileDef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_INT

protected static int MAX_INT
The largest value of type int

Constructor Detail

IntegerSpec

public IntegerSpec(int nt,
                   int nc,
                   byte type)
Constructs a new 'IntegerSpec' for the specified number of tiles and components and with allowed type of specifications. This constructor is normally called at decoder side.

Parameters:
nt - The number of tiles
nc - The number of components
type - The type of allowed specifications
Method Detail

getMax

public int getMax()
Get the maximum value of each tile-component

Returns:
The maximum value

getMin

public int getMin()
Get the minimum value of each tile-component

Returns:
The minimum value

getMaxInComp

public int getMaxInComp(int c)
Get the maximum value of each tile for specified component

Parameters:
c - The component index
Returns:
The maximum value

getMinInComp

public int getMinInComp(int c)
Get the minimum value of each tile for specified component

Parameters:
c - The component index
Returns:
The minimum value

getMaxInTile

public int getMaxInTile(int t)
Get the maximum value of each component in specified tile

Parameters:
t - The tile index
Returns:
The maximum value

getMinInTile

public int getMinInTile(int t)
Get the minimum value of each component in specified tile

Parameters:
t - The tile index
Returns:
The minimum value