Controlling Sequence Grabber Components
Sequence grabber components provide a full set of functions that allow your application to control the preview or record operation. You can use these functions to start and stop the operation, to pause data collection, and to retrieve a reference to the movie that is created during a record operation. This section describes these functions.Use the
SGStartPreviewfunction to start a preview operation. TheSGStartRecordfunction lets you start a record operation. TheSGStopfunction allows you to stop a sequence grabber component.You can instruct the sequence grabber to pause by calling the
SGPausefunction. You can determine whether the sequence grabber is paused by calling theSGGetPausefunction.You grant processing time to the sequence grabber by calling the
SGIdlefunction. Be sure to call this function often during record and preview operations. If your application receives an update event during a record or preview operation, you should call theSGUpdatefunction.You can prepare the sequence grabber for an upcoming preview or record operation by calling the
SGPreparefunction. This function also allows the sequence grabber to verify that it can support the parameters you have specified. By verifying the parameters you want to use, you can improve the startup of preview and record operations. Use theSGReleasefunction to release system resources after calling theSGPreparefunction.You can retrieve a reference to the movie created by a record operation by calling the
SGGetMoviefunction. You can determine the resource ID value assigned to the last movie resource created by the sequence grabber by calling theSGGetLastMovieResIDfunction.You can extract a picture from the video source data by calling the
SGGrabPictfunction.
Subtopics
- SGStartPreview
- SGStartRecord
- SGIdle
- SGUpdate
- SGStop
- SGPause
- SGGetPause
- SGPrepare
- SGRelease
- SGGetMovie
- SGGetLastMovieResID
- SGGrabPict