ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.codestream.reader Namespace / PktDecoder Class / readPktHead Method
layer index
Resolution level index
Component index
Precinct index
CBlkInfo array of relevant component and resolution level.
The number of bytes to read in each tile before reaching output rate (used by truncation mode)

In This Topic
    readPktHead Method
    In This Topic
    Read specified packet head and found length of each code-block's piece of codewords as well as number of skipped most significant bit-planes.
    Syntax
    'Declaration
     
    
    Public Overridable Function readPktHead( _
       ByVal l As Integer, _
       ByVal r As Integer, _
       ByVal c As Integer, _
       ByVal p As Integer, _
       ByVal cbI() As CBlkInfo, _
       ByVal nb() As Integer _
    ) As Boolean
    public virtual bool readPktHead( 
       int l,
       int r,
       int c,
       int p,
       CBlkInfo[] cbI,
       int[] nb
    )

    Parameters

    l
    layer index
    r
    Resolution level index
    c
    Component index
    p
    Precinct index
    cbI
    CBlkInfo array of relevant component and resolution level.
    nb
    The number of bytes to read in each tile before reaching output rate (used by truncation mode)

    Return Value

    True if specified output rate or EOF is reached.
    See Also