[]
        
(Showing Draft Content)

CSJ2K.j2k.roi.encoder.ROIScaler.getNextInternCodeBlock

getNextInternCodeBlock Method

getNextInternCodeBlock(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>
Declaration
public virtual CBlkWTData getNextInternCodeBlock(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