org.jcodec.movtool.CompoundMP4Edit 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.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);
}
}
}