org.jcodec.codecs.mpeg4.es.SL 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.mpeg4.es;
import java.nio.ByteBuffer;
import org.junit.Assert;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
*/
public class SL extends Descriptor {
public SL(int tag, int size) {
super(tag, size);
}
public SL() {
super(tag());
}
protected void doWrite(ByteBuffer out) {
out.put((byte)0x2);
}
protected void parse(ByteBuffer input) {
Assert.assertEquals(0x2, input.get() & 0xff);
}
public static int tag() {
return 0x06;
}
}