[]
        
(Showing Draft Content)

CSJ2K.j2k.entropy.encoder.MQCoder.-ctor

MQCoder Constructor

MQCoder(ByteOutputBuffer, int, int[])

Instantiates a new MQ-coder, with the specified number of contexts and initial states. The compressed bytestream is written to the 'oStream' object.

Declaration
public MQCoder(ByteOutputBuffer oStream, int nrOfContexts, int[] init)
Public Sub New(oStream As ByteOutputBuffer, nrOfContexts As Integer, init As Integer())
Parameters
Type Name Description
ByteOutputBuffer oStream

where to output the compressed data.

int nrOfContexts

The number of contexts used by the MQ coder.

int[] init

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