[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.decoder.MQDecoder.-ctor

MQDecoder Constructor

MQDecoder(ByteInputBuffer, int, int[])

Instantiates a new MQ-decoder, with the specified number of contexts and initial states. The compressed bytestream is read from the 'iStream' object.

Declaration
public MQDecoder(ByteInputBuffer iStream, int nrOfContexts, int[] initStates)
Public Sub New(iStream As ByteInputBuffer, nrOfContexts As Integer, initStates As Integer())
Parameters
Type Name Description
ByteInputBuffer iStream

the stream that contains the coded bits

int nrOfContexts

The number of contexts used

int[] initStates

The initial state for each context. A reference is kept to this array to reinitialize the contexts whenever 'reset()' or 'resetCtxts()' is called.