artofillusion.image
Class MovieEncoder.ImageDataSource

java.lang.Object
  extended by PullBufferDataSource
      extended by artofillusion.image.MovieEncoder.ImageDataSource
Enclosing class:
MovieEncoder

public class MovieEncoder.ImageDataSource
extends PullBufferDataSource

A DataSource to read from a list of JPEG image files and turn that into a stream of JMF buffers. The DataSource is not seekable or positionable.


Method Summary
 void connect()
           
 void disconnect()
           
 java.lang.String getContentType()
          Content type is of RAW since we are sending buffers of video frames without a container format.
 java.lang.Object getControl(java.lang.String type)
           
 java.lang.Object[] getControls()
           
 Time getDuration()
          We could have derived the duration from the number of frames and frame rate.
 MediaLocator getLocator()
           
 PullBufferStream[] getStreams()
          Return the ImageSourceStreams.
 void setLocator(MediaLocator source)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setLocator

public void setLocator(MediaLocator source)

getLocator

public MediaLocator getLocator()

getContentType

public java.lang.String getContentType()
Content type is of RAW since we are sending buffers of video frames without a container format.


connect

public void connect()

disconnect

public void disconnect()

start

public void start()

stop

public void stop()

getStreams

public PullBufferStream[] getStreams()
Return the ImageSourceStreams.


getDuration

public Time getDuration()
We could have derived the duration from the number of frames and frame rate. But for the purpose of this program, it's not necessary.


getControls

public java.lang.Object[] getControls()

getControl

public java.lang.Object getControl(java.lang.String type)


Copyright © 1999-2008 by Peter Eastman.