![chromasens GEN I CAM-SDK Скачать руководство пользователя страница 25](http://html.mh-extra.com/html/chromasens/gen-i-cam-sdk/gen-i-cam-sdk_manual_2605694025.webp)
GenICam_SDK.docx
25
csiGetNextImage
Get the next image from the data stream
Syntax
csiErr csiGetNextImage(csiHandle dataStream, csiNewBufferEventData* bufferInfoOut, uint64_t timeoutMilliseconds)
Parameters:
In: dataStream
the handle of the data stream to wait for images on. Requires a previous call to
() to register for new image events on that stream.
timeOutMilliSeconds
Timeout after the waiting stops if no event was received.
Out: bufferInfoOut
the event data structure containing the image data and information, see
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
This is a convenience function that is recommended to use for image acquisition. It is an alternative to
that
returns a more general representation of the event data. Please note that a CSI_EVT_NEWIMAGEDATA event must be
registered on the data stream to be able to wait for new images.
The image buffer returned from this function will be valid and usable as long as it is not given back to the acquisition engine
with
.
csiReleaseImage
Release the image back into the processing buffer from the device
Syntax
csiErr csiReleaseImage(csiHandle dataStream, csiNewBufferEventData* bufferInfo)
Parameters:
In: dataStream
the handle to the data stream this buffer belongs to. This handle is also part of the
structure
bufferInfo
Pointer to the buffer event data that was previously received from
or
csiGetNextImage()
Out: None
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
Releases an image buffer from the user application back to the transport layer for acquisition. Releasing the image buffer
passes the ownership of the buffer back to the transport layer and the user application is not allowed to use it anymore after
the release.
To ensure a fluent image acquisition it is recommended to keep the buffer ownership as short as possible and release the
buffer as soon as it is not needed anymore.
csiGetAcquisitionStatistics
Retrieve the statistical buffer regarding the data stream (e.g. transmitted frames, etc.)
Syntax
csiErr csiGetAcquisitionStatistics(csiHandle dataStream, csiAcquistionStatistics* stats)
Parameters:
In: datastream
Handle to the data stream the acquisition statistics should be collected on.
Out: stats
The acquisition statistics, see
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment: