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 byteThe Constant ADAPTATION_CONTROL_ADAPATION_ONLY.static final byteThe Constant ADAPTATION_CONTROL_BOTH.static final byteThe Constant ADAPTATION_CONTROL_PAYLOAD_ONLY.static final byteThe Constant ADAPTATION_FIELD_PRESENT_MASK.byteThe adaptation field control.byteThe continuity counter.static final byteThe Constant PAYLOAD_PRESENT_MASK.intThe pid.booleanThe pusi.booleanThe transport error.booleanThe transport priorty.byteThe transport scrambling. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdaptation field read.voidclear()Clear.dumpPacket(String contextStr) Dump packet.booleanLoad packet data.intPayload available.voidPayload mark.intPayload read.booleanpayloadRead(byte[] bytes, int offset, int length) Payload read.payloadReadFragment(int length) intpayloadReadInt(int count, int mask) Payload read int.voidPayload reset.booleanpayloadSkip(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.
-