| java.lang.Object jj2000.j2k.ModuleSpec jj2000.j2k.entropy.PrecinctSizeSpec
PrecinctSizeSpec | public class PrecinctSizeSpec extends ModuleSpec (Code) | | This class extends ModuleSpec class for precinct partition sizes holding
purposes.
It stores the size a of precinct when precinct partition is used or not.
If precinct partition is used, we can have several packets for a given
resolution level whereas there is only one packet per resolution level if
no precinct partition is used.
|
Constructor Summary | |
public | PrecinctSizeSpec(int nt, int nc, byte type, IntegerSpec dls) Creates a new PrecinctSizeSpec 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 | PrecinctSizeSpec(int nt, int nc, byte type, BlkImgDataSrc imgsrc, IntegerSpec dls, J2KImageWriteParamJava wp, String values) Creates a new PrecinctSizeSpec object for the specified number of tiles
and components and the J2KImageWriteParamJava 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 | getPPX(int t, int c, int rl) Returns the precinct partition width in component 'n' and tile 't' at
resolution level 'rl'. | public int | getPPY(int t, int c, int rl) Returns the precinct partition height in component 'n' and tile 't' at
resolution level 'rl'. |
PrecinctSizeSpec | public PrecinctSizeSpec(int nt, int nc, byte type, IntegerSpec dls)(Code) | | Creates a new PrecinctSizeSpec 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. Parameters: dls - Reference to the number of decomposition levelsspecification |
PrecinctSizeSpec | public PrecinctSizeSpec(int nt, int nc, byte type, BlkImgDataSrc imgsrc, IntegerSpec dls, J2KImageWriteParamJava wp, String values)(Code) | | Creates a new PrecinctSizeSpec object for the specified number of tiles
and components and the J2KImageWriteParamJava 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: wp - The J2KImageWriteParamJava instance |
getPPX | public int getPPX(int t, int c, int rl)(Code) | | Returns the precinct partition width in component 'n' and tile 't' at
resolution level 'rl'. If the tile index is equal to -1 or if the
component index is equal to -1 it means that those should not be taken
into account.
Parameters: t - The tile index, in raster scan order. Specify -1 if it is nota specific tile. Parameters: c - The component index. Specify -1 if it is not a specificcomponent. Parameters: rl - The resolution level The precinct partition width in component 'c' and tile 't' atresolution level 'rl'. |
getPPY | public int getPPY(int t, int c, int rl)(Code) | | Returns the precinct partition height in component 'n' and tile 't' at
resolution level 'rl'. If the tile index is equal to -1 or if the
component index is equal to -1 it means that those should not be taken
into account.
Parameters: t - The tile index, in raster scan order. Specify -1 if it is nota specific tile. Parameters: c - The component index. Specify -1 if it is not a specificcomponent. Parameters: rl - The resolution level. The precinct partition width in component 'n' and tile 't' atresolution level 'rl'. |
|
|