VDGrabOneFrame
TheVDGrabOneFramefunction instructs the video digitizer component to digitize a single frame of source video.All video digitizer components must support this function.
pascal VideoDigitizerError VDGrabOneFrame (VideoDigitizerComponent ci);
ci- Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's
OpenComponentfunction.DESCRIPTION
The application specifies the destination for the digitized frame by calling
either theVDSetPlayThruDestinationfunction (described on page 8-35) or theVDSetPlayThruGlobalRectfunction (described on page 8-39).If the specified digitizer component is already digitizing continuously when the application calls
VDGrabOneFrame, the digitizer component returns the next digitized frame and then stops. If the digitizer component is stopped, the component digitizes a single frame and then stops. To resume continuous digitization, applications should call theVDSetPlayThruOnOfffunction, which is described in the previous section.The
VDGrabOneFramefunction supports synchronous single-frame video digitization--that is, the digitizer component does not return control to your application until it has successfully processed the next video frame. Some video digitizer components may also support asynchronous single-frame digitization. Applications can use asynchronous digitization by calling theVDGrabOneFrameAsyncfunction, described on page 8-56.RESULT CODE
noErr 0 No error