Interface for continuously acquiring images. More...
Enumerations | |
enum | RINGBUFFER_INFO_CMD { RINGBUFFER_INFO_TIMESTAMP = 0 , RINGBUFFER_INFO_TAG = 1 , RINGBUFFER_INFO_LOCKED = 2 } |
More... | |
enum | RINGBUFFER_LOCKMODE { RINGBUFFER_LOCKMODE_AUTO = 0 , RINGBUFFER_LOCKMODE_OFF = 1 , RINGBUFFER_LOCKMODE_ON = 2 , RINGBUFFER_LOCKMODE_INVALID = 3 } |
More... | |
enum | RINGBUFFER_LOCKMODE_CMD { RINGBUFFER_LOCKMODE_CMD_GET = 0 , RINGBUFFER_LOCKMODE_CMD_SET = 1 , RINGBUFFER_LOCKMODE_CMD_VALIDATE = 2 } |
More... | |
enum | RINGBUFFER_NUMBUFFER_CMD { RINGBUFFER_NUMBUFFER_CMD_GET = 0 , RINGBUFFER_NUMBUFFER_CMD_SET = 1 , RINGBUFFER_NUMBUFFER_CMD_VALIDATE = 2 } |
More... | |
Functions | |
cvbbool_t | CanRingBuffer (IMG Image) |
This function verifies whether the image supports the RingBuffer interface. More... | |
cvbres_t | RBBufferSeq (IMG Image, cvbval_t lSequenceIndex, cvbval_t &lBufferIndex) |
Returns the buffer index for a given sequence number. More... | |
cvbres_t | RBGetBufferImage (IMG Image, cvbval_t lBufferIndex, IMG &I) |
Returns a new image object which dereferences a specifc image buffer. More... | |
cvbres_t | RBGetRingBufferInfo (IMG Image, cvbval_t lBufferIndex, RINGBUFFER_INFO_CMD lRequestedInformation, double &dInfo) |
Returns additional information for a specific buffer. More... | |
cvbres_t | RBIsLocked (IMG Image, cvbval_t lBufferIndex, cvbbool_t &BIsLocked) |
Checks if a specific imagebuffer is locked or not. More... | |
cvbres_t | RBLockMode (IMG Image, RINGBUFFER_LOCKMODE_CMD lAction, RINGBUFFER_LOCKMODE &lMode) |
Sets the Lockmode. More... | |
cvbres_t | RBNumBuffer (IMG Image, RINGBUFFER_NUMBUFFER_CMD lAction, cvbval_t &lNum, IMG &imgNew) |
Sets, gets or validates the number of imagebuffers in the image. More... | |
cvbres_t | RBUnlock (IMG Image, cvbval_t lBufferIndex) |
Manually unlocks a specific buffer. More... | |
Interface for continuously acquiring images.
enum RINGBUFFER_INFO_CMD |
enum RINGBUFFER_LOCKMODE |
Enumerator | |
---|---|
RINGBUFFER_LOCKMODE_AUTO | Sets the lock mode to auto. |
RINGBUFFER_LOCKMODE_OFF | Don't lock buffers at all. |
RINGBUFFER_LOCKMODE_ON | Don't unlock buffers automatically.
|
RINGBUFFER_LOCKMODE_INVALID | Lock mode returned from RBLockMode with the RINGBUFFER_LOCKMODE_CMD_VALIDATE command (see RINGBUFFER_LOCKMODE_CMD) |
Enumerator | |
---|---|
RINGBUFFER_LOCKMODE_CMD_GET | Get active lock mode. |
RINGBUFFER_LOCKMODE_CMD_SET | Set active lock mode. |
RINGBUFFER_LOCKMODE_CMD_VALIDATE | Validate active lock mode. |
cvbbool_t CanRingBuffer | ( | IMG | Image | ) |
This function verifies whether the image supports the RingBuffer interface.
[in] | Image | Handle of image object. |
TRUE
if the image supports the RingBuffer interface, FALSE
otherwise. cvbres_t RBBufferSeq | ( | IMG | Image, |
cvbval_t | lSequenceIndex, | ||
cvbval_t & | lBufferIndex | ||
) |
Returns the buffer index for a given sequence number.
E.g. the SequenceNumber '0'
returns the index of the last buffer acquired by G2Wait. SequenceNumber NumBuffers-1 returns the index of the 'oldest' image in the ringbuffer acquired by G2Wait.
[in] | Image | Handle of image object. |
[in] | lSequenceIndex | Index in the sequence. |
[out] | lBufferIndex | Index of the buffer. |
cvbres_t RBGetBufferImage | ( | IMG | Image, |
cvbval_t | lBufferIndex, | ||
IMG & | I | ||
) |
Returns a new image object which dereferences a specifc image buffer.
For example:
If you use 5 imagebuffers in the ringbuffer and you call RBGetBufferImage with a BufferIndex of 3 you will get a new image which containes the data of the forth image buffer.
To retrieve the index of the last (timewise) acquired imagebuffer call RBBufferSeq function with a sequence number of 0.
[in] | Image | Handle of image object. |
[in] | lBufferIndex | Number of buffer for returned image. |
[out] | I | New image. |
cvbres_t RBGetRingBufferInfo | ( | IMG | Image, |
cvbval_t | lBufferIndex, | ||
RINGBUFFER_INFO_CMD | lRequestedInformation, | ||
double & | dInfo | ||
) |
Returns additional information for a specific buffer.
[in] | Image | Handle of image object. |
[in] | lBufferIndex | Index of the buffer to get the status for. |
[in] | lRequestedInformation | Command to execute (see RINGBUFFER_INFO_CMD). |
[out] | dInfo | Return value containing the information. |
cvbres_t RBIsLocked | ( | IMG | Image, |
cvbval_t | lBufferIndex, | ||
cvbbool_t & | BIsLocked | ||
) |
Checks if a specific imagebuffer is locked or not.
[in] | Image | Handle of image object. |
[in] | lBufferIndex | Number of buffer ot check. |
[out] | BIsLocked | TRUE indicates that the buffer is locked, FALSE otherwise. |
cvbres_t RBLockMode | ( | IMG | Image, |
RINGBUFFER_LOCKMODE_CMD | lAction, | ||
RINGBUFFER_LOCKMODE & | lMode | ||
) |
Sets the Lockmode.
[in] | Image | Handle of image object. |
[in] | lAction | Command to execute (see RINGBUFFER_LOCKMODE_CMD). |
[out] | lMode | Mode to set (see RINGBUFFER_LOCKMODE). |
cvbres_t RBNumBuffer | ( | IMG | Image, |
RINGBUFFER_NUMBUFFER_CMD | lAction, | ||
cvbval_t & | lNum, | ||
IMG & | imgNew | ||
) |
Sets, gets or validates the number of imagebuffers in the image.
[in] | Image | Handle of image object. |
[in] | lAction | Command to execute (see RINGBUFFER_NUMBUFFER_CMD). |
[in,out] | lNum | Number of images (get or set depends on the command). |
[in,out] | imgNew | If the number of buffers in the images changes, this parameter returns the new image. |
cvbres_t RBUnlock | ( | IMG | Image, |
cvbval_t | lBufferIndex | ||
) |
Manually unlocks a specific buffer.
Use this function to unlock a buffer when using RINGBUFFER_LOCKMODE_ON lockmode. Do not use this function for any other lockmode (see RINGBUFFER_NUMBUFFER_CMD for more information).
[in] | Image | Handle of image object. |
[in] | lBufferIndex | Number of the buffer to unlock. |