
org.jcodec.codecs.aac.BlockWriter 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.BitWriter;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* Writes blocks to form AAC frame
*
* @author The JCodec project
*
*/
public class BlockWriter {
public void nextBlock(BitWriter bits, Block block) {
bits.writeNBit(block.getType().getCode(), 3);
if (block.getType() == TYPE_END)
return;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy