MemBufferCollection::create Method

This factory function creates a MemBufferCollection for use with the FrameHandlerSink or the Grabber.
Syntax:
static tMemBufferCollectionPtr create( const FrameTypeInfo& frame_type, DWORD count );
static tMemBufferCollectionPtr create( const FrameTypeInfo& frame_type, DWORD count, BYTE* buffers[] );
static tMemBufferCollectionPtr create( tColorformatEnum colorformat, SIZE dim, DWORD count );
static tMemBufferCollectionPtr create( tColorformatEnum colorformat, SIZE dim, DWORD count, BYTE* buffers[] );

Parameter Description
frame_type

A FrameTypeInfo structure, describing the frame type of the new MemBufferCollection.

count

The number of buffers to be created.

buffers

Array of user-specified image data pointers. These will be used by the MemBuffers for the image data. The array must contain count pointers, which must not be 0.

colorformat

The colorformat of the MemBuffers. Must be a valid colorformat.

dim

The dimensions of the MemBuffers created.

Return value:

This function returns 0, if one of the parameters is not valid, otherwise a MemBufferCollection instance.

Information:

Introduced in version 3.0

See also: MemBufferCollection, FrameHandlerSink, Grabber

<< MemBufferCollection