All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcodec.codecs.aac.BlockReader Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy