Package jj2000.j2k
Class IntegerSpec
java.lang.Object
jj2000.j2k.ModuleSpec
jj2000.j2k.IntegerSpec
- All Implemented Interfaces:
Cloneable
This class extends ModuleSpec and is responsible of Integer
specifications for each tile-component.
- See Also:
-
Field Summary
FieldsFields 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, specified, specType, specValType, tileCompVal, tileDef -
Constructor Summary
ConstructorsConstructorDescriptionIntegerSpec(int nt, int nc, byte type) Constructs a new 'IntegerSpec' for the specified number of tiles and components and with allowed type of specifications.IntegerSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values, String defaultValue) Constructs a new 'IntegerSpec' for the specified number of tiles and components, the allowed specifications type instance. -
Method Summary
Modifier and TypeMethodDescriptionintgetMax()Get the maximum value of each tile-componentintgetMaxInComp(int c) Get the maximum value of each tile for specified componentintgetMaxInTile(int t) Get the maximum value of each component in specified tileintgetMin()Get the minimum value of each tile-componentintgetMinInComp(int c) Get the minimum value of each tile for specified componentintgetMinInTile(int t) Get the minimum value of each component in specified tileMethods inherited from class jj2000.j2k.ModuleSpec
clone, getCompDef, getCopy, getDefault, getSpec, getSpecValType, getTileCompVal, getTileDef, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx, rotate90, setCompDef, setDefault, setTileCompVal, setTileDef
-
Field Details
-
MAX_INT
protected static int MAX_INTThe largest value of type int
-
-
Constructor Details
-
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 tilesnc- The number of componentstype- The type of allowed specifications
-
IntegerSpec
public IntegerSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values, String defaultValue) Constructs a new 'IntegerSpec' for the specified number of tiles and components, the allowed specifications type instance. This constructor is normally called at encoder side and parse arguments of specified option.- Parameters:
nt- The number of tilesnc- The number of componentstype- The allowed specifications typedefaultValue- The name of the option to process
-
-
Method Details
-
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
-