[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.decoder.MQDecoder.nextSegment

nextSegment Method

nextSegment(byte[], int, int)

Resets the MQ decoder to start a new segment. This is like recreating a new MQDecoder object with new input data.

Declaration
public void nextSegment(byte[] buf, int off, int len)
Parameters
Type Name Description
byte[] buf

The byte array containing the MQ encoded data. If null the current byte array is assumed.

int off

The index of the first element in 'buf' to be decoded. If negative the byte just after the previous segment is assumed, only valid if 'buf' is null.

int len

The number of bytes in 'buf' to be decoded. Any subsequent bytes are taken to be 0xFF.