Package com.wowza.wms.transport.mpeg2
Class MPEG2PESPacketProcessor
Object
com.wowza.wms.transport.mpeg2.MPEG2PESPacketProcessor
- All Implemented Interfaces:
IMPEG2PacketProcessor
- Direct Known Subclasses:
MPEG2AudioPacketProcessor
,MPEG2PESAssembler
,MPEG2VideoPacketProcessor
The Class mpeg2PESPacketProcessor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The continuity counter.boolean
The continuity error.protected MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet
The current packet.static final int
The Constant INVALID.protected IMPEG2StreamListener
The listener.protected MPEG2PESPacket
int
The pid. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check continuity.int
Find pes header.int
getCodec()
abstract void
handlePESData
(int length, MPEG2PESPacket.PESHeader header) Handle pes data.void
notifyAdaptationHeaders
(boolean deliver) Notify adaptation headers.void
processMpeg2Buffer
(int pid, byte[] bytes, int offset, int count) Process mpeg2 raw buffer.final void
Process mpeg2 packet.Process pes header.void
setCodec
(int codec)
-
Field Details
-
INVALID
public static final int INVALIDThe Constant INVALID.- See Also:
-
PID
public int PIDThe pid. -
continuityCounter
public int continuityCounterThe continuity counter. -
continuityError
public boolean continuityErrorThe continuity error. -
listener
The listener. -
pesPacket
-
currentPacket
The current packet.
-
-
Constructor Details
-
MPEG2PESPacketProcessor
public MPEG2PESPacketProcessor()
-
-
Method Details
-
notifyAdaptationHeaders
public void notifyAdaptationHeaders(boolean deliver) Description copied from interface:IMPEG2PacketProcessor
Notify adaptation headers.- Specified by:
notifyAdaptationHeaders
in interfaceIMPEG2PacketProcessor
- Parameters:
deliver
- the notify
-
setCodec
public void setCodec(int codec) -
getCodec
public int getCodec() -
handlePESData
Handle pes data.- Parameters:
length
- the lengthheader
- the header
-
checkContinuity
public void checkContinuity()Check continuity. -
findPESHeader
public int findPESHeader()Find pes header.- Returns:
- the int
-
processMpeg2Buffer
public void processMpeg2Buffer(int pid, byte[] bytes, int offset, int count) Description copied from interface:IMPEG2PacketProcessor
Process mpeg2 raw buffer.- Specified by:
processMpeg2Buffer
in interfaceIMPEG2PacketProcessor
-
processMpeg2Packet
public final void processMpeg2Packet(MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet packet) throws IOException Description copied from interface:IMPEG2PacketProcessor
Process mpeg2 packet.- Specified by:
processMpeg2Packet
in interfaceIMPEG2PacketProcessor
- Parameters:
packet
- the packet- Throws:
IOException
- Signals that an I/O exception has occurred.
-
processPESHeader
Process pes header.- Returns:
- the pES header
-