Baumer-GAPI2 SDK Programmer's Guide - Site ftp Elvitec
Baumer-GAPI2 SDK Programmer's Guide - Site ftp Elvitec
Baumer-GAPI2 SDK Programmer's Guide - Site ftp Elvitec
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
3.2.5<br />
Buffer<br />
Buffer<br />
Inherits from:<br />
EventControl<br />
This class realizes the data access to the memory. It contains<br />
information about the received data (e.g. image size,<br />
pixel format) too.<br />
The Buffer module encapsulates a single memory buffer.<br />
Its purpose is to act as the target for the image acquisition.<br />
Buffers can be allocated automatically by the producer or<br />
by the user.<br />
Notice<br />
On activated Chunk mode, there is no access to some<br />
features of the buffer object (e.g. GetHeight, GetWidth<br />
or GetPixelFormat). Please use the GetChunkNodeTree<br />
function instead.<br />
Functions of the class Buffer<br />
B<strong>GAPI2</strong>::Buffer:: ...<br />
Buffer();<br />
Buffer( void * pUserObj<br />
);<br />
Buffer( void *pUserBuffer,<br />
bo_uint64<br />
uUserBufferSize,<br />
void *pUserObj);<br />
GetID();<br />
QueueBuffer();<br />
GetMemPtr();<br />
GetMemSize();<br />
GetUserObj();<br />
GetTimestamp();<br />
GetNewData();<br />
GetIsQueued();<br />
Creates a buffer object.<br />
Creates a buffer object including user specific data.<br />
Creates a buffer object with using user allocated memory.<br />
Returns the unique ID of buffer (e.g. Buffer_01f94fb), not<br />
the memory address of the buffer.<br />
Allocates the buffer to the input queue of a DataStream.<br />
Returns the memory address of the buffer.<br />
Returns the memory size of the buffer.<br />
Returns the user specific data of the buffer.<br />
Returns the buffer´s timestamp.<br />
Returns "true" if the buffer is filled until GetFilledBuffer is<br />
performed.<br />
Returns "true" as long as the buffer is allocated to the input<br />
queue of a DataStream.<br />
Returns "true", if buffer being filled.<br />
Returns "true" on defect image data.<br />
GetIsAcquiring();<br />
GetIsIncomplete();<br />
GetTLType(); Returns the type of buffer (GEV, USB3, ...).<br />
GetSizeFilled(); Returns the current fill level of the buffer [Bytes].<br />
GetWidth();<br />
Returns the image width.<br />
GetHeight();<br />
Returns the image height.<br />
GetXOffset(); Returns the offset in x-direction.<br />
GetYOffset(); Returns the offset in y-direction.<br />
GetFrameID(); Returns a hardware generated counter (1...65535).<br />
GetImagePresent(); Returns the availability of the image within the buffer.<br />
GetImageOffset(); Returns the position of the first byte of image data within<br />
the buffer.<br />
GetPayloadType(); Returns whether the payload is chunck or image data .<br />
GetPixelFormat(); Returns the pixel format of the image.<br />
17