ComponentOne PDF for .NET
CSJ2K.j2k.entropy.encoder Namespace / MQCoder Class / finishLengthCalculation Method
The array containing the values returned by 'getNumCodedBytes()' for each coding pass.
The index in the 'rates' array of the last terminated length.

In This Topic
    finishLengthCalculation Method (MQCoder)
    In This Topic
    Terminates the calculation of the required length for each coding pass. This method must be called just after the 'terminate()' one has been called for each terminated MQ segment.

    The values in 'rates' must have been compensated for any offset due to previous terminated segments, so that the correct index to the stored coded data is used.

    Syntax
    'Declaration
     
    
    Public Overridable Sub finishLengthCalculation( _
       ByVal rates() As Integer, _
       ByVal n As Integer _
    ) 
    public virtual void finishLengthCalculation( 
       int[] rates,
       int n
    )

    Parameters

    rates
    The array containing the values returned by 'getNumCodedBytes()' for each coding pass.
    n
    The index in the 'rates' array of the last terminated length.
    See Also