All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.qtcomponents.MovieExporter

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.std.comp.ComponentIdentifier
                   |
                   +----quicktime.std.comp.Component
                           |
                           +----quicktime.std.qtcomponents.MovieExporter

public final class MovieExporter
extends Component
implements QuickTimeLib
Assists in exporting movie data and data conversion operations. The MovieDataImportComponent implements methods for a corresponding QuickTime ComponentInstance structure. refer to Movie Data Exchange in QuickTime


Constructor Index

 o MovieExporter(ComponentIdentifier)
Given a component identifier it opens the specified component.
 o MovieExporter(int)
Opens the specified movie export component,'spit', with the given subType.

Method Index

 o doUserDialog(Movie, Track, int, int)
Determines the data reference handle for the movie export component.
 o getAuxiliaryData(QTHandle)
Determines the data type for the component.
 o getCreatorType()
Determines the file type creator for the component.
 o getExportFileNameExtension()
Gets the movie export components current FileNameExtension.
 o getExportSettingsFromAtomContainer()
Retrieves the current settings from the movie export component..
 o getExportShortFileTypeString()
No Documentation.
 o getExportSourceMediaType()
This routine returns an OSType value through its mediaType parameter, which is interpreted in exactly the same way that the componentManufacturer was previously interpreted.
 o setExportSettingsFromAtomContainer(AtomContainer)
Sets the movie export componentŐs current configuration from the passed settings data.
 o setProgressProc(MovieProgress)
This method establishes a MovieProgress object for the MovieExporter that will be called for you by the Movie Toolbox whenever it has to do a lengthy movie export process with this MovieExporter

QuickTime::MovieExportSetProgressProc

 o setSampleDescription(SampleDescription, int)
Specifies the SampleDescription and media type for the component.
 o toDataRef(DataRef, Movie, Track, int, int)
Exports the movie's track data to the specified data reference for the movie export component.
 o toFile(QTFile, Movie, Track, int, int)
This method is used to export movie data into a file.
 o toHandle(Movie, Track, int, int)
Exports the movie's track data into a handle, returning the handle the data is exported too.
 o validate(Movie, Track)
Use this method to determine whether the movie or track could be exported by this exporter.

Constructors

 o MovieExporter
 public MovieExporter(int subType) throws QTException
Opens the specified movie export component,'spit', with the given subType.

QuickTime::OpenADefaultComponent

Parameters:
subType - The movie export component sub type
 o MovieExporter
 public MovieExporter(ComponentIdentifier comp) throws QTException
Given a component identifier it opens the specified component. The component type must be 'spit' or an exception will be thrown as it is not a MovieExporter. This constructor allows an application to find the appropriate export component and then have that component opened.

QuickTime::OpenAComponent

Parameters:
comp - the component identifier to open

Methods

 o setProgressProc
 public void setProgressProc(MovieProgress mp) throws StdQTException
This method establishes a MovieProgress object for the MovieExporter that will be called for you by the Movie Toolbox whenever it has to do a lengthy movie export process with this MovieExporter

QuickTime::MovieExportSetProgressProc

Parameters:
mp - the MovieProgress object, or null for no progress object
 o toFile
 public void toFile(QTFile theFile,
                    Movie theMovie,
                    Track onlyThisTrack,
                    int startTime,
                    int duration) throws QTException
This method is used to export movie data into a file.

QuickTime::MovieExportToFile

Parameters:
theFile - the file that is to receive the converted movie data
theMovie - specifies the movie to export.
onlyThisTrack - Specifies the track used to reference.
startTime - Specifies the start time value of the time base.
duration - Specifies the elapsed time value of the timebase.
Returns:
The file containing the converted movie data.
 o toHandle
 public QTHandle toHandle(Movie theMovie,
                          Track onlyThisTrack,
                          int startTime,
                          int duration) throws QTException
Exports the movie's track data into a handle, returning the handle the data is exported too.

QuickTime::MovieExportToHandle

