jj2000.j2k.image.forwcomptransf
Class ForwCompTransfSpec

java.lang.Object
  |
  +--jj2000.j2k.ModuleSpec
        |
        +--jj2000.j2k.image.CompTransfSpec
              |
              +--jj2000.j2k.image.forwcomptransf.ForwCompTransfSpec
All Implemented Interfaces:
java.lang.Cloneable, FilterTypes

public class ForwCompTransfSpec
extends CompTransfSpec
implements FilterTypes

This class extends CompTransfSpec class in order to hold encoder specific aspects of CompTransfSpec.

See Also:
CompTransfSpec

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
 
Fields inherited from interface jj2000.j2k.wavelet.FilterTypes
CUSTOM, W5X3, W9X7
 
Constructor Summary
ForwCompTransfSpec(int nt, int nc, byte type, AnWTFilterSpec wfs, ParameterList pl)
          Constructs a new 'ForwCompTransfSpec' for the specified number of components and tiles, the wavelet filters type and the parameter of the option 'Mct'.
 
Method Summary
private  int getFilterType(int t, AnWTFilterSpec wfs)
          Get the filter type common to all component of a given tile.
 
Methods inherited from class jj2000.j2k.image.CompTransfSpec
isCompTransfUsed
 
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

ForwCompTransfSpec

public ForwCompTransfSpec(int nt,
                          int nc,
                          byte type,
                          AnWTFilterSpec wfs,
                          ParameterList pl)
Constructs a new 'ForwCompTransfSpec' for the specified number of components and tiles, the wavelet filters type and the parameter of the option 'Mct'. This constructor is called by the encoder. It also checks that the arguments belong to the recognized arguments list.

This constructor chose the component transformation type depending on the wavelet filters : RCT with w5x3 filter and ICT with w9x7 filter. Note: All filters must use the same data type.

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.
wfs - The wavelet filter specifications
pl - The ParameterList
Method Detail

getFilterType

private int getFilterType(int t,
                          AnWTFilterSpec wfs)
Get the filter type common to all component of a given tile. If the tile index is -1, it searches common filter type of default specifications.

Parameters:
t - The tile index
wfs - The analysis filters specifications
Returns:
The filter type common to all the components