IMPEG2PacketProcessorMPEG2AudioPacketProcessor, MPEG2PESAssembler, MPEG2VideoPacketProcessorpublic abstract class MPEG2PESPacketProcessor extends Object implements IMPEG2PacketProcessor
| Modifier and Type | Field | Description |
|---|---|---|
int |
continuityCounter |
The continuity counter.
|
boolean |
continuityError |
The continuity error.
|
protected MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet |
currentPacket |
The current packet.
|
static int |
INVALID |
The Constant INVALID.
|
protected IMPEG2StreamListener |
listener |
The listener.
|
protected MPEG2PESPacket |
pesPacket |
|
int |
PID |
The pid.
|
| Constructor | Description |
|---|---|
MPEG2PESPacketProcessor() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkContinuity() |
Check continuity.
|
int |
findPESHeader() |
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.
|
void |
processMpeg2Packet(MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet packet) |
Process mpeg2 packet.
|
MPEG2PESPacket.PESHeader |
processPESHeader() |
Process pes header.
|
void |
setCodec(int codec) |
public int continuityCounter
public boolean continuityError
protected MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet currentPacket
public static final int INVALID
protected IMPEG2StreamListener listener
protected MPEG2PESPacket pesPacket
public int PID
public void checkContinuity()
public int findPESHeader()
public int getCodec()
public abstract void handlePESData(int length,
MPEG2PESPacket.PESHeader header)
length - the lengthheader - the headerpublic void notifyAdaptationHeaders(boolean deliver)
IMPEG2PacketProcessornotifyAdaptationHeaders in interface IMPEG2PacketProcessordeliver - the notifypublic void processMpeg2Buffer(int pid,
byte[] bytes,
int offset,
int count)
IMPEG2PacketProcessorprocessMpeg2Buffer in interface IMPEG2PacketProcessorpublic final void processMpeg2Packet(MPEG2MPTS.MPEG2MPTSBuffer.MPEG2Packet packet) throws java.io.IOException
IMPEG2PacketProcessorprocessMpeg2Packet in interface IMPEG2PacketProcessorpacket - the packetjava.io.IOException - Signals that an I/O exception has occurred.public MPEG2PESPacket.PESHeader processPESHeader()
public void setCodec(int codec)