Class ANIMFrame

java.lang.Object
org.monte.media.anim.ANIMFrame
Direct Known Subclasses:
ANIMDeltaFrame, ANIMKeyFrame

public abstract class ANIMFrame extends Object
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
  • Field Details

  • Constructor Details

    • ANIMFrame

      public ANIMFrame()
  • Method Details

    • addAudioCommand

      public void addAudioCommand(ANIMAudioCommand command)
      Adds an audio command to this anim frame.
    • getAudioCommands

      public ANIMAudioCommand[] 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

      public void setColorModel(ColorModel cm)
    • getColorModel

      public ColorModel 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

      public abstract void decode(AmigaBitmapImage bitmap, ANIMMovieResources track)
    • getTopBound

      public int getTopBound(ANIMMovieResources track)
    • getBottomBound

      public int getBottomBound(ANIMMovieResources track)
    • getLeftBound

      public int getLeftBound(ANIMMovieResources track)
    • getRightBound

      public int getRightBound(ANIMMovieResources track)
    • 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.