org.jcodec.codecs.aac.BlockReader 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 org.jcodec.codecs.aac;
import static org.jcodec.codecs.aac.BlockType.TYPE_END;
import org.jcodec.codecs.aac.blocks.Block;
import org.jcodec.common.io.BitReader;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* Reads blocks of AAC frame
*
* @author The JCodec project
*
*/
public class BlockReader {
public Block nextBlock(BitReader bits) {
BlockType type = BlockType.values()[(int) (long) bits.readNBit(3)];
if (type == TYPE_END)
return null;
int id = (int) bits.readNBit(4);
return null;
}
}