IC Imaging Control C++

MemBufferCollection

MemBufferCollection

The MemBufferCollection stores several MemBuffers. The MemBufferCollection is organized as a ring buffer: If a frame is grabbed to the last buffer of the collection, the next frame will be grabbed to the first one.

Information

Header File: tisudshl.h
Namespace: DShowLib

Methods

Method Description
create

This factory function creates a MemBufferCollection for use with the FrameHandlerSink or the Grabber.

getBitmapInfoHeader

Returns a smart_ptr to a BITMAPINFOHEADER structure, which describes the image data contained in the buffers of this collection.

getBitsPerPixel

Returns the number of bits that represent a single pixel in a buffer of the collection.

getBuffer

Returns a smart_ptr to the MemBuffer with the specified index. This method returns 0, if the MemBufferCollection is not initialized or the given index is greater than the number of contained buffers (see MemBufferCollection::getBufferCount ).

getBufferCount

Returns the number of buffers stored in this collection.

getBufferDataSize

Returns the size of valid data in the buffer in bytes.

getBufferSize

Returns the number of bytes required for the image data of one buffer.

getColorformat

Returns the color format (organization of one pixel) of the image data stored in this collection. This method returns an undefined value, if the collection is not initialized. Use MemBufferCollection::getLastError in order to determine whether the returned color format is valid or not.

getFrameSize

Returns the width and height in pixels of one frame stored in this collection.

getFrameType

Returns the frame type of the collection.

getLastError

This method returns information about an error occurred during the last call to a method of this object.

isInit

Checks whether the collection is initialized.

operator[]

Returns the MemBuffer at the specified index in the collection.

save

Saves all buffers of this collection to disk as a .BMP file.

Type Definitions

Type Description
tBmInfHPtr

A pointer to a BITMAPINFOHEADER structure.

tMemBufferPtr

A pointer to a MemBuffer.

<< Classes

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us