org.jcodec.codecs.mpeg12
Class SegmentReader

java.lang.Object
  extended by org.jcodec.codecs.mpeg12.SegmentReader
Direct Known Subclasses:
MPEGES, MPSDemuxer

public class SegmentReader
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Pulls frames from MPEG elementary stream

Author:
The JCodec project

Field Summary
protected  int curMarker
           
 
Constructor Summary
SegmentReader(ReadableByteChannel channel)
           
SegmentReader(ReadableByteChannel channel, int fetchSize)
           
 
Method Summary
 long curPos()
           
 boolean read(ByteBuffer out, int length)
           
 boolean readToNextMarker(ByteBuffer out)
           
 boolean skipToMarker()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

curMarker

protected int curMarker
Constructor Detail

SegmentReader

public SegmentReader(ReadableByteChannel channel)
              throws IOException
Throws:
IOException

SegmentReader

public SegmentReader(ReadableByteChannel channel,
                     int fetchSize)
              throws IOException
Throws:
IOException
Method Detail

readToNextMarker

public final boolean readToNextMarker(ByteBuffer out)
                               throws IOException
Throws:
IOException

skipToMarker

public final boolean skipToMarker()
                           throws IOException
Throws:
IOException

read

public final boolean read(ByteBuffer out,
                          int length)
                   throws IOException
Throws:
IOException

curPos

public final long curPos()


Copyright © 2013. All Rights Reserved.