jj2000.j2k.entropy
Class ProgressionSpec

java.lang.Object
  |
  +--jj2000.j2k.ModuleSpec
        |
        +--jj2000.j2k.entropy.ProgressionSpec
All Implemented Interfaces:
java.lang.Cloneable

public class ProgressionSpec
extends ModuleSpec

This class extends ModuleSpec class for progression type(s) and progression order changes holding purposes.

It stores the progression type(s) used in the codestream. There can be several progression type(s) if progression order changes are used (POC markers).


Field Summary
 
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
ProgressionSpec(int nt, int nc, byte type)
          Creates a new ProgressionSpec object for the specified number of tiles and components.
ProgressionSpec(int nt, int nc, int nl, IntegerSpec dls, byte type, ParameterList pl)
          Creates a new ProgressionSpec object for the specified number of tiles, components and the ParameterList instance.
 
Method Summary
private  int checkProgMode(java.lang.String mode)
          Check if the progression mode exists and if so, return its integer value.
 
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
 

Constructor Detail

ProgressionSpec

public ProgressionSpec(int nt,
                       int nc,
                       byte type)
Creates a new ProgressionSpec object for the specified number of tiles and components.

Parameters:
nt - The number of tiles
nc - The number of components
type - the type of the specification module i.e. tile specific, component specific or both. The ProgressionSpec class should only be used only with the type ModuleSpec.SPEC_TYPE_TILE.

ProgressionSpec

public ProgressionSpec(int nt,
                       int nc,
                       int nl,
                       IntegerSpec dls,
                       byte type,
                       ParameterList pl)
Creates a new ProgressionSpec object for the specified number of tiles, components and the ParameterList instance.

Parameters:
nt - The number of tiles
nc - The number of components
nl - The number of layer
dls - The number of decomposition levels specifications
type - the type of the specification module. The ProgressionSpec class should only be used only with the type ModuleSpec.SPEC_TYPE_TILE.
pl - The ParameterList instance
Method Detail

checkProgMode

private int checkProgMode(java.lang.String mode)
Check if the progression mode exists and if so, return its integer value. It returns -1 otherwise.

Parameters:
mode - The progression mode stored in a string
Returns:
The integer value of the progression mode or -1 if the progression mode does not exist.
See Also:
ProgressionType