Class ANIMFrame
java.lang.Object
org.monte.media.anim.ANIMFrame
- Direct Known Subclasses:
ANIMDeltaFrame,ANIMKeyFrame
- Author:
- Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected ColorModelprotected byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAudioCommand(ANIMAudioCommand command) Adds an audio command to this anim frame.voidRemoves duplicate audio commands.abstract voiddecode(AmigaBitmapImage bitmap, ANIMMovieResources track) Returns audio commands associated with this frame.intgetBits()intgetBottomBound(ANIMMovieResources track) intintgetLeftBound(ANIMMovieResources track) intlongintgetRightBound(ANIMMovieResources track) intgetTopBound(ANIMMovieResources track) booleanReturns true if the frame can be decoded over both the previous frame or the subsequent frame.voidsetAbsTime(long abstime) voidsetBits(int bits) voidvoidsetData(byte[] data) voidsetHeight(int h) voidsetInterleave(int interleave) voidsetMask(int mask) voidsetOperation(int operation) voidsetRelTime(long reltime) voidsetWidth(int w) voidsetX(int x) voidsetY(int y)
-
Field Details
-
colorModel
-
data
protected byte[] data -
BadBitsOP_GeneralDelta
protected static final int BadBitsOP_GeneralDelta- See Also:
-
BIT_LongData
protected static final int BIT_LongData- See Also:
-
BIT_XOR
protected static final int BIT_XOR- See Also:
-
BIT_OneInfoListForAllPlanes
protected static final int BIT_OneInfoListForAllPlanes- See Also:
-
BIT_RLC
protected static final int BIT_RLC- See Also:
-
BIT_Vertical
protected static final int BIT_Vertical- See Also:
-
BIT_LongInfoOffsets
protected static final int BIT_LongInfoOffsets- See Also:
-
BadBitsOP_ByteVertical
protected static final int BadBitsOP_ByteVertical- See Also:
-
-
Constructor Details
-
ANIMFrame
public ANIMFrame()
-
-
Method Details
-
addAudioCommand
Adds an audio command to this anim frame. -
getAudioCommands
Returns audio commands associated with this frame. Returns null if there are no audio commands available for this frame. -
cleanUpAudioCommands
public void cleanUpAudioCommands()Removes duplicate audio commands. -
setColorModel
-
getColorModel
-
setData
public void setData(byte[] data) -
setOperation
public void setOperation(int operation) -
setMask
public void setMask(int mask) -
setWidth
public void setWidth(int w) -
setHeight
public void setHeight(int h) -
setX
public void setX(int x) -
setY
public void setY(int y) -
setAbsTime
public void setAbsTime(long abstime) -
setRelTime
public void setRelTime(long reltime) -
setInterleave
public void setInterleave(int interleave) -
setBits
public void setBits(int bits) -
getOperation
public int getOperation() -
getBits
public int getBits() -
getRelTime
public long getRelTime() -
getInterleave
public int getInterleave() -
decode
-
getTopBound
-
getBottomBound
-
getLeftBound
-
getRightBound
-
isBidirectional
public boolean isBidirectional()Returns true if the frame can be decoded over both the previous frame or the subsequent frame. Bidirectional frames can be used efficiently for forward and backward playing a movie.All key frames are bidirectional. Delta frames which use an XOR OP-mode are bidirectional as well.
-