FrameSnapSink::allocAndQueueBufferCache Method

This function is used to pre-allocate a number of buffers so that subsequent calls to snapSingle or snapSequence do not have to allocate memory.
Syntax:
Error  allocAndQueueBufferCache( size_t count );
Parameter Description
count

The number of buffers to allocate.

Return Value:

An error value indicating whether the operation succeeded.

Remarks:

This function can only be called if the sink is connected by a successful call to Grabber::prepareLive or Grabber::startLive. Otherwise, the buffer format might still be unknown.

See also: FrameSnapSink

<< FrameSnapSink