Parameters:
theMovie - Specifies the movie.
onlyThisTrack - Specifies the track used to reference.
startTime - Specifies the start time of the time base.
duration - Specifies the time value of the timebase.
Returns:
The handle containing the converted movie data.
 o toDataRef
 public void toDataRef(DataRef dataRef,
                       Movie theMovie,
                       Track onlyThisTrack,
                       int startTime,
                       int duration) throws StdQTException
Exports the movie's track data to the specified data reference for the movie export component. Determines and opens the component to use for the given data reference and data type.

QuickTime::MovieExportToDataRef

Parameters:
theMovie - Specifies the movie.
usedTrack - Specifies the track used to reference.
tr - Specifies the start time of the time base.
duration - Specifies the time value of the timebase.
Returns:
The handle containing the converted movie data.
 o getAuxiliaryData
 public int getAuxiliaryData(QTHandle dataH) throws StdQTException
Determines the data type for the component.

QuickTime::MovieExportGetAuxiliaryData

Parameters:
dataH - Specifies the data handle.
Returns:
The handle type.
 o setSampleDescription
 public void setSampleDescription(SampleDescription desc,
                                  int mediaType) throws StdQTException
Specifies the SampleDescription and media type for the component.

QuickTime::MovieExportSetSampleDescription

Parameters:
desc - Specifies the sample description.
mediaType - Specifies the media type.
 o doUserDialog
 public boolean doUserDialog(Movie theMovie,
                             Track onlyThisTrack,
                             int startTime,
                             int duration) throws StdQTException
Determines the data reference handle for the movie export component.

QuickTime::MovieExportDoUserDialog

Parameters:
theMovie - Specifies the movie.
onlyThisTrack - Specifies the track used to reference.
startTime - Specifies the start time of the time base.
duration - Specifies the time value of the timebase.
Returns:
True, if the dialog operation was canceled, otherwise false.
 o getCreatorType
 public int getCreatorType() throws StdQTException
Determines the file type creator for the component.

Returns:
The creator file type.
 o validate
 public boolean validate(Movie theMovie,
                         Track onlyThisTrack) throws StdQTException
Use this method to determine whether the movie or track could be exported by this exporter.

QuickTime::MovieExportValidate

Parameters:
theMovie - the movie for this operation.
onlyThisTrack - identifies a track that is to be converted or null. If supplied the component will only convert the specified track.
Returns:
true if the export operation can occur, otherwise false.
 o getExportSettingsFromAtomContainer
 public AtomContainer getExportSettingsFromAtomContainer() throws StdQTException
Retrieves the current settings from the movie export component..

QuickTime::MovieExportGetSettingsAsAtomContainer

Returns:
an AtomContainer with the current settings.
 o setExportSettingsFromAtomContainer
 public void setExportSettingsFromAtomContainer(AtomContainer settings) throws StdQTException
Sets the movie export componentŐs current configuration from the passed settings data.

QuickTime::MovieExportSetSettingsFromAtomContainer

Parameters:
Contains - a QT atom container reference to the settings.
 o getExportFileNameExtension
 public final int getExportFileNameExtension() throws StdQTException
Gets the movie export components current FileNameExtension.

QuickTime::MovieExportGetFileNameExtension

Parameters:
Contains - a QT atom container reference to the settings.
Returns:
and ostype of the current filename extension.
 o getExportShortFileTypeString
 public final String getExportShortFileTypeString() throws StdQTException
No Documentation.

QuickTime::MovieExportGetShortFileTypeString

Returns:
a java string.
 o getExportSourceMediaType
 public final int getExportSourceMediaType() throws StdQTException
This routine returns an OSType value through its mediaType parameter, which is interpreted in exactly the same way that the componentManufacturer was previously interpreted. If the export component requires a particular type of track to exist in a movie, it returns that media handler type (e.g., VideoMediaType, SoundMediaType, etc.)

QuickTime::MovieExportGetSourceMediaType

Returns:
and ostype.

All Packages  Class Hierarchy  This Package  Previous  Next  Index