|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.std.comp.ComponentIdentifier | +--quicktime.std.comp.Component | +--quicktime.std.sg.SequenceGrabber
Assists in importing sound and video into a movie. The SeqGrabComponent implements methods for a corresponding QuickTime ComponentInstance structure. refer to SeqGrabComponent in QuickTime
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
SequenceGrabber()
Opens the specified movie export component,'barg', with any subType. |
|
SequenceGrabber(int subType)
Opens the specified movie export component,'barg', with the given subType. |
|
SequenceGrabber(int type,
int subType)
Opens the specified Sequence grabber component based on the type and Subtype QuickTime::OpenADefaultComponent QuickTime::SGInitialize |
Method Summary | |
void |
disposeChannel(SGChannel c)
Removes a channel from a sequence grabber component. |
void |
disposeOutput(SGOutput output)
Disposes of an output associated with a sequence grabber. |
QTFile |
getDataOutputFile()
Allows you to determine the movie file that is currently assigned to a sequence grabber component. |
int |
getDataOutputFlags()
Allows you to determine the record control flags that is currently assigned to a sequence grabber component. |
DataRef |
getDataRef()
Determines the data reference that is currently assigned to a sequence grabber component. |
int |
getDataRefFlags()
Determines the data reference flags that control the record operation. |
QDGraphics |
getGWorld()
Returns the QDGraphics of the sequence grabber. |
GDevice |
getGWorldDevice()
Returns the current device of the sequence grabber. |
SGChannel |
getIndChannel(int index)
Allows you to obtain the channel type currently in use by a sequence grabber component. |
int |
getIndChannelType(int index)
Allows you to obtain info on the channel type currently in use by a sequence grabber component. |
int |
getMaximumRecordTime()
Allows you to retrieve the time limit you have set for recording. |
Movie |
getMovie()
Determines a reference to the movie that contains the data collected during a record operation. |
int |
getPause()
Specifies control information about the current operation to the sequence grabber component. |
UserData |
getSettings()
Retrieves the current settings of all channels used by the sequence grabber. |
int |
getStorageSpaceRemaining()
Allows you to monitor the amount of space remaining for use during a record operation. |
TimeBase |
getTimeBase()
Returns the SequenceGrabbers's current time Base. |
int |
getTimeRemaining()
Allows you to obtain an estimate of the amount of recording time that remains for the current recording operation. |
Pict |
grabPict(QDRect bounds,
int offscreenDepth,
int grabPictFlags)
Provides a simple interface to obtain a QuickDraw picture from a sequence grabber component. |
void |
idle()
Provides processing time to the sequence grabber component and its channel components. |
boolean |
idleMore()
Provides processing time to the sequence grabber component and its channel components. |
boolean |
isPreviewMode()
Determines whether the particular sequence grabber is in preview mode. |
boolean |
isRecordMode()
Determines whether the particular sequence grabber is in Record mode. |
SGOutput |
newOutput(DataRef dataRef,
int whereFlags)
The SGNewOutput function creates a new sequence grabber output. |
void |
pause(int pause)
You can suspend or restart a record or preview operation by calling the pause function. |
void |
prepare(boolean prepareForPreview,
boolean prepareForRecord)
Instructs the sequence grabber to get ready to begin a preview or record operation. |
void |
release()
Instructs the sequence grabber to release any system resources it allocated previously. |
void |
removeDataProc()
Remove the currently registered data proc. |
void |
setDataOutput(QTFile movieFile,
int whereFlags)
Specifies the movie file for a record operation and other options that govern the operation. |
void |
setDataProc(SGDataProc proc)
Specify a data function for use by the sequence grabber. |
void |
setDataRef(DataRef dataRef,
int whereFlags)
Determines control information flags for the current operation. |
void |
setGWorld(QDGraphics port,
GDevice gdh)
Establishes the graphics port and device for a sequence grabber. |
void |
setMaximumRecordTime(int ticks)
Allows you to set the time limit for recording. |
void |
setSettings(UserData ud)
Configures a sequence grabber. |
void |
startPreview()
Instructs the sequence grabber to begin processing data from its channels. |
void |
startRecord()
Instructs the sequence grabber component to begin collecting data from its channels. |
void |
stop()
Stops a preview or record operation. |
void |
update(Region updateRgn)
The SGUpdate function allows you to tell the sequence grabber that it must refresh its display. |
void |
writeExtendedMovieData(SGChannel c,
int p,
int len,
long offset,
SGOutput sgOut)
Allows your channel component to add data to a movie. |
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 SequenceGrabber() throws QTException
public SequenceGrabber(int subType) throws QTException
subType
- The movie export component sub typepublic SequenceGrabber(int type, int subType) throws QTException
Type
- The movie export component typesubType
- The movie export component sub typeMethod Detail |
public void setGWorld(QDGraphics port, GDevice gdh) throws StdQTException
port
- Specifies the destination graphics port.
The specified graphics port must be a color graphics port.gdh
- Specifies the destination graphics device.
Set this parameter to null to use the current device.
If the gp parameter specifies a graphics world, set this parameter
to null to use that graphics world's graphics device.public QDGraphics getGWorld() throws StdQTException
public GDevice getGWorldDevice() throws StdQTException
public void disposeChannel(SGChannel c) throws StdQTException
c
- the channel you want to disposepublic SGOutput newOutput(DataRef dataRef, int whereFlags) throws StdQTException
owner
- Specifies the type of channel.dataRef
- Specifies the type of channel.dataRefType
- Specifies the type of channel.whereFlags
- Specifies the type of channel.public void disposeOutput(SGOutput output) throws QTException
c
- the output you want to disposepublic void writeExtendedMovieData(SGChannel c, int p, int len, long offset, SGOutput sgOut) throws StdQTException
p
- len
- offset
- offset to the new data in the movie. If the movie is in memory, the
returned offset reflects the location the data will have in the movie on a permanent storage device.sgOut
- output to which the data was written.
associated with the sequence grabber output.public void startPreview() throws StdQTException
public void startRecord() throws StdQTException
public void idle() throws StdQTException
public boolean idleMore() throws StdQTException
public void update(Region updateRgn) throws StdQTException
updateRgn
- Indicates the part of the QDGraphics that has been changed.
If you set this parameter to null, the sequence grabber uses the windowÕs current visible regionpublic void stop() throws StdQTException
public void pause(int pause) throws StdQTException
pause
- Instructs whether to suspend or restart the current operation.public int getPause() throws StdQTException
sgFlags
- The control flags for the current operation.public void prepare(boolean prepareForPreview, boolean prepareForRecord) throws StdQTException
prepareForPreview
- The preview operation.prepareForRecord
- The record operation.public void release() throws StdQTException
public Movie getMovie()
public void setSettings(UserData ud) throws StdQTException
ud
- Specifies a user data list with configuration information for the sequence grabber.public UserData getSettings() throws StdQTException
public Pict grabPict(QDRect bounds, int offscreenDepth, int grabPictFlags) throws QTException
bounds
- The bounding rectangle.offscreenDepth
- The bit depth of the Pict.grabPictFlags
- The flags for the operation.public void setDataOutput(QTFile movieFile, int whereFlags) throws QTException
movieFile
- Specifies which movie file to access.whereFlags
- public QTFile getDataOutputFile() throws QTException
public int getDataOutputFlags() throws QTException
public void setDataRef(DataRef dataRef, int whereFlags) throws StdQTException
dataRef
- information that identifies the destination containerflags
- that control the record operationpublic DataRef getDataRef() throws StdQTException
public int getDataRefFlags() throws StdQTException
public void setMaximumRecordTime(int ticks) throws StdQTException
public int getMaximumRecordTime() throws StdQTException
public int getStorageSpaceRemaining() throws StdQTException
public int getTimeRemaining() throws StdQTException
public boolean isPreviewMode() throws StdQTException
public boolean isRecordMode() throws StdQTException
public TimeBase getTimeBase() throws StdQTException
public int getIndChannelType(int index) throws StdQTException
index
- identifies the channel to be queriedpublic SGChannel getIndChannel(int index) throws QTException
index
- identifies the channel to be queriedpublic void setDataProc(SGDataProc proc) throws StdQTException
proc
- the callback that will be called by the SequenceGrabberpublic void removeDataProc() throws StdQTException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |