Package jj2000.j2k.codestream.reader
Class PktInfo
java.lang.Object
jj2000.j2k.codestream.reader.PktInfo
This class defines an object used to countain informations about a packet
to which the current code-block belongs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe length of the code-block in this packet (in bytes)intThe code-block offset in the codestream (for this packet)intThe layer associated with the current code-block in this packet.intThe number of truncation points that appear in this packet, and all previous packets, for this code-block.intIndex of the packetint[]The length of each terminated segment in the packet. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
packetIdx
public int packetIdxIndex of the packet -
layerIdx
public int layerIdxThe layer associated with the current code-block in this packet. -
cbOff
public int cbOffThe code-block offset in the codestream (for this packet) -
cbLength
public int cbLengthThe length of the code-block in this packet (in bytes) -
segLengths
public int[] segLengthsThe length of each terminated segment in the packet. The total is the same as 'cbLength'. It can be null if there is only one terminated segment, in which case 'cbLength' holds the legth of that segment -
numTruncPnts
public int numTruncPntsThe number of truncation points that appear in this packet, and all previous packets, for this code-block. This is the number of passes that can be decoded with the information in this packet and all previous ones.
-
-
Constructor Details
-
PktInfo
public PktInfo(int lyIdx, int pckIdx) Classe's constructor.- Parameters:
lyIdx- The layer index for the code-block in this packetpckIdx- The packet index
-
-
Method Details