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
 
 public abstract class MPEG2PESPacketProcessor extends Object implements IMPEG2PacketProcessor The Class mpeg2PESPacketProcessor.
- 
- 
Field SummaryFields Modifier and Type Field Description intcontinuityCounterThe continuity counter.booleancontinuityErrorThe continuity error.protected MPEG2MPTS.MPEG2MPTSBuffer.MPEG2PacketcurrentPacketThe current packet.static intINVALIDThe Constant INVALID.protected IMPEG2StreamListenerlistenerThe listener.protected MPEG2PESPacketpesPacketintPIDThe pid.
 - 
Constructor SummaryConstructors Constructor Description MPEG2PESPacketProcessor()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcheckContinuity()Check continuity.intfindPESHeader()Find pes header.intgetCodec()abstract voidhandlePESData(int length, MPEG2PESPacket.PESHeader header)Handle pes data.voidnotifyAdaptationHeaders(boolean deliver)Notify adaptation headers.voidprocessMpeg2Buffer(int pid, byte[] bytes, int offset, int count)Process mpeg2 raw buffer.voidprocessMpeg2Packet(MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet packet)Process mpeg2 packet.MPEG2PESPacket.PESHeaderprocessPESHeader()Process pes header.voidsetCodec(int codec)
 
- 
- 
- 
Field Detail- 
INVALIDpublic static final int INVALID The Constant INVALID.- See Also:
- Constant Field Values
 
 - 
PIDpublic int PID The pid.
 - 
continuityCounterpublic int continuityCounter The continuity counter.
 - 
continuityErrorpublic boolean continuityError The continuity error.
 - 
listenerprotected IMPEG2StreamListener listener The listener.
 - 
pesPacketprotected MPEG2PESPacket pesPacket 
 - 
currentPacketprotected MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet currentPacket The current packet.
 
- 
 - 
Method Detail- 
notifyAdaptationHeaderspublic void notifyAdaptationHeaders(boolean deliver) Description copied from interface:IMPEG2PacketProcessorNotify adaptation headers.- Specified by:
- notifyAdaptationHeadersin interface- IMPEG2PacketProcessor
- Parameters:
- deliver- the notify
 
 - 
setCodecpublic void setCodec(int codec) 
 - 
getCodecpublic int getCodec() 
 - 
handlePESDatapublic abstract void handlePESData(int length, MPEG2PESPacket.PESHeader header)Handle pes data.- Parameters:
- length- the length
- header- the header
 
 - 
checkContinuitypublic void checkContinuity() Check continuity.
 - 
findPESHeaderpublic int findPESHeader() Find pes header.- Returns:
- the int
 
 - 
processMpeg2Bufferpublic void processMpeg2Buffer(int pid, byte[] bytes, int offset, int count)Description copied from interface:IMPEG2PacketProcessorProcess mpeg2 raw buffer.- Specified by:
- processMpeg2Bufferin interface- IMPEG2PacketProcessor
 
 - 
processMpeg2Packetpublic final void processMpeg2Packet(MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet packet) throws java.io.IOException Description copied from interface:IMPEG2PacketProcessorProcess mpeg2 packet.- Specified by:
- processMpeg2Packetin interface- IMPEG2PacketProcessor
- Parameters:
- packet- the packet
- Throws:
- java.io.IOException- Signals that an I/O exception has occurred.
 
 - 
processPESHeaderpublic MPEG2PESPacket.PESHeader processPESHeader() Process pes header.- Returns:
- the pES header
 
 
- 
 
-