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

org.jcodec.containers.mp4.boxes.LoadSettingsBox Maven / Gradle / Ivy

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

import java.nio.ByteBuffer;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * Load setting atom
 * 
 * @author The JCodec project
 * 
 */
public class LoadSettingsBox extends Box {
    private int preloadStartTime;
    private int preloadDuration;
    private int preloadFlags;
    private int defaultHints;

    public static String fourcc() {
        return "load";
    }

    public LoadSettingsBox(Header header) {
        super(header);
    }

    public void parse(ByteBuffer input) {
        preloadStartTime = input.getInt();
        preloadDuration = input.getInt();
        preloadFlags = input.getInt();
        defaultHints = input.getInt();
    }

    protected void doWrite(ByteBuffer out) {
        out.putInt(preloadStartTime);
        out.putInt(preloadDuration);
        out.putInt(preloadFlags);
        out.putInt(defaultHints);
    }

    public int getPreloadStartTime() {
        return preloadStartTime;
    }

    public int getPreloadDuration() {
        return preloadDuration;
    }

    public int getPreloadFlags() {
        return preloadFlags;
    }

    public int getDefaultHints() {
        return defaultHints;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy