CBlkWTDataSrc Interface Members
In This Topic
The following tables list the members exposed by CBlkWTDataSrc.
Public Properties
Public Methods
| Name | Description |
| getAnSubbandTree | Returns a reference to the root of subband tree structure representing the subband decomposition for the specified tile-component. (Inherited from CSJ2K.j2k.wavelet.analysis.ForwWTDataProps) |
| getCompImgHeight | Returns the height in pixels of the specified component in the overall image. (Inherited from CSJ2K.j2k.image.ImgData) |
| getCompImgWidth | Returns the width in pixels of the specified component in the overall image. (Inherited from CSJ2K.j2k.image.ImgData) |
| getCompSubsX | Returns the component subsampling factor in the horizontal direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details. (Inherited from CSJ2K.j2k.image.ImgData) |
| getCompSubsY | Returns the component subsampling factor in the vertical direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details. (Inherited from CSJ2K.j2k.image.ImgData) |
| getCompULX | Returns the horizontal coordinate of the upper-left corner of the specified component in the current tile. (Inherited from CSJ2K.j2k.image.ImgData) |
| getCompULY | Returns the vertical coordinate of the upper-left corner of the specified component in the current tile. (Inherited from CSJ2K.j2k.image.ImgData) |
| getDataType | Return the data type of this CBlkWTDataSrc for the given component in the current tile. Its value should be either DataBlk.TYPE_INT or DataBlk.TYPE_FLOAT but can change according to the current tile-component. |
| getFixedPoint | Returns the position of the fixed point in the specified component, or equivalently the number of fractional bits. This is the position of the least significant integral (i.e. non-fractional) bit, which is equivalent to the number of fractional bits. For instance, for fixed-point values with 2 fractional bits, 2 is returned. For floating-point data this value does not apply and 0 should be returned. Position 0 is the position of the least significant bit in the data. |
| getNextCodeBlock | Returns the next code-block in the current tile for the specified component, as a copy (see below). The order in which code-blocks are returned is not specified. However each code-block is returned only once and all code-blocks will be returned if the method is called 'N' times, where 'N' is the number of code-blocks in the tile. After all the code-blocks have been returned for the current tile calls to this method will return 'null'.
When changing the current tile (through 'setTile()' or 'nextTile()') this method will always return the first code-block, as if this method was never called before for the new current tile.
The data returned by this method is always a copy of the internal data of this object, if any, and it can be modified "in place" without any problems after being returned. The 'offset' of the returned data is 0, and the 'scanw' is the same as the code-block width. The 'magbits' of the returned data is not set by this method and should be ignored. See the 'CBlkWTData' class.
The 'ulx' and 'uly' members of the returned 'CBlkWTData' object contain the coordinates of the top-left corner of the block, with respect to the tile, not the subband. |
| getNextInternCodeBlock | Returns the next code-block in the current tile for the specified component. The order in which code-blocks are returned is not specified. However each code-block is returned only once and all code-blocks will be returned if the method is called 'N' times, where 'N' is the number of code-blocks in the tile. After all the code-blocks have been returned for the current tile calls to this method will return 'null'.
When changing the current tile (through 'setTile()' or 'nextTile()') this method will always return the first code-block, as if this method was never called before for the new current tile.
The data returned by this method can be the data in the internal buffer of this object, if any, and thus can not be modified by the caller. The 'offset' and 'scanw' of the returned data can be arbitrary. The 'magbits' of the returned data is not set by this method and should be ignored. See the 'CBlkWTData' class.
The 'ulx' and 'uly' members of the returned 'CBlkWTData' object contain the coordinates of the top-left corner of the block, with respect to the tile, not the subband. |
| getNomRangeBits | (Inherited from CSJ2K.j2k.image.ImgData) |
| getNumTiles | Returns the number of tiles in the horizontal and vertical directions. (Inherited from CSJ2K.j2k.image.ImgData) |
| getTile | Returns the indixes of the current tile. These are the horizontal and vertical indexes of the current tile. (Inherited from CSJ2K.j2k.image.ImgData) |
| getTileCompHeight | Returns the height in pixels of the specified tile-component. (Inherited from CSJ2K.j2k.image.ImgData) |
| getTileCompWidth | Returns the width in pixels of the specified tile-component (Inherited from CSJ2K.j2k.image.ImgData) |
| isReversible | Returns the reversibility of the given tile-component. Data is reversible when it is suitable for lossless and lossy-to-lossless compression. (Inherited from CSJ2K.j2k.wavelet.analysis.ForwWTDataProps) |
| nextTile | Advances to the next tile, in standard scan-line order (by rows then columns). An NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile). (Inherited from CSJ2K.j2k.image.ImgData) |
| setTile | Changes the current tile, given the new indices. An IllegalArgumentException is thrown if the coordinates do not correspond to a valid tile. (Inherited from CSJ2K.j2k.image.ImgData) |
Top
See Also