VDDone
You can use theVDDonefunction in your application to determine if
theVDGrabOneFrameAsyncfunction is finished with a specific output buffer (VDGrabOneFrameAsyncis described in the previous section). Applications that use
theVDGrabOneFrameAsyncfunction to digitize video frames should callVDDonebefore working with a digitized image.
pascal long VDDone (VideoDigitizerComponent ci, short buffer);
ci- Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's
OpenComponentfunction.buffer- Identifies the buffer for the operation. The value of this parameter must correspond to a valid index into the list of buffers you supply when your application calls the
VDSetupBuffersfunction (which is described on page 8-54). Note that this value is zero-based (that is, you must set this parameter to 0 to refer to the first buffer in the buffer list).DESCRIPTION
If theVDDonefunction returns a 0 result, the video digitizer component has not finished the specified asynchronous frame grab. If the result is nonzero, the frame has been processed and the application can proceed to use the contents of the specified buffer.Applications can determine whether a video digitizer component supports asynchronous frame grabbing by examining the output capability flags of the
digitizer component. Specifically, if thedigiOutDoesAsyncGrabsflag is set to 1,
the digitizer component supports theVDGrabOneFrameAsyncandVDDonefunctions. Applications can use theVDGetCurrentFlagsfunction to retrieve the component's output capability flags. See page 8-25 for a description of theVDGetCurrentFlagsfunction.The
VDDonefunction returns a long integer indicating whether the specified asynchronous frame grab is complete. If the returned value is 0, the video
digitizer component is still working on the frame. If the returned value is nonzero,
the digitizer component is finished with the frame and the application can perform its processing.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help