|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JpegImagesToMovie
public class JpegImagesToMovie
This program takes a list of JPEG image files and converts them into a QuickTime or AVI movie.
Nested Class Summary | |
---|---|
(package private) class |
JpegImagesToMovie.ImageDataSource
A DataSource to read from a list of JPEG image files and turn that into a stream of JMF buffers. |
(package private) class |
JpegImagesToMovie.ImageSourceStream
The source stream to go along with ImageDataSource. |
Field Summary | |
---|---|
(package private) boolean |
fileDone
|
(package private) boolean |
fileSuccess
|
(package private) boolean |
stateTransitionOK
|
(package private) Object |
waitFileSync
|
(package private) Object |
waitSync
|
Constructor Summary | |
---|---|
JpegImagesToMovie()
|
Method Summary | |
---|---|
void |
controllerUpdate(javax.media.ControllerEvent evt)
Controller Listener. |
(package private) javax.media.DataSink |
createDataSink(javax.media.Processor p,
javax.media.MediaLocator outML)
Create the DataSink. |
(package private) static javax.media.MediaLocator |
createMediaLocator(String url)
Create a media locator from the given string. |
void |
dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
Event handler for the file writer. |
boolean |
doIt(int width,
int height,
int frameRate,
List<String> inFiles,
javax.media.MediaLocator outML,
String type)
Method to write out the movie for a given type |
boolean |
doItAVI(int width,
int height,
int frameRate,
List<String> inFiles,
javax.media.MediaLocator outML)
Method to write out an AVI movie |
boolean |
doItAVI(int width,
int height,
int frameRate,
List<String> inFiles,
javax.media.MediaLocator outML,
String type)
Method to write out the movie for an AVI movie |
boolean |
doItAVI(int width,
int height,
int frameRate,
List<String> inFiles,
String outputURL)
Method to write out an AVI movie |
boolean |
doItQuicktime(int width,
int height,
int frameRate,
List<String> inFiles,
javax.media.MediaLocator outML)
Method to write out a quicktime movie |
boolean |
doItQuicktime(int width,
int height,
int frameRate,
List<String> inFiles,
String outputURL)
Method to write out a quicktime movie |
static void |
main(String[] args)
|
(package private) static void |
prUsage()
|
(package private) boolean |
waitForFileDone()
Block until file writing is done. |
(package private) boolean |
waitForState(javax.media.Processor p,
int state)
Block until the processor has transitioned to the given state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Object waitSync
boolean stateTransitionOK
Object waitFileSync
boolean fileDone
boolean fileSuccess
Constructor Detail |
---|
public JpegImagesToMovie()
Method Detail |
---|
public boolean doItQuicktime(int width, int height, int frameRate, List<String> inFiles, javax.media.MediaLocator outML)
width
- the width of the resulting movieheight
- the height of the resulting movieframeRate
- the number of frames per secondinFiles
- string full path names of the framesoutML
- the Media Locatorpublic boolean doItQuicktime(int width, int height, int frameRate, List<String> inFiles, String outputURL)
width
- the width of the resulting movieheight
- the height of the resulting movieframeRate
- the number of frames per secondinFiles
- string full path names of the framesoutputURL
- the output URL for the moviepublic boolean doItAVI(int width, int height, int frameRate, List<String> inFiles, String outputURL)
width
- the width of the resulting movieheight
- the height of the resulting movieframeRate
- the number of frames per secondinFiles
- string full path names of the framesoutputURL
- the output URL for the moviepublic boolean doItAVI(int width, int height, int frameRate, List<String> inFiles, javax.media.MediaLocator outML)
width
- the width of the resulting movieheight
- the height of the resulting movieframeRate
- the number of frames per secondinFiles
- string full path names of the framesoutML
- the Media Locatorpublic boolean doIt(int width, int height, int frameRate, List<String> inFiles, javax.media.MediaLocator outML, String type)
width
- the width of the resulting movieheight
- the height of the resulting movieframeRate
- the number of frames per secondinFiles
- string full path names of the framesoutML
- the Media Locatorpublic boolean doItAVI(int width, int height, int frameRate, List<String> inFiles, javax.media.MediaLocator outML, String type)
width
- the width of the resulting movieheight
- the height of the resulting movieframeRate
- the number of frames per secondinFiles
- string full path names of the framesoutML
- the Media Locatorjavax.media.DataSink createDataSink(javax.media.Processor p, javax.media.MediaLocator outML)
boolean waitForState(javax.media.Processor p, int state)
public void controllerUpdate(javax.media.ControllerEvent evt)
controllerUpdate
in interface javax.media.ControllerListener
boolean waitForFileDone()
public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
dataSinkUpdate
in interface javax.media.datasink.DataSinkListener
public static void main(String[] args)
static void prUsage()
static javax.media.MediaLocator createMediaLocator(String url)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |