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

org.jcodec.movtool.CompoundMP4Edit Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package org.jcodec.movtool;

import java.util.List;

import org.jcodec.containers.mp4.boxes.MovieBox;
import org.jcodec.containers.mp4.boxes.MovieFragmentBox;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * Like MP4Edit
 * 
 * @author The JCodec project
 * 
 */
public class CompoundMP4Edit implements MP4Edit {

    private List edits;

    public CompoundMP4Edit(List edits) {
        this.edits = edits;
    }

    @Override
    public void apply(MovieBox mov, MovieFragmentBox[] fragmentBox) {
        for (MP4Edit command : edits) {
            command.apply(mov, fragmentBox);
        }
    }

    @Override
    public void apply(MovieBox mov) {
        for (MP4Edit command : edits) {
            command.apply(mov);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy