net.sourceforge.jaad.aac.syntax.IBitStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcodec Show documentation
Show all versions of jcodec Show documentation
Pure Java implementation of video/audio codecs and formats
package net.sourceforge.jaad.aac.syntax;
import net.sourceforge.jaad.aac.AACException;
/**
* This class is part of JAAD ( jaadec.sourceforge.net ) that is distributed
* under the Public Domain license. Code changes provided by the JCodec project
* are distributed under FreeBSD license.
*
* @author in-somnia
*/
public interface IBitStream {
void destroy();
void setData(byte[] data);
void byteAlign() throws AACException;
void reset();
int getPosition();
int getBitsLeft();
int readBits(int n) throws AACException;
int readBit() throws AACException;
boolean readBool() throws AACException;
int peekBits(int n) throws AACException;
int peekBit() throws AACException;
void skipBits(int n) throws AACException;
void skipBit() throws AACException;
int maskBits(int n);
}