
Grabber::snapImages Method [Deprecated] |
|||||||||||||||||
| Snaps images from the live stream to the current active MemBuffer. | |||||||||||||||||
| Syntax: | bool snapImages( DWORD count = 1, DWORD timeout = 0xFFFFFFFF );
|
||||||||||||||||
|
|||||||||||||||||
| Return value: | true, if the images could be snapped successfully, false otherwise. |
||||||||||||||||
| Remarks: | This method snaps an image sequence of the specified length to the currently active MemBufferCollection. This method may be called only, if Grabber::startLive was called before. There are two ways to access grabbed image data:
The memory buffer collection is used as a ring buffer. Refer to the class MemBufferCollection for details. If a GrabberListener object is used, the method GrabberListener::frameReady will be called as soon as the currently grabbed frame is complete. Or use Grabber::setCallback in order to install a callback which will be called as soon as the currently grabbed frame is complete. An application should not use the GrabberListener::frameReady method and a callback simultaneously. It cannot be guaranteed that the callback, or the GrabberListener::frameReady method are called for every frame. Depending on the power of your processor and the bandwidth of the image stream, the callback may not be called for certain frames. This does not mean that image data will be lost. Despite this, it is guaranteed that the callback for the last frame of the sequence is called, if at least one frame could be copied. Locked buffers will never be overwritten. snapImages will block until the last image is grabbed and the last callback function has returned, or when timeout != 0xFFFFFFFF, until the timeout has elapsed. |
||||||||||||||||
| Information: | This method is deprecated since version 3.0. | ||||||||||||||||
| See also: | Grabber, VideoNormItem, Grabber::getAvailableVideoNorms, Grabber::isVideoNormAvailableWithCurDev | ||||||||||||||||