ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.entropy.decoder Namespace / StdEntropyDecoder Class / getInternCodeBlock Method
The component for which to return the next code-block.
The vertical index of the code-block to return, in the specified subband.
The horizontal index of the code-block to return, in the specified subband.
The subband in which the code-block to return is.
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
    getInternCodeBlock Method (StdEntropyDecoder)
    In This Topic
    Returns the specified code-block in the current tile for the specified component (as a reference or copy).

    The returned code-block may be progressive, which is indicated by the 'progressive' variable of the returned 'DataBlk' object. If a code-block is progressive it means that in a later request to this method for the same code-block it is possible to retrieve data which is a better approximation, since meanwhile more data to decode for the code-block could have been received. If the code-block is not progressive then later calls to this method for the same code-block will return the exact same data values.

    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. See the 'DataBlk' class.

    The 'ulx' and 'uly' members of the returned 'DataBlk' object contain the coordinates of the top-left corner of the block, with respect to the tile, not the subband.

    Syntax
    'Declaration
     
    
    Public Overrides Function getInternCodeBlock( _
       ByVal c As Integer, _
       ByVal m As Integer, _
       ByVal n As Integer, _
       ByVal sb As SubbandSyn, _
       ByVal cblk As DataBlk _
    ) As DataBlk
    public override DataBlk getInternCodeBlock( 
       int c,
       int m,
       int n,
       SubbandSyn sb,
       DataBlk cblk
    )

    Parameters

    c
    The component for which to return the next code-block.
    m
    The vertical index of the code-block to return, in the specified subband.
    n
    The horizontal index of the code-block to return, in the specified subband.
    sb
    The subband in which the code-block to return is.
    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