org.monte.media.seq.SEQDemultiplexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.monte.media.amigaatari Show documentation
Show all versions of org.monte.media.amigaatari Show documentation
A library for processing Amiga and Atari still images, video, audio and meta-data.
The newest version!
/*
* @(#)Main.java
* Copyright © 2023 Werner Randelshofer, Switzerland. MIT License.
*/
package org.monte.media.seq;
import org.monte.media.av.Demultiplexer;
import org.monte.media.av.Track;
import java.io.File;
import java.io.IOException;
/**
* {@code SEQDemultiplexer}.
*
* @author Werner Randelshofer
*/
public class SEQDemultiplexer extends SEQReader implements Demultiplexer {
private Track[] tracks;
public SEQDemultiplexer(File file) throws IOException {
super(file);
}
public SEQDemultiplexer(File file, boolean variableFramerate) throws IOException {
super(file, variableFramerate);
}
@Override
public Track[] getTracks() {
if (tracks == null) {
tracks = new Track[]{new SEQTrack(this)};
}
return tracks.clone();
}
}