org.jcodec.containers.mps
Class MPSDemuxer
java.lang.Object
org.jcodec.codecs.mpeg12.SegmentReader
org.jcodec.containers.mps.MPSDemuxer
public class MPSDemuxer
- extends SegmentReader
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
- Author:
- The JCodec project
|
Method Summary |
static boolean |
audioStream(Integer streamId)
|
protected void |
findStreams()
|
List<MPSDemuxer.Track> |
getAudioTracks()
|
List<MPSDemuxer.Track> |
getTracks()
|
List<MPSDemuxer.Track> |
getVideoTracks()
|
static boolean |
mediaStream(int streamId)
|
static MPSDemuxer.PESPacket |
mpeg1Pes(int b0,
int len,
int streamId,
ByteBuffer is,
long pos)
|
static MPSDemuxer.PESPacket |
mpeg2Pes(int b0,
int len,
int streamId,
ByteBuffer is,
long pos)
|
MPSDemuxer.PESPacket |
nextPacket(ByteBuffer out)
|
static int |
probe(ByteBuffer b)
|
static MPSDemuxer.PESPacket |
readPES(ByteBuffer iss,
long pos)
|
static long |
readTs(ByteBuffer is)
|
static long |
readTs(ByteBuffer is,
int c)
|
void |
seekByte(long offset)
|
static boolean |
videoStream(int streamId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VIDEO_MIN
public static final int VIDEO_MIN
- See Also:
- Constant Field Values
VIDEO_MAX
public static final int VIDEO_MAX
- See Also:
- Constant Field Values
AUDIO_MIN
public static final int AUDIO_MIN
- See Also:
- Constant Field Values
AUDIO_MAX
public static final int AUDIO_MAX
- See Also:
- Constant Field Values
PRIVATE_1
public static final int PRIVATE_1
- See Also:
- Constant Field Values
PRIVATE_2
public static final int PRIVATE_2
- See Also:
- Constant Field Values
MPSDemuxer
public MPSDemuxer(SeekableByteChannel channel)
throws IOException
- Throws:
IOException
findStreams
protected void findStreams()
throws IOException
- Throws:
IOException
seekByte
public void seekByte(long offset)
throws IOException
- Throws:
IOException
nextPacket
public MPSDemuxer.PESPacket nextPacket(ByteBuffer out)
throws IOException
- Throws:
IOException
readPES
public static MPSDemuxer.PESPacket readPES(ByteBuffer iss,
long pos)
mpeg1Pes
public static MPSDemuxer.PESPacket mpeg1Pes(int b0,
int len,
int streamId,
ByteBuffer is,
long pos)
readTs
public static long readTs(ByteBuffer is,
int c)
mpeg2Pes
public static MPSDemuxer.PESPacket mpeg2Pes(int b0,
int len,
int streamId,
ByteBuffer is,
long pos)
readTs
public static long readTs(ByteBuffer is)
mediaStream
public static final boolean mediaStream(int streamId)
videoStream
public static final boolean videoStream(int streamId)
audioStream
public static boolean audioStream(Integer streamId)
getTracks
public List<MPSDemuxer.Track> getTracks()
getVideoTracks
public List<MPSDemuxer.Track> getVideoTracks()
getAudioTracks
public List<MPSDemuxer.Track> getAudioTracks()
probe
public static int probe(ByteBuffer b)
Copyright © 2013. All Rights Reserved.