|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.QTObject
|
+--quicktime.std.comp.ComponentIdentifier
|
+--quicktime.std.comp.Component
|
+--quicktime.std.qtcomponents.MovieImporter
Assists in importing movie data.
The MovieImporter implements methods for a corresponding QuickTime
ComponentInstance structure.
Refer to Movie Data Exchange in QuickTime
| Field Summary |
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Constructor Summary | |
MovieImporter()
Opens the specified movie import component,'eat ', with any subType. |
|
MovieImporter(ComponentIdentifier comp)
Given a component identifier it opens the specified component. |
|
MovieImporter(DataRef dataRef,
int flags)
This returns an appropriate instance of the MovieImporter for the DataRef object. |
|
MovieImporter(DataRef dataRef,
int flags,
java.lang.String fileExt)
This returns an appropriate instance of the MovieImporter for the DataRef object. |
|
MovieImporter(int subType)
Opens the specified movie import component,'eat ', with the given subType. |
|
| Method Summary | |
boolean |
doUserDialog(QTFile fileIn)
Allows an application to request that your component display its user dialog box. |
boolean |
doUserDialog(QTHandleRef theData)
Specifies the use of. |
MovieImportInfo |
fromDataRef(DataRef dataRef,
Movie theMovie,
Track targetTrack,
int atTime,
int inFlags)
Determines information revelant to the movie import component. |
MovieImportInfo |
fromFile(QTFile fileIn,
Movie theMovie,
Track targetTrack,
int atTime,
int inFlags)
Allows the MovieToolbox to import data from a file using the movie import component. |
MovieImportInfo |
fromHandle(QTHandleRef dataRef,
Movie theMovie,
Track targetTrack,
int atTime,
int inFlags)
Allows the MovieToolbox to import data from a handle using the movie import component. |
static MovieImporter |
fromTrack(Track t)
Looks on the System scrap to find out if it can translate any of the track data into a movie. |
int |
getAuxiliaryDataType()
Determines the data type for the component. |
int |
getFileType()
Determines the file type for the component. |
AtomContainer |
getImportSettingsFromAtomContainer()
Retrieves the current settings from the movie import component.. |
int |
getMediaType()
Determines the media type of the component. |
AtomContainer |
getMIMETypeList()
Returns a list of MIME types supported by the movie import component. |
SampleDescription |
getSampleDescription()
Determines the sample description of the component. |
void |
removeProgressProc()
This method removes a MovieProgress callback for the MovieImporter. |
void |
setAuxiliaryData(QTHandleRef data,
int handleType)
Specifies the handle and its type for the component. |
void |
setChunkSize(int chunkSize)
Specifies the size to allocate for the component. |
void |
setDimensions(float width,
float height)
Specifies the dimensions for the component. |
void |
setDuration(int duration)
Specifies the duration for the component. |
void |
setFromScrap(boolean fromScrap)
Specifies the scrap for the component. |
void |
setImportSettingsFromAtomContainer(AtomContainer settings)
Sets the movie import componentŐs current configuration from the passed settings data. |
void |
setMediaFile(AliasHandle alias)
Allows an application to specify a media file that is to receive the imported movie data. |
void |
setNewMovieFlags(int newMovieFlags)
Implemented by a movie import component to determine the flags originally passed to NewMovieFromDataRef and from a file. |
void |
setOffsetAndLimit(int offset,
int limit)
NO QT DOCUMENTATION. |
void |
setProgressProc(MovieProgress mp)
This method establishes a MovieProgress object for the MovieImporter that will be called for you by the Movie Toolbox whenever it has to do a lengthy movie import process with this MovieImporter QuickTime::MovieImportSetProgressProc |
void |
setSampleDescription(SampleDescription desc,
int mediaType)
Specifies the SampleDescription and media type for the component. |
void |
setSampleDuration(int duration,
int scale)
Specifies the duration for the component. |
boolean |
validate(QTFile fileIn)
Determines the validity of the file to be imported. |
boolean |
validate(QTHandleRef theData)
Determines the validity of the data in the handle to be imported. |
| Methods inherited from class quicktime.std.comp.Component |
count |
| Methods inherited from class quicktime.std.comp.ComponentIdentifier |
find, find, getInfo, toString |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MovieImporter()
throws QTException
public MovieImporter(int subType)
throws QTException
subType - The movie import component sub type
public MovieImporter(ComponentIdentifier comp)
throws QTException
comp - the component identifier to open
public MovieImporter(DataRef dataRef,
int flags)
throws QTException
flags - flags that control the kinds of importer components that are searched by this call
public MovieImporter(DataRef dataRef,
int flags,
java.lang.String fileExt)
throws QTException
flags - flags that control the kinds of importer components that are searched by this callfileExt - file extension for the source of the data. This is useful to provide the
importer as a guide for it to know about the data format.| Method Detail |
public static MovieImporter fromTrack(Track t)
throws StdQTException
StdQTExceptionTrack.isScrapMovie()
public MovieImportInfo fromFile(QTFile fileIn,
Movie theMovie,
Track targetTrack,
int atTime,
int inFlags)
throws QTException
fileIn - Specifies the source file to the importing data.theMovie - Specifies the movie to receive the data.targetTrack - Specifies the track to receive the data, if to be recipent, then inFlags use movieImportMustUseTrack.atTime - Specifies the start time of the movie time base to place the imported data.inFlags - Specifies the control flags governing the operation.
QTException
public MovieImportInfo fromHandle(QTHandleRef dataRef,
Movie theMovie,
Track targetTrack,
int atTime,
int inFlags)
throws QTException
dataRef - Specifies the handle to the importing data.theMovie - Specifies the movie to receive the data.targetTrack - Specifies the track to receive the data, if to be recipent, then inFlags use movieImportMustUseTrack.atTime - Specifies the start time of the movie time base to place the imported data.inFlags - Specifies the control flags governing the operation.
QTException
public MovieImportInfo fromDataRef(DataRef dataRef,
Movie theMovie,
Track targetTrack,
int atTime,
int inFlags)
throws QTException
dataRef - Specifies the data reference.theMovie - Specifies the movie.targetTrack - Specifies the track to receive the data, if to be recipent, then inFlags use movieImportMustUseTrack.atTime - Specifies the start time of the movie time base.inFlags - Specifies the flags in for the operation.
QTException
public void setSampleDuration(int duration,
int scale)
throws StdQTException
duration - Specifies the time base.scale - Specifies the time base scale.
StdQTException
public void setSampleDescription(SampleDescription desc,
int mediaType)
throws StdQTException
desc - Specifies the sample description.mediaType - Specifies the media type.
StdQTException
public void setMediaFile(AliasHandle alias)
throws QTException
alias - the media file that is to receive the imported movie data.
QTException
public void setDimensions(float width,
float height)
throws StdQTException
width - Specifies the width.height - Specifies the height.
StdQTException
public void setChunkSize(int chunkSize)
throws StdQTException
chunkSize - Specifies the size.
StdQTException
public void setProgressProc(MovieProgress mp)
throws StdQTException
mp - the MovieProgress object, or null for no progress object
StdQTException
public void removeProgressProc()
throws StdQTException
StdQTException
public void setAuxiliaryData(QTHandleRef data,
int handleType)
throws StdQTException
data - Specifies the data handle.handleType - Specifies the handle type.
StdQTException
public void setFromScrap(boolean fromScrap)
throws StdQTException
fromScrap - Specifies weather to use the scrap manager.
StdQTException
public boolean doUserDialog(QTFile fileIn)
throws QTException
fileIn - Specifies the source file.
QTException
public boolean doUserDialog(QTHandleRef theData)
throws QTException
theData - Specifies the data handle.
QTException
public void setDuration(int duration)
throws StdQTException
duration - Specifies the time base duration.
StdQTException
public int getAuxiliaryDataType()
throws StdQTException
StdQTException
public boolean validate(QTFile fileIn)
throws QTException
fileIn - Specifies the source file.
QTException
public boolean validate(QTHandleRef theData)
throws QTException
theData - Specifies the data handle.
QTException
public int getFileType()
throws StdQTException
StdQTException
public SampleDescription getSampleDescription()
throws StdQTException
StdQTException
public int getMediaType()
throws StdQTException
StdQTException
public AtomContainer getMIMETypeList()
throws StdQTException
StdQTException
public void setOffsetAndLimit(int offset,
int limit)
throws StdQTException
offset - the offset within the source data from which to start importinglimit - how many bytes from the offset to import.
StdQTException
public void setImportSettingsFromAtomContainer(AtomContainer settings)
throws StdQTException
StdQTException
public AtomContainer getImportSettingsFromAtomContainer()
throws StdQTException
StdQTException
public void setNewMovieFlags(int newMovieFlags)
throws StdQTException
newMovieFlags - Flags that control the characteristics of the new imported movie.
StdQTException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||