|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp2codec.ModuleSpec
jp2codec.entropy.CBlkSizeSpec
public class CBlkSizeSpec
This class extends ModuleSpec class for code-blocks sizes holding purposes.
It stores the size a of code-block.
Field Summary |
---|
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 | |
---|---|
CBlkSizeSpec(int nt,
int nc,
byte type)
Creates a new CBlkSizeSpec object for the specified number of tiles and components. |
Method Summary | |
---|---|
int |
getCBlkHeight(byte type,
int t,
int c)
Returns the code-block height: for the specified tile/component for the specified tile for the specified component default value The value returned depends on the value of the variable 'type' which can take the following values : SPEC_DEF -> Default value is returned. t and c values are ignored SPEC_COMP_DEF -> Component default value is returned. t value is ignored SPEC_TILE_DEF -> Tile default value is returned. c value is ignored SPEC_TILE_COMP -> Tile/Component value is returned. |
int |
getCBlkWidth(byte type,
int t,
int c)
Returns the code-block width : for the specified tile/component for the specified tile for the specified component default value The value returned depends on the value of the variable 'type' which can take the following values : SPEC_DEF -> Default value is returned. t and c values are ignored SPEC_COMP_DEF -> Component default value is returned. t value is ignored SPEC_TILE_DEF -> Tile default value is returned. c value is ignored SPEC_TILE_COMP -> Tile/Component value is returned. |
int |
getMaxCBlkHeight()
Returns the maximum code-block's height |
int |
getMaxCBlkWidth()
Returns the maximum code-block's width |
void |
setCompDef(int c,
java.lang.Object value)
Sets default value for specified component and specValType tag if allowed by its priority. |
void |
setDefault(java.lang.Object value)
Sets default value for this module |
void |
setTileCompVal(int t,
int c,
java.lang.Object value)
Sets value for specified tile-component. |
void |
setTileDef(int t,
java.lang.Object value)
Sets default value for specified tile and specValType tag if allowed by its priority. |
Methods inherited from class jp2codec.ModuleSpec |
---|
getCompDef, getCompDefRep, getDefault, getDefRep, getSpec, getSpecValType, getTileCompVal, getTileDef, getTileDefRep, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CBlkSizeSpec(int nt, int nc, byte type)
nt
- The number of tilesnc
- The number of componentstype
- the type of the specification module i.e. tile specific,
component specific or both.Method Detail |
---|
public int getMaxCBlkWidth()
public int getMaxCBlkHeight()
public int getCBlkWidth(byte type, int t, int c)
type
- The type of the value we want to be returnedt
- The tile indexc
- the component index
public int getCBlkHeight(byte type, int t, int c)
type
- The type of the value we want to be returnedt
- The tile indexc
- the component index
public void setDefault(java.lang.Object value)
setDefault
in class ModuleSpec
value
- Default valuepublic void setTileDef(int t, java.lang.Object value)
setTileDef
in class ModuleSpec
t
- Tile index.value
- Tile's default valuepublic void setCompDef(int c, java.lang.Object value)
setCompDef
in class ModuleSpec
c
- Component indexvalue
- Component's default valuepublic void setTileCompVal(int t, int c, java.lang.Object value)
setTileCompVal
in class ModuleSpec
t
- Tie indexc
- Component indexvalue
- Tile-component's value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |