ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.entropy.encoder Namespace / StdEntropyCoder Class / getNextCodeBlock Method
The component for which to return the next code-block.
If non-null this object might be used in returning the coded code-block in this or any subsequent call to this method. If null a new one is created and returned. If the 'data' array of 'cbb' is not null it may be reused to return the compressed data.

In This Topic
    getNextCodeBlock Method (StdEntropyCoder)
    In This Topic
    Returns the next coded 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.

    Syntax
    'Declaration
     
    
    Public Overrides Function getNextCodeBlock( _
       ByVal c As Integer, _
       ByVal ccb As CBlkRateDistStats _
    ) As CBlkRateDistStats
    public override CBlkRateDistStats getNextCodeBlock( 
       int c,
       CBlkRateDistStats ccb
    )

    Parameters

    c
    The component for which to return the next code-block.
    ccb
    If non-null this object might be used in returning the coded code-block in this or any subsequent call to this method. If null a new one is created and returned. If the 'data' array of 'cbb' is not null it may be reused to return the compressed data.

    Return Value

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