Package com.wowza.wms.transport.mpeg2
Class MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet
Object
com.wowza.wms.transport.mpeg2.MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet
- Enclosing class:
- MPEG2MPTS.MPEG2MPTSBuffer
The Class MPEG2Packet.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
The Constant ADAPTATION_CONTROL_ADAPATION_ONLY.static final byte
The Constant ADAPTATION_CONTROL_BOTH.static final byte
The Constant ADAPTATION_CONTROL_PAYLOAD_ONLY.static final byte
The Constant ADAPTATION_FIELD_PRESENT_MASK.byte
The adaptation field control.byte
The continuity counter.static final byte
The Constant PAYLOAD_PRESENT_MASK.int
The pid.boolean
The pusi.boolean
The transport error.boolean
The transport priorty.byte
The transport scrambling. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdaptation field read.void
clear()
Clear.dumpPacket
(String contextStr) Dump packet.boolean
Load packet data.int
Payload available.void
Payload mark.int
Payload read.boolean
payloadRead
(byte[] bytes, int offset, int length) Payload read.payloadReadFragment
(int length) int
payloadReadInt
(int count, int mask) Payload read int.void
Payload reset.boolean
payloadSkip
(int count) Payload skip.toString()
toString
(int count) To string.
-
Field Details
-
ADAPTATION_CONTROL_PAYLOAD_ONLY
public static final byte ADAPTATION_CONTROL_PAYLOAD_ONLYThe Constant ADAPTATION_CONTROL_PAYLOAD_ONLY.- See Also:
-
ADAPTATION_CONTROL_ADAPATION_ONLY
public static final byte ADAPTATION_CONTROL_ADAPATION_ONLYThe Constant ADAPTATION_CONTROL_ADAPATION_ONLY.- See Also:
-
ADAPTATION_CONTROL_BOTH
public static final byte ADAPTATION_CONTROL_BOTHThe Constant ADAPTATION_CONTROL_BOTH.- See Also:
-
ADAPTATION_FIELD_PRESENT_MASK
public static final byte ADAPTATION_FIELD_PRESENT_MASKThe Constant ADAPTATION_FIELD_PRESENT_MASK.- See Also:
-
PAYLOAD_PRESENT_MASK
public static final byte PAYLOAD_PRESENT_MASKThe Constant PAYLOAD_PRESENT_MASK.- See Also:
-
transportError
public boolean transportErrorThe transport error. -
PUSI
public boolean PUSIThe pusi. -
transportPriorty
public boolean transportPriortyThe transport priorty. -
PID
public int PIDThe pid. -
transportScrambling
public byte transportScramblingThe transport scrambling. -
adaptationFieldControl
public byte adaptationFieldControlThe adaptation field control. -
continuityCounter
public byte continuityCounterThe continuity counter.
-
-
Constructor Details
-
MPEG2Packet
public MPEG2Packet()
-
-
Method Details
-
clear
public void clear()Clear. -
LoadPacketData
Load packet data.- Returns:
- true, if successful
- Throws:
IllegalArgumentException
- the illegal argument exception
-
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 bytesoffset
- the offsetlength
- the length- Returns:
- the int
-
payloadReadFragment
-
payloadReadInt
public int payloadReadInt(int count, int mask) Payload read int.- Parameters:
count
- the countmask
- 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
-
toString
-
toString
To string.- Parameters:
count
- the count- Returns:
- the string
-
toString
-
dumpPacket
Dump packet.
-