SGPrepare
TheSGPreparefunction instructs your component to get ready to begin a preview or record operation (or both)--the sequence grabber component specifies the operations.
pascal ComponentResult SGPrepare (SeqGrabComponent s, Boolean prepareForPreview, Boolean prepareForRecord);
s- Identifies the sequence grabber component that has connected to your channel component.
prepareForPreview- Instructs your component to prepare for a preview operation. The sequence grabber component sets this parameter to
trueto prepare for a preview operation. The sequence grabber component may set both theprepareForPreviewandprepareForRecordparameters totrue.prepareForRecord- Instructs your component to prepare for a record operation. The sequence grabber component sets this parameter to
trueto prepare for a record operation. The sequence grabber component may set both theprepareForPreviewandprepareForRecordparameters totrue.DESCRIPTION
Your component should do whatever is necessary to get ready to start the operation. The goal is to reduce the delay between the time when the sequence grabber calls yourSGStartPreviewfunction (described on page 6-38) orSGStartRecordfunction (described on page 6-39) and the time when the operation actually begins. This may involve allocating memory or readying special hardware.SPECIAL CONSIDERATIONS
If the sequence grabber callsSGPreparewithout subsequently starting a record or preview operation, it calls theSGReleasefunction (described in the next section) later. This allows your component to release any system resources it allocated during theSGPreparefunction.RESULT CODES
File Manager errors
paramErr -50 Invalid parameter specified notEnoughDiskSpaceToGrab -9404 Insufficient disk space for record operation deviceCantMeetRequest -9408 Device cannot support grabber
Memory Manager errors
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help