Class JpegImagesToMovie

java.lang.Object
  extended by JpegImagesToMovie
All Implemented Interfaces:
javax.media.ControllerListener, javax.media.datasink.DataSinkListener

public class JpegImagesToMovie
extends java.lang.Object
implements javax.media.ControllerListener, javax.media.datasink.DataSinkListener

This program takes a list of JPEG image files and converts them into a QuickTime or AVI movie.


Constructor Summary
JpegImagesToMovie()
           
 
Method Summary
 void controllerUpdate(javax.media.ControllerEvent evt)
          This method is called when an event is generated by a Controller that this listener is registered with.
 void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
          Event handler for the file writer.
 boolean doIt(int width, int height, int frameRate, java.util.List<java.lang.String> inFiles, javax.media.MediaLocator outML, java.lang.String type)
          Method to write out the movie for a given type
 boolean doItAVI(int width, int height, int frameRate, java.util.List<java.lang.String> inFiles, javax.media.MediaLocator outML)
          Method to write out an AVI movie
 boolean doItAVI(int width, int height, int frameRate, java.util.List<java.lang.String> inFiles, javax.media.MediaLocator outML, java.lang.String type)
          Method to write out the movie for an AVI movie
 boolean doItAVI(int width, int height, int frameRate, java.util.List<java.lang.String> inFiles, java.lang.String outputURL)
          Method to write out an AVI movie
 boolean doItQuicktime(int width, int height, int frameRate, java.util.List<java.lang.String> inFiles, javax.media.MediaLocator outML)
          Method to write out a quicktime movie
 boolean doItQuicktime(int width, int height, int frameRate, java.util.List<java.lang.String> inFiles, java.lang.String outputURL)
          Method to write out a quicktime movie
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpegImagesToMovie

public JpegImagesToMovie()
Method Detail

doItQuicktime

public boolean doItQuicktime(int width,
                             int height,
                             int frameRate,
                             java.util.List<java.lang.String> inFiles,
                             javax.media.MediaLocator outML)
Method to write out a quicktime movie

Parameters:
width - the width of the resulting movie
height - the height of the resulting movie
frameRate - the number of frames per second
inFiles - string full path names of the frames
outML - the Media Locator

doItQuicktime

public boolean doItQuicktime(int width,
                             int height,
                             int frameRate,
                             java.util.List<java.lang.String> inFiles,
                             java.lang.String outputURL)
Method to write out a quicktime movie

Parameters:
width - the width of the resulting movie
height - the height of the resulting movie
frameRate - the number of frames per second
inFiles - string full path names of the frames
outputURL - the output URL for the movie

doItAVI

public boolean doItAVI(int width,
                       int height,
                       int frameRate,
                       java.util.List<java.lang.String> inFiles,
                       java.lang.String outputURL)
Method to write out an AVI movie

Parameters:
width - the width of the resulting movie
height - the height of the resulting movie
frameRate - the number of frames per second
inFiles - string full path names of the frames
outputURL - the output URL for the movie

doItAVI

public boolean doItAVI(int width,
                       int height,
                       int frameRate,
                       java.util.List<java.lang.String> inFiles,
                       javax.media.MediaLocator outML)
Method to write out an AVI movie

Parameters:
width - the width of the resulting movie
height - the height of the resulting movie
frameRate - the number of frames per second
inFiles - string full path names of the frames
outML - the Media Locator

doIt

public boolean doIt(int width,
                    int height,
                    int frameRate,
                    java.util.List<java.lang.String> inFiles,
                    javax.media.MediaLocator outML,
                    java.lang.String type)
Method to write out the movie for a given type

Parameters:
width - the width of the resulting movie
height - the height of the resulting movie
frameRate - the number of frames per second
inFiles - string full path names of the frames
outML - the Media Locator
type - the VideoFormat type

doItAVI

public boolean doItAVI(int width,
                       int height,
                       int frameRate,
                       java.util.List<java.lang.String> inFiles,
                       javax.media.MediaLocator outML,
                       java.lang.String type)
Method to write out the movie for an AVI movie

Parameters:
width - the width of the resulting movie
height - the height of the resulting movie
frameRate - the number of frames per second
inFiles - string full path names of the frames
outML - the Media Locator
type - the VideoFormat type

controllerUpdate

public void controllerUpdate(javax.media.ControllerEvent evt)
This method is called when an event is generated by a Controller that this listener is registered with.

Specified by:
controllerUpdate in interface javax.media.ControllerListener
Parameters:
evt - the event generated

dataSinkUpdate

public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
Event handler for the file writer. This method is called when an event is generated by a DataSink that this listener is registered with.

Specified by:
dataSinkUpdate in interface javax.media.datasink.DataSinkListener
Parameters:
evt - the event generated

main

public static void main(java.lang.String[] args)