| java.lang.Object jj2000.j2k.ModuleSpec jj2000.j2k.entropy.CBlkSizeSpec
CBlkSizeSpec | public class CBlkSizeSpec extends ModuleSpec (Code) | | This class extends ModuleSpec class for code-blocks sizes holding purposes.
It stores the size a of code-block.
|
Constructor Summary | |
public | CBlkSizeSpec(int nt, int nc, byte type) Creates a new CBlkSizeSpec object for the specified number of tiles and
components.
Parameters: nt - The number of tiles Parameters: nc - The number of components Parameters: type - the type of the specification module i.e. | public | CBlkSizeSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values) Creates a new CBlkSizeSpec object for the specified number of tiles and
components and the ParameterList instance.
Parameters: nt - The number of tiles Parameters: nc - The number of components Parameters: type - the type of the specification module i.e. |
Method Summary | |
public 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.
| public 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.
| public int | getMaxCBlkHeight() | public int | getMaxCBlkWidth() | public void | setCompDef(int c, Object value) Sets default value for specified component and specValType tag if
allowed by its priority. | public void | setDefault(Object value) | public void | setTileCompVal(int t, int c, Object value) Sets value for specified tile-component. | public void | setTileDef(int t, Object value) Sets default value for specified tile and specValType tag if allowed by
its priority. |
CBlkSizeSpec | public CBlkSizeSpec(int nt, int nc, byte type)(Code) | | Creates a new CBlkSizeSpec object for the specified number of tiles and
components.
Parameters: nt - The number of tiles Parameters: nc - The number of components Parameters: type - the type of the specification module i.e. tile specific,component specific or both. |
CBlkSizeSpec | public CBlkSizeSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values)(Code) | | Creates a new CBlkSizeSpec object for the specified number of tiles and
components and the ParameterList instance.
Parameters: nt - The number of tiles Parameters: nc - The number of components Parameters: type - the type of the specification module i.e. tile specific,component specific or both. Parameters: imgsrc - The image source (used to get the image size) Parameters: pl - The ParameterList instance |
getCBlkHeight | public int getCBlkHeight(byte type, int t, int c)(Code) | | 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.
Parameters: type - The type of the value we want to be returned Parameters: t - The tile index Parameters: c - the component index The code-block height for the specified tile and component |
getCBlkWidth | public int getCBlkWidth(byte type, int t, int c)(Code) | | 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.
Parameters: type - The type of the value we want to be returned Parameters: t - The tile index Parameters: c - the component index The code-block width for the specified tile and component |
getMaxCBlkHeight | public int getMaxCBlkHeight()(Code) | | Returns the maximum code-block's height
|
getMaxCBlkWidth | public int getMaxCBlkWidth()(Code) | | Returns the maximum code-block's width
|
setCompDef | public void setCompDef(int c, Object value)(Code) | | Sets default value for specified component and specValType tag if
allowed by its priority.
Parameters: c - Component index Parameters: value - Component's default value |
setDefault | public void setDefault(Object value)(Code) | | Sets default value for this module
Parameters: value - Default value |
setTileCompVal | public void setTileCompVal(int t, int c, Object value)(Code) | | Sets value for specified tile-component.
Parameters: t - Tie index Parameters: c - Component index Parameters: value - Tile-component's value |
setTileDef | public void setTileDef(int t, Object value)(Code) | | Sets default value for specified tile and specValType tag if allowed by
its priority.
Parameters: c - Tile index. Parameters: value - Tile's default value |
|
|