org.monte.media.anim.ANIMWriter 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.anim;
import org.monte.media.av.Format;
import org.monte.media.av.FormatKeys.MediaType;
import org.monte.media.av.MovieWriter;
import org.monte.media.math.Rational;
import javax.imageio.stream.ImageOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import static org.monte.media.anim.AmigaVideoFormatKeys.ENCODING_ANIM_OP5;
import static org.monte.media.anim.AmigaVideoFormatKeys.toCAMG;
import static org.monte.media.av.FormatKeys.EncodingKey;
import static org.monte.media.av.FormatKeys.MIME_ANIM;
import static org.monte.media.av.FormatKeys.MediaTypeKey;
import static org.monte.media.av.FormatKeys.MimeTypeKey;
import static org.monte.media.av.codec.video.VideoFormatKeys.DataClassKey;
import static org.monte.media.av.codec.video.VideoFormatKeys.FixedFrameRateKey;
/**
* {@code ANIMWriter}.
*
* @author Werner Randelshofer
*/
public class ANIMWriter extends ANIMMultiplexer implements MovieWriter {
public final static Format ANIM = new Format(MediaTypeKey, MediaType.FILE, MimeTypeKey, MIME_ANIM);
@Override
public Format getFileFormat() throws IOException {
return ANIM;
}
@Override
public Rational getDuration(int track) {
throw new UnsupportedOperationException("Not supported yet.");
}
private static class Track {
Format format;
}
private ArrayList