ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.entropy.decoder Namespace / MQDecoder Class / MQDecoder Constructor
the stream that contains the coded bits
The number of contexts used
The initial state for each context. A reference is kept to this array to reinitialize the contexts whenever 'reset()' or 'resetCtxts()' is called.

In This Topic
    MQDecoder Constructor
    In This Topic
    Instantiates a new MQ-decoder, with the specified number of contexts and initial states. The compressed bytestream is read from the 'iStream' object.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal iStream As ByteInputBuffer, _
       ByVal nrOfContexts As Integer, _
       ByVal initStates() As Integer _
    )

    Parameters

    iStream
    the stream that contains the coded bits
    nrOfContexts
    The number of contexts used
    initStates
    The initial state for each context. A reference is kept to this array to reinitialize the contexts whenever 'reset()' or 'resetCtxts()' is called.
    See Also