public abstract class ANIMFrame
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BadBitsOP_ByteVertical |
protected static int |
BadBitsOP_GeneralDelta |
protected static int |
BIT_LongData |
protected static int |
BIT_LongInfoOffsets |
protected static int |
BIT_OneInfoListForAllPlanes |
protected static int |
BIT_RLC |
protected static int |
BIT_Vertical |
protected static int |
BIT_XOR |
protected java.awt.image.ColorModel |
colorModel |
protected byte[] |
data |
Constructor and Description |
---|
ANIMFrame() |
Modifier and Type | Method and Description |
---|---|
void |
addAudioCommand(ANIMAudioCommand command)
Adds an audio command to this anim frame.
|
void |
cleanUpAudioCommands()
Removes duplicate audio commands.
|
abstract void |
decode(BitmapImage bitmap,
ANIMMovieTrack track) |
ANIMAudioCommand[] |
getAudioCommands()
Returns audio commands associated with this frame.
|
int |
getBits() |
int |
getBottomBound(ANIMMovieTrack track) |
java.awt.image.ColorModel |
getColorModel() |
int |
getInterleave() |
int |
getLeftBound(ANIMMovieTrack track) |
int |
getOperation() |
long |
getRelTime() |
int |
getRightBound(ANIMMovieTrack track) |
int |
getTopBound(ANIMMovieTrack track) |
boolean |
isBidirectional()
Returns true if the frame can be decoded over both the previous frame
or the subsequent frame.
|
void |
setAbsTime(long abstime) |
void |
setBits(int bits) |
void |
setColorModel(java.awt.image.ColorModel cm) |
void |
setData(byte[] data) |
void |
setHeight(int h) |
void |
setInterleave(int interleave) |
void |
setMask(int mask) |
void |
setOperation(int operation) |
void |
setRelTime(long reltime) |
void |
setWidth(int w) |
void |
setX(int x) |
void |
setY(int y) |
protected java.awt.image.ColorModel colorModel
protected byte[] data
protected static final int BadBitsOP_GeneralDelta
protected static final int BIT_LongData
protected static final int BIT_XOR
protected static final int BIT_OneInfoListForAllPlanes
protected static final int BIT_RLC
protected static final int BIT_Vertical
protected static final int BIT_LongInfoOffsets
protected static final int BadBitsOP_ByteVertical
public void addAudioCommand(ANIMAudioCommand command)
public ANIMAudioCommand[] getAudioCommands()
public void cleanUpAudioCommands()
public void setColorModel(java.awt.image.ColorModel cm)
public java.awt.image.ColorModel getColorModel()
public void setData(byte[] data)
public void setOperation(int operation)
public void setMask(int mask)
public void setWidth(int w)
public void setHeight(int h)
public void setX(int x)
public void setY(int y)
public void setAbsTime(long abstime)
public void setRelTime(long reltime)
public void setInterleave(int interleave)
public void setBits(int bits)
public int getOperation()
public int getBits()
public long getRelTime()
public int getInterleave()
public abstract void decode(BitmapImage bitmap, ANIMMovieTrack track)
public int getTopBound(ANIMMovieTrack track)
public int getBottomBound(ANIMMovieTrack track)
public int getLeftBound(ANIMMovieTrack track)
public int getRightBound(ANIMMovieTrack track)
public boolean isBidirectional()
All key frames are bidirectional. Delta frames which use an XOR OP-mode are bidirectional as well.