Grabber::setActiveMemBufferCollection Method [Deprecated]

Sets the MemBufferCollection in which the grabbed images will be stored.
Syntax:
bool setActiveMemBufferCollection( tMemBufferCollectionPtr pBuffer );
Parameter Description
pBuffer

A pointer to a MemBufferCollection, as returned by Grabber::newMemBufferCollection.

Return value:

true, if the collection was set successfully, false, if an error occurred.

Remarks:

This method sets the MemBufferCollection to be used for grabbing.

The active MemBufferCollection contains the buffers into which grabbed images will be written to.

A call to this method will fail, if the grabber is in live mode.

Please note that the GrabberListener::frameReady method is only called, if an active MemBufferCollection and a sink type is set. Otherwise, the frameReady event will never be called. A call to Grabber::setVideoFormat and Grabber::setSinkType removes the MemBufferCollection from the sink. Therefore, the sequence of calls to the methods mentioned above has to be:

Information:

This method is deprecated since version 3.0.
Use the FrameHandlerSink instead of the FrameGrabberSink and specify the MemBufferCollection in FrameHandlerSink::create or FrameHandlerSink::setMemBufferCollection.

See also: Grabber, Grabber::getActiveMemBuffer, Grabber::getActiveMemBufferCollection

<< Grabber

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.