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

org.jcodec.codecs.mpeg4.es.SL Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy