Copyright 2012-04-26 Werner Randelshofer

org.monte.media.anim
Class ANIMReader

java.lang.Object
  extended by org.monte.media.anim.ANIMReader
Direct Known Subclasses:
ANIMDemultiplexer

public class ANIMReader
extends java.lang.Object

SEQReader.

Version:
1.0 2011-02-19 Created.
Author:
Werner Randelshofer

Constructor Summary
ANIMReader(java.io.File file)
           
 
Method Summary
 void close()
           
 BitmapImage createCompatibleBitmap()
           
 int getDuration(int index)
          Reads the duration of the specified frame.
 int getFrameCount()
           
 int getJiffies()
           
 int getTimeBase()
           
 void readFrame(int index, BitmapImage image)
          Reads a frame into the supplied image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ANIMReader

public ANIMReader(java.io.File file)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getFrameCount

public int getFrameCount()

getTimeBase

public int getTimeBase()

createCompatibleBitmap

public BitmapImage createCompatibleBitmap()

readFrame

public void readFrame(int index,
                      BitmapImage image)
Reads a frame into the supplied image.


getDuration

public int getDuration(int index)
Reads the duration of the specified frame.


getJiffies

public int getJiffies()

Copyright 2012-04-26 Werner Randelshofer