org.jcodec.codecs.mpeg12
Class MPEGUtil

java.lang.Object
  extended by org.jcodec.codecs.mpeg12.MPEGUtil

public class MPEGUtil
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License

Author:
The JCodec project

Constructor Summary
MPEGUtil()
           
 
Method Summary
static ByteBuffer gotoMarker(ByteBuffer buf, int n, int mmin, int mmax)
          Finds next Nth MPEG bitstream marker 0x000001xx and returns the data that preceeds it as a ByteBuffer slice Segment byte order is always little endian
static ByteBuffer gotoNextMarker(ByteBuffer buf)
          Finds next MPEG bitstream marker 0x000001xx and returns the data that preceeds it as a ByteBuffer slice Segment byte order is always little endian
static ByteBuffer nextSegment(ByteBuffer buf)
          Returns next segment between two MPEG marker i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPEGUtil

public MPEGUtil()
Method Detail

gotoNextMarker

public static final ByteBuffer gotoNextMarker(ByteBuffer buf)
Finds next MPEG bitstream marker 0x000001xx and returns the data that preceeds it as a ByteBuffer slice Segment byte order is always little endian

Parameters:
buf -
Returns:

gotoMarker

public static final ByteBuffer gotoMarker(ByteBuffer buf,
                                          int n,
                                          int mmin,
                                          int mmax)
Finds next Nth MPEG bitstream marker 0x000001xx and returns the data that preceeds it as a ByteBuffer slice Segment byte order is always little endian

Parameters:
buf -
Returns:

nextSegment

public static final ByteBuffer nextSegment(ByteBuffer buf)
Returns next segment between two MPEG marker i.e. searches for the next marker if the stream is not at the marker boundary already

Parameters:
buf -
Returns:


Copyright © 2013. All Rights Reserved.