[]
        
(Showing Draft Content)

CSJ2K.j2k.roi.encoder.ROIScaler.getNextCodeBlock

getNextCodeBlock Method

getNextCodeBlock(int, CBlkWTData)

This function gets a datablk from the entropy coder. The sample sin the block, which consists of the quantized coefficients from the quantizer, are scaled by the values given for any ROIs specified.

       <p>The function calls on a ROIMaskGenerator to get the mask for scaling
       the coefficients in the current block.</p><p>The data returned by this method is a copy of the orignal
       data. Therfore 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. See the 'CBlkWTData' class.</p>
Declaration
public virtual CBlkWTData getNextCodeBlock(int c, CBlkWTData cblk)
Parameters
Type Name Description
int c

The component for which to return the next code-block.

CBlkWTData cblk

If non-null this object will be used to return the new code-block. If null a new one will be allocated and returned. If the "data" array of the object is non-null it will be reused, if possible, to return the data.

Returns
Type Description
CBlkWTData

The next code-block in the current tile for component 'n', or null if all code-blocks for the current tile have been returned.

Implements
See Also