Class BitstreamReader
- java.lang.Object
-
- org.mp4parser.muxer.tracks.h264.parsing.read.BitstreamReader
-
- Direct Known Subclasses:
CAVLCReader
public class BitstreamReader extends Object
A dummy implementation of H264 RBSP reading- Author:
- Stanislav Vitvitskiy
-
-
Constructor Summary
Constructors Constructor Description BitstreamReader(InputStream is)
-
Method Summary
Modifier and Type Method Description voidclose()longgetBitPosition()intgetCurBit()booleanisByteAligned()booleanmoreRBSPData()intpeakNextBits(int n)intread1Bit()booleanreadBool()intreadByte()longreadNBit(int n)longreadRemainingByte()
-
-
-
Field Detail
-
bitsRead
protected static int bitsRead
-
debugBits
protected CharCache debugBits
-
-
Constructor Detail
-
BitstreamReader
public BitstreamReader(InputStream is) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readBool
public boolean readBool() throws IOException- Throws:
IOException
-
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()
-
-