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

org.jcodec.containers.mp4.Brand Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package org.jcodec.containers.mp4;
import org.jcodec.containers.mp4.boxes.FileTypeBox;

import java.util.Arrays;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author The JCodec project
 *
 */
public final class Brand {
    public final static Brand MOV = new Brand("qt  ", 0x00000200, new String[] { "qt  " });
    public final static Brand MP4 = new Brand("isom", 0x00000200, new String[] { "isom", "iso2", "avc1", "mp41" });

    private FileTypeBox ftyp;

    private Brand(String majorBrand, int version, String[] compatible) {
        ftyp = FileTypeBox.createFileTypeBox(majorBrand, version, Arrays.asList(compatible));
    }

    public FileTypeBox getFileTypeBox() {
        return ftyp;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy