[]
        
(Showing Draft Content)

CSJ2K.j2k.codestream.reader.PktDecoder.readPktBody

readPktBody Method

readPktBody(int, int, int, int, CBlkInfo[][][], int[])

Reads specificied packet body in order to find offset of each code-block's piece of codeword. This use the list of found code-blocks in previous red packet head.

Declaration
public virtual bool readPktBody(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 remainding number of bytes to read from the bit stream in each tile before reaching the decoding rate (in truncation mode)

Returns
Type Description
bool

True if decoding rate is reached