[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.encoder.MQCoder.finishLengthCalculation

finishLengthCalculation Method

finishLengthCalculation(int[], int)

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.

       <p>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.</p>
Declaration
public virtual void finishLengthCalculation(int[] rates, int n)
Parameters
Type Name Description
int[] rates

The array containing the values returned by 'getNumCodedBytes()' for each coding pass.

int n

The index in the 'rates' array of the last terminated length.