java.lang.Object
org.monte.media.anim.ANIMOutputStream
- Direct Known Subclasses:
ANIMMultiplexer
ANIMOutputStream.
Reference:
Commodore-Amiga, Inc. (1991) Amiga ROM Kernel Reference Manual. Devices.
Third Edition. Reading: Addison-Wesley.
- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA2024, 60fps (I don't know the real value).protected intCurrent absolute frame time.static final intDBLNTSC, 58fps, 44:52.static final intDBLPAL, 48fps, 44:44.static final intDefault ID chooses a system dependent screen mode.static final intCAMG EHB mode.static final intEURO36, 73fps, 44:44.static final intEURO72, 69fps, 44:44.protected intFrame count.static final intCAMG HAM mode.static final intCAMG Mode mask.static final intCAMG monitor ID mask.static final intMULTISCAN (VGA), 58fps, 44:44.static final intNTSC, 60fps, 44:52.static final intPAL, 50fps, 44:44.static final intPROTO, 60fps (I don't know the real value).static final intSUPER72, 71fps, 34:40. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the movie file as well as the stream being filtered.voidfinish()Finishes writing the contents of the QuickTime output stream without closing the underlying stream.intgetCAMG()Gets the Commodore Amiga Graphics Mode.intGets the time base of the movie.longvoidsetCAMG(int newValue) Sets the Commodore Amiga Graphics Mode.voidsetJiffies(int newValue) Sets the time base of the movie.voidwriteFrame(AmigaBitmapImage image, int duration)
-
Field Details
-
MONITOR_ID_MASK
public static final int MONITOR_ID_MASKCAMG monitor ID mask.- See Also:
-
DEFAULT_MONITOR_ID
public static final int DEFAULT_MONITOR_IDDefault ID chooses a system dependent screen mode. We always fall back to NTSC OCS with 60fps.The default monitor ID triggers OCS mode! OCS stands for "Original Chip Set". The OCS chip set only had 4 bits per color register. All later chip sets hat 8 bits per color register.
- See Also:
-
NTSC_MONITOR_ID
public static final int NTSC_MONITOR_IDNTSC, 60fps, 44:52.- See Also:
-
PAL_MONITOR_ID
public static final int PAL_MONITOR_IDPAL, 50fps, 44:44.- See Also:
-
MULTISCAN_MONITOR_ID
public static final int MULTISCAN_MONITOR_IDMULTISCAN (VGA), 58fps, 44:44.- See Also:
-
A2024_MONITOR_ID
public static final int A2024_MONITOR_IDA2024, 60fps (I don't know the real value).- See Also:
-
PROTO_MONITOR_ID
public static final int PROTO_MONITOR_IDPROTO, 60fps (I don't know the real value).- See Also:
-
EURO72_MONITOR_ID
public static final int EURO72_MONITOR_IDEURO72, 69fps, 44:44.- See Also:
-
EURO36_MONITOR_ID
public static final int EURO36_MONITOR_IDEURO36, 73fps, 44:44.- See Also:
-
SUPER72_MONITOR_ID
public static final int SUPER72_MONITOR_IDSUPER72, 71fps, 34:40.- See Also:
-
DBLNTSC_MONITOR_ID
public static final int DBLNTSC_MONITOR_IDDBLNTSC, 58fps, 44:52.- See Also:
-
DBLPAL_MONITOR_ID
public static final int DBLPAL_MONITOR_IDDBLPAL, 48fps, 44:44.- See Also:
-
MODE_MASK
public static final int MODE_MASKCAMG Mode mask.- See Also:
-
HAM_MODE
public static final int HAM_MODECAMG HAM mode.- See Also:
-
EHB_MODE
public static final int EHB_MODECAMG EHB mode.- See Also:
-
frameCount
protected int frameCountFrame count. -
absTime
protected int absTimeCurrent absolute frame time.
-
-
Constructor Details
-
ANIMOutputStream
- Throws:
IOException
-
ANIMOutputStream
- Throws:
IOException
-
-
Method Details
-
setJiffies
public void setJiffies(int newValue) Sets the time base of the movie. The default value is 60. -
getJiffies
public int getJiffies()Gets the time base of the movie. The default value is 60. -
setCAMG
public void setCAMG(int newValue) Sets the Commodore Amiga Graphics Mode. The default value is 0.The graphics mode is an or-combination of the monitor ID and the mode ID.
Example:
setCAMG(PAL_MONITOR_ID|HAM_MODE);
Also sets the Jiffies for the Graphics Mode.
-
getCAMG
public int getCAMG()Gets the Commodore Amiga Graphics Mode. The default value is 0. -
finish
Finishes writing the contents of the QuickTime output stream without closing the underlying stream. Use this method when applying multiple filters in succession to the same output stream.- Throws:
IllegalStateException- if the dimension of the video track has not been specified or determined yet.IOException- if an I/O exception has occurred
-
close
Closes the movie file as well as the stream being filtered.- Throws:
IOException- if an I/O error has occurred
-
writeFrame
- Throws:
IOException
-
getMovieTime
public long getMovieTime()
-