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 TypeFieldDescriptionintThe continuity counter.booleanThe continuity error.protected MPEG2MPTS.MPEG2MPTSBuffer.MPEG2PacketThe current packet.static final intThe Constant INVALID.protected IMPEG2StreamListenerThe listener.protected MPEG2PESPacketintThe pid. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck continuity.intFind 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.final voidProcess mpeg2 packet.Process pes header.voidsetCodec(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:IMPEG2PacketProcessorNotify adaptation headers.- Specified by:
notifyAdaptationHeadersin 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:IMPEG2PacketProcessorProcess mpeg2 raw buffer.- Specified by:
processMpeg2Bufferin interfaceIMPEG2PacketProcessor
-
processMpeg2Packet
public final void processMpeg2Packet(MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet packet) throws IOException Description copied from interface:IMPEG2PacketProcessorProcess mpeg2 packet.- Specified by:
processMpeg2Packetin interfaceIMPEG2PacketProcessor- Parameters:
packet- the packet- Throws:
IOException- Signals that an I/O exception has occurred.
-
processPESHeader
Process pes header.- Returns:
- the pES header
-