Class PktInfo


  • public class PktInfo
    extends Object
    This class defines an object used to countain informations about a packet to which the current code-block belongs.
    See Also:
    CBlkInfo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int cbLength
      The length of the code-block in this packet (in bytes)
      int cbOff
      The code-block offset in the codestream (for this packet)
      int layerIdx
      The layer associated with the current code-block in this packet.
      int numTruncPnts
      The number of truncation points that appear in this packet, and all previous packets, for this code-block.
      int packetIdx
      Index of the packet
      int[] segLengths
      The length of each terminated segment in the packet.
    • Constructor Summary

      Constructors 
      Constructor Description
      PktInfo​(int lyIdx, int pckIdx)
      Classe's constructor.
    • Field Detail

      • packetIdx

        public int packetIdx
        Index of the packet
      • layerIdx

        public int layerIdx
        The layer associated with the current code-block in this packet.
      • cbOff

        public int cbOff
        The code-block offset in the codestream (for this packet)
      • cbLength

        public int cbLength
        The length of the code-block in this packet (in bytes)
      • segLengths

        public int[] segLengths
        The 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 numTruncPnts
        The 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 Detail

      • PktInfo

        public PktInfo​(int lyIdx,
                       int pckIdx)
        Classe's constructor.
        Parameters:
        lyIdx - The layer index for the code-block in this packet
        pckIdx - The packet index
    • Method Detail

      • toString

        public String toString()
        Object information in a string.
        Overrides:
        toString in class Object
        Returns:
        Object information