Instruction manual
5.2.6. el_CreateMemBuffer
void **
el_CreateMemBuffer ( long BoardId, void** ppMemStart, long SizeX, long SizeY,
long *pFrameCount, long Pitch, long PackingMode, long MemForm, long* pBufferNo
);
Similar to el_NewMemBuffer the routine allocates image memory.
Use el_AssignBuffer to assign the buffer to a DMA channel.
PARAMETERS:
BoardId : board ID returned by el_OpenHW
ppMemStart : Pointer to array of pointers to picture buffers. NULL pointer terminates array. Only used if
user allocated memory should be locked. On 64 bit systems not available for all grabbers.
SizeX: hor. size of frame buffers
SizeY: vert. size of frame buffers
pFrameCount: pointer to a long variable holding the number of frames allocated. If there is not enough
memory to allocate all frames, the number of frames that could be allocated is returned
Pitch: hor. pixel offset between subsequent video lines
PackingMode: Packing mode not used for P3I3. Mode is determined by camera.
MemForm: The memory format (EL_INTERLACE or EL_NONINTERLACE)
pBuffNo: Pointer to frame buffer identifier
RETURN VALUE:
pointer to memory array if OK
0 if ERROR See el_GetErrorCode for details.
SEE ALSO: el_NewMemBuffer , el_FreeMemBuffer , el_AssignBuffer
EXAMPLE: see el_AssignBuffer
5.2.7. el_FreeMemBuffer
long
el_FreeMemBuffer ( void** MemStart, long BufferNo );
This function releases the previously allocated buffers so that the memory is available for the system
again.
PARAMETERS:
MemStart: set to NULL or Pointer to array of pointers to picture buffers. NULL pointer terminates array.
BufferNo : identifer of buffer to be freed
RETURN VALUE:
59