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 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 
    A DataSource to read from a list of JPEG image files and turn that into a stream of JMF buffers.
    (package private) class 
    The source stream to go along with ImageDataSource.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) boolean
    DOCUMENT ME!
    (package private) boolean
    DOCUMENT ME!
    (package private) boolean
    DOCUMENT ME!
    (package private) Object
    File write synchronization variables.
    (package private) Object
    DOCUMENT ME!
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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
    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, Vector inFiles, javax.media.MediaLocator outML)
    DOCUMENT ME!
    (package private) boolean
    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 Details

    • fileDone

      boolean fileDone
      DOCUMENT ME!
    • fileSuccess

      boolean fileSuccess
      DOCUMENT ME!
    • stateTransitionOK

      boolean stateTransitionOK
      DOCUMENT ME!
    • waitFileSync

      Object waitFileSync
      File write synchronization variables.
    • waitSync

      Object waitSync
      DOCUMENT ME!
  • Constructor Details

    • JpegImagesToMovie

      public JpegImagesToMovie()
  • Method Details

    • controllerUpdate

      public void controllerUpdate(javax.media.ControllerEvent evt)
      Controller Listener.
      Specified by:
      controllerUpdate in interface javax.media.ControllerListener
      Parameters:
      evt - event.
    • dataSinkUpdate

      public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
      Event handler for the file writer.
      Specified by:
      dataSinkUpdate in interface javax.media.datasink.DataSinkListener
      Parameters:
      evt - DOCUMENT ME!
    • doIt

      public boolean doIt(int width, int height, int frameRate, 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(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!