net.sourceforge.jaad.aac.syntax.DSE 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
*/
class DSE extends Element {
private byte[] dataStreamBytes;
DSE() {
super();
}
void decode(IBitStream _in) throws AACException {
final boolean byteAlign = _in.readBool();
int count = _in.readBits(8);
if(count==255) count += _in.readBits(8);
if(byteAlign) _in.byteAlign();
dataStreamBytes = new byte[count];
for(int i = 0; i