public class ANIMWriter extends ANIMMultiplexer implements MovieWriter
ANIMWriter
.Modifier and Type | Field and Description |
---|---|
static Format |
ANIM |
inputTime
A2024_MONITOR_ID, absTime, DBLNTSC_MONITOR_ID, DBLPAL_MONITOR_ID, DEFAULT_MONITOR_ID, EHB_MODE, EURO36_MONITOR_ID, EURO72_MONITOR_ID, frameCount, HAM_MODE, MODE_MASK, MONITOR_ID_MASK, MULTISCAN_MONITOR_ID, NTSC_MONITOR_ID, PAL_MONITOR_ID, PROTO_MONITOR_ID, SUPER72_MONITOR_ID
Constructor and Description |
---|
ANIMWriter(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
int |
addTrack(Format format)
Adds a track to the writer for a suggested input format.
|
Rational |
getDuration(int track)
Returns the duration of the track in seconds.
|
Format |
getFileFormat()
Returns the file format.
|
Format |
getFormat(int track)
Returns the media format of the specified track.
|
int |
getTrackCount()
Returns the number of tracks.
|
boolean |
isDataLimitReached()
Returns true if the limit for media data has been reached.
|
boolean |
isEmpty(int track)
Returns true if the specified track has no samples.
|
boolean |
isVFRSupported() |
write
close, finish, getCAMG, getJiffies, getMovieTime, setCAMG, setJiffies, writeFrame
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, write
public static final Format ANIM
public ANIMWriter(java.io.File file) throws java.io.IOException
java.io.IOException
public Format getFileFormat() throws java.io.IOException
MovieWriter
getFileFormat
in interface MovieWriter
java.io.IOException
public Rational getDuration(int track)
MovieWriter
getDuration
in interface MovieWriter
public int addTrack(Format format) throws java.io.IOException
MovieWriter
The format should at least specify the desired FormatKeys.MediaType
.
The actual input format is a refined version of the suggested format. For
example, if a MovieWriter only supports fixed frame rate video, then the
MovieWriter will extend the format with that information.
If the suggested input format is not compatible, then an IOException is thrown. For example, if a MovieWriter only supports fixed frame rate video, but a format with variable frame rate was requested.
addTrack
in interface MovieWriter
format
- The desired input format of the track. The actual input
format may be a refined version of the specified format.java.io.IOException
public Format getFormat(int track)
MovieWriter
MovieWriter.addTrack(org.monte.media.Format)
.getFormat
in interface MovieWriter
track
- Track number.public int getTrackCount()
MovieWriter
getTrackCount
in interface MovieWriter
public boolean isVFRSupported()
public boolean isDataLimitReached()
MovieWriter
This limit is imposed by data structures of the movie file which will overflow if more samples are added to the movie.
FIXME - Maybe replace by getCapacity():long.
isDataLimitReached
in interface MovieWriter
public boolean isEmpty(int track)
MovieWriter
isEmpty
in interface MovieWriter