public class CBlkSizeSpec extends ModuleSpec
It stores the size a of code-block.
| Modifier and Type | Field and Description |
|---|---|
private String |
defaultValue |
private int |
maxCBlkHeight
The maximum code-block height
|
private int |
maxCBlkWidth
The maximum code-block width
|
private static String |
optName
Name of the option
|
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, specified, specType, specValType, tileCompVal, tileDef| Constructor and Description |
|---|
CBlkSizeSpec(int nt,
int nc,
byte type)
Creates a new CBlkSizeSpec object for the specified number of tiles and
components.
|
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 parameters instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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. |
int |
getMaxCBlkHeight()
Returns the maximum code-block's height
|
int |
getMaxCBlkWidth()
Returns the maximum code-block's width
|
void |
setCompDef(int c,
Object value)
Sets default value for specified component and specValType tag if
allowed by its priority.
|
void |
setDefault(Object value)
Sets default value for this module
|
void |
setTileCompVal(int t,
int c,
Object value)
Sets value for specified tile-component.
|
void |
setTileDef(int t,
Object value)
Sets default value for specified tile and specValType tag if allowed by
its priority.
|
private void |
storeHighestDims(Integer[] dim)
Stores the highest code-block width and height
|
clone, getCompDef, getCopy, getDefault, getSpec, getSpecValType, getTileCompVal, getTileDef, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx, rotate90private String defaultValue
private static final String optName
private int maxCBlkWidth
private int maxCBlkHeight
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.public CBlkSizeSpec(int nt,
int nc,
byte type,
J2KImageWriteParamJava wp,
String values)
nt - The number of tilesnc - The number of componentstype - the type of the specification module i.e. tile specific,
component specific or both.wp - The parameterspublic 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 indexpublic int getCBlkHeight(byte type,
int t,
int c)
type - The type of the value we want to be returnedt - The tile indexc - the component indexpublic void setDefault(Object value)
setDefault in class ModuleSpecvalue - Default valuepublic void setTileDef(int t,
Object value)
setTileDef in class ModuleSpect - Tile index.value - Tile's default valuepublic void setCompDef(int c,
Object value)
setCompDef in class ModuleSpecc - Component indexvalue - Component's default valuepublic void setTileCompVal(int t,
int c,
Object value)
setTileCompVal in class ModuleSpect - Tie indexc - Component indexvalue - Tile-component's valueprivate void storeHighestDims(Integer[] dim)
dim - The 2 elements array that contains the code-block width and
height.Copyright © 2017 Open Microscopy Environment