Class JpegImagesToMovie
- java.lang.Object
-
- gov.nih.mipav.view.renderer.flythroughview.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 convert them into a QuickTime movie.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (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
Fields Modifier and Type Field Description (package private) boolean
fileDone
DOCUMENT ME!(package private) boolean
fileSuccess
DOCUMENT ME!(package private) boolean
stateTransitionOK
DOCUMENT ME!(package private) java.lang.Object
waitFileSync
File write synchronization variables.(package private) java.lang.Object
waitSync
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description JpegImagesToMovie()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
controllerUpdate(javax.media.ControllerEvent evt)
Controller Listener.(package private) javax.media.DataSink
createDataSink(javax.media.Processor p, javax.media.MediaLocator outML)
Create the data sink with the give processor and output media file location.(package private) static javax.media.MediaLocator
createMediaLocator(java.lang.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, java.util.Vector inFiles, javax.media.MediaLocator outML)
DOCUMENT ME!(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.
-
-
-
Method Detail
-
controllerUpdate
public void controllerUpdate(javax.media.ControllerEvent evt)
Controller Listener.- Specified by:
controllerUpdate
in interfacejavax.media.ControllerListener
- Parameters:
evt
- event.
-
dataSinkUpdate
public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
Event handler for the file writer.- Specified by:
dataSinkUpdate
in interfacejavax.media.datasink.DataSinkListener
- Parameters:
evt
- DOCUMENT ME!
-
doIt
public boolean doIt(int width, int height, int frameRate, java.util.Vector inFiles, javax.media.MediaLocator outML)
DOCUMENT ME!- Parameters:
width
- DOCUMENT ME!height
- DOCUMENT ME!frameRate
- DOCUMENT ME!inFiles
- DOCUMENT ME!outML
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
createMediaLocator
static javax.media.MediaLocator createMediaLocator(java.lang.String url)
Create a media locator from the given string.- Parameters:
url
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
createDataSink
javax.media.DataSink createDataSink(javax.media.Processor p, javax.media.MediaLocator outML)
Create the data sink with the give processor and output media file location.- Parameters:
p
- Processor reference.outML
- MediaLocator reference.- Returns:
- DataSink the data sink object created
-
waitForFileDone
boolean waitForFileDone()
Block until file writing is done.- Returns:
- DOCUMENT ME!
-
waitForState
boolean waitForState(javax.media.Processor p, int state)
Block until the processor has transitioned to the given state. Return false if the transition failed.- Parameters:
p
- DOCUMENT ME!state
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
-