ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.roi.encoder Namespace / ROIScaler Class / getNextCodeBlock Method
The component for which to return the next code-block.
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.

In This Topic
    getNextCodeBlock Method (ROIScaler)
    In This Topic
    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.

    The function calls on a ROIMaskGenerator to get the mask for scaling the coefficients in the current block.

    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.

    Syntax
    'Declaration
     
    
    Public Overridable Function getNextCodeBlock( _
       ByVal c As Integer, _
       ByVal cblk As CBlkWTData _
    ) As CBlkWTData
    public virtual CBlkWTData getNextCodeBlock( 
       int c,
       CBlkWTData cblk
    )

    Parameters

    c
    The component for which to return the next code-block.
    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.

    Return Value

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