Class MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet

  • Enclosing class:
    MPEG2MPTS.MPEG2MPTSBuffer

    public class MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet
    extends Object
    The Class MPEG2Packet.
    • Field Detail

      • ADAPTATION_CONTROL_PAYLOAD_ONLY

        public static final byte ADAPTATION_CONTROL_PAYLOAD_ONLY
        The Constant ADAPTATION_CONTROL_PAYLOAD_ONLY.
        See Also:
        Constant Field Values
      • ADAPTATION_CONTROL_ADAPATION_ONLY

        public static final byte ADAPTATION_CONTROL_ADAPATION_ONLY
        The Constant ADAPTATION_CONTROL_ADAPATION_ONLY.
        See Also:
        Constant Field Values
      • ADAPTATION_CONTROL_BOTH

        public static final byte ADAPTATION_CONTROL_BOTH
        The Constant ADAPTATION_CONTROL_BOTH.
        See Also:
        Constant Field Values
      • ADAPTATION_FIELD_PRESENT_MASK

        public static final byte ADAPTATION_FIELD_PRESENT_MASK
        The Constant ADAPTATION_FIELD_PRESENT_MASK.
        See Also:
        Constant Field Values
      • PAYLOAD_PRESENT_MASK

        public static final byte PAYLOAD_PRESENT_MASK
        The Constant PAYLOAD_PRESENT_MASK.
        See Also:
        Constant Field Values
      • transportError

        public boolean transportError
        The transport error.
      • PUSI

        public boolean PUSI
        The pusi.
      • transportPriorty

        public boolean transportPriorty
        The transport priorty.
      • PID

        public int PID
        The pid.
      • transportScrambling

        public byte transportScrambling
        The transport scrambling.
      • adaptationFieldControl

        public byte adaptationFieldControl
        The adaptation field control.
      • continuityCounter

        public byte continuityCounter
        The continuity counter.
    • Constructor Detail

      • MPEG2Packet

        public MPEG2Packet()
    • Method Detail

      • clear

        public void clear()
        Clear.
      • LoadPacketData

        public boolean LoadPacketData()
                               throws IllegalArgumentException
        Load packet data.
        Returns:
        true, if successful
        Throws:
        IllegalArgumentException - the illegal argument exception
      • adaptationFieldRead

        public AdaptationField adaptationFieldRead()
        Adaptation field read.
        Returns:
        the adaptation field
      • payloadRead

        public int payloadRead()
        Payload read.
        Returns:
        the int
      • payloadRead

        public boolean payloadRead​(byte[] bytes,
                                   int offset,
                                   int length)
        Payload read.
        Parameters:
        bytes - the bytes
        offset - the offset
        length - the length
        Returns:
        the int
      • payloadReadFragment

        public PacketFragment payloadReadFragment​(int length)
      • payloadReadInt

        public int payloadReadInt​(int count,
                                  int mask)
        Payload read int.
        Parameters:
        count - the count
        mask - the mask
        Returns:
        the int
      • payloadSkip

        public boolean payloadSkip​(int count)
        Payload skip.
        Parameters:
        count - the count
        Returns:
        the int
      • payloadAvailable

        public int payloadAvailable()
        Payload available.
        Returns:
        the int
      • payloadMark

        public void payloadMark()
        Payload mark.
      • payloadReset

        public void payloadReset()
        Payload reset.
      • toString

        public String toString()
        Overrides:
        toString in class Object
      • toString

        public String toString​(String contextStr)
      • toString

        public String toString​(int count)
        To string.
        Parameters:
        count - the count
        Returns:
        the string
      • toString

        public String toString​(int count,
                               String contextStr)
      • dumpPacket

        public String dumpPacket​(String contextStr)
        Dump packet.