C# Class CSJ2K.j2k.IntegerSpec

This class extends ModuleSpec and is responsible of Integer specifications for each tile-component.
Inheritance: ModuleSpec
Show file Open project: cureos/csj2k Class Usage Examples

Protected Properties

Property Type Description
MAX_INT int

Public Methods

Method Description
IntegerSpec ( int nt, int nc, byte type ) : System

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.

IntegerSpec ( int nt, int nc, byte type, CSJ2K.j2k.util.ParameterList pl, System optName ) : System

Constructs a new 'IntegerSpec' for the specified number of tiles and components, the allowed specifications type and the ParameterList instance. This constructor is normally called at encoder side and parse arguments of specified option.

getMaxInComp ( int c ) : int

Gets the maximum value of each tile for specified component

getMaxInTile ( int t ) : int

Gets the maximum value of all components in the specified tile.

getMinInComp ( int c ) : int

Gets the minimum value of all tiles for the specified component.

getMinInTile ( int t ) : int

Gets the minimum value of each component in specified tile

Method Details

IntegerSpec() public method

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.
public IntegerSpec ( int nt, int nc, byte type ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte The type of allowed specifications /// ///
return System

IntegerSpec() public method

Constructs a new 'IntegerSpec' for the specified number of tiles and components, the allowed specifications type and the ParameterList instance. This constructor is normally called at encoder side and parse arguments of specified option.
public IntegerSpec ( int nt, int nc, byte type, CSJ2K.j2k.util.ParameterList pl, System optName ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte The allowed specifications type /// ///
pl CSJ2K.j2k.util.ParameterList The ParameterList instance /// ///
optName System The name of the option to process /// ///
return System

getMaxInComp() public method

Gets the maximum value of each tile for specified component
public getMaxInComp ( int c ) : int
c int The component index /// ///
return int

getMaxInTile() public method

Gets the maximum value of all components in the specified tile.
public getMaxInTile ( int t ) : int
t int The tile index /// ///
return int

getMinInComp() public method

Gets the minimum value of all tiles for the specified component.
public getMinInComp ( int c ) : int
c int The component index /// ///
return int

getMinInTile() public method

Gets the minimum value of each component in specified tile
public getMinInTile ( int t ) : int
t int The tile index /// ///
return int

Property Details

MAX_INT protected static property

The largest value of type int
protected static int MAX_INT
return int