C# Class CSJ2K.j2k.entropy.PrecinctSizeSpec

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.

Inheritance: CSJ2K.j2k.ModuleSpec
Show file Open project: cureos/csj2k Class Usage Examples

Public Methods

Method Description
PrecinctSizeSpec ( int nt, int nc, byte type, BlkImgDataSrc imgsrc, IntegerSpec dls, CSJ2K.j2k.util.ParameterList pl ) : System

Creates a new PrecinctSizeSpec object for the specified number of tiles and components and the ParameterList instance.

PrecinctSizeSpec ( int nt, int nc, byte type, IntegerSpec dls ) : System

Creates a new PrecinctSizeSpec object for the specified number of tiles and components.

getPPX ( int t, int c, int rl ) : int

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.

getPPY ( int t, int c, int rl ) : int

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.

Method Details

PrecinctSizeSpec() public method

Creates a new PrecinctSizeSpec object for the specified number of tiles and components and the ParameterList instance.
public PrecinctSizeSpec ( int nt, int nc, byte type, BlkImgDataSrc imgsrc, IntegerSpec dls, CSJ2K.j2k.util.ParameterList pl ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte the type of the specification module i.e. tile specific, /// component specific or both. /// ///
imgsrc BlkImgDataSrc The image source (used to get the image size) /// ///
dls CSJ2K.j2k.IntegerSpec
pl CSJ2K.j2k.util.ParameterList The ParameterList instance /// ///
return System

PrecinctSizeSpec() public method

Creates a new PrecinctSizeSpec object for the specified number of tiles and components.
public PrecinctSizeSpec ( int nt, int nc, byte type, IntegerSpec dls ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte the type of the specification module i.e. tile specific, /// component specific or both. /// ///
dls CSJ2K.j2k.IntegerSpec Reference to the number of decomposition levels /// specification /// ///
return System

getPPX() public method

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.
public getPPX ( int t, int c, int rl ) : int
t int The tile index, in raster scan order. Specify -1 if it is not /// a specific tile. /// ///
c int The component index. Specify -1 if it is not a specific /// component. /// ///
rl int The resolution level /// ///
return int

getPPY() public method

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.
public getPPY ( int t, int c, int rl ) : int
t int The tile index, in raster scan order. Specify -1 if it is not /// a specific tile. /// ///
c int The component index. Specify -1 if it is not a specific /// component. /// ///
rl int The resolution level. /// ///
return int