[]
        
(Showing Draft Content)

CSJ2K.j2k.codestream.reader.PktDecoder.readPktHead

readPktHead Method

readPktHead(int, int, int, int, CBlkInfo[][][], int[])

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.

Declaration
public virtual bool readPktHead(int l, int r, int c, int p, CBlkInfo[][][] cbI, int[] nb)
Parameters
Type Name Description
int l

layer index

int r

Resolution level index

int c

Component index

int p

Precinct index

CBlkInfo[][][] cbI

CBlkInfo array of relevant component and resolution level.

int[] nb

The number of bytes to read in each tile before reaching output rate (used by truncation mode)

Returns
Type Description
bool

True if specified output rate or EOF is reached.