com.googlecode.mp4parser.h264.read
Class BitstreamReader

java.lang.Object
  extended by com.googlecode.mp4parser.h264.read.BitstreamReader
Direct Known Subclasses:
CAVLCReader

public class BitstreamReader
extends Object

A dummy implementation of H264 RBSP reading

Author:
Stanislav Vitvitskiy

Field Summary
protected static int bitsRead
           
protected  CharCache debugBits
           
 
Constructor Summary
BitstreamReader(InputStream is)
           
 
Method Summary
 void close()
           
 long getBitPosition()
           
 int getCurBit()
           
 boolean isByteAligned()
           
 boolean moreRBSPData()
           
 int peakNextBits(int n)
           
 int read1Bit()
           
 int readByte()
           
 long readNBit(int n)
           
 long readRemainingByte()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitsRead

protected static int bitsRead

debugBits

protected CharCache debugBits
Constructor Detail

BitstreamReader

public BitstreamReader(InputStream is)
                throws IOException
Throws:
IOException
Method Detail

read1Bit

public int read1Bit()
             throws IOException
Throws:
IOException

readNBit

public long readNBit(int n)
              throws IOException
Throws:
IOException

readByte

public int readByte()
             throws IOException
Throws:
IOException

moreRBSPData

public boolean moreRBSPData()
                     throws IOException
Throws:
IOException

getBitPosition

public long getBitPosition()

readRemainingByte

public long readRemainingByte()
                       throws IOException
Throws:
IOException

peakNextBits

public int peakNextBits(int n)
                 throws IOException
Throws:
IOException

isByteAligned

public boolean isByteAligned()

close

public void close()
           throws IOException
Throws:
IOException

getCurBit

public int getCurBit()


Copyright © 2012. All Rights Reserved.