GenICam_SDK.docx
22
4.4 Functions related to image acquisition
csiGetNumberOfDataStreams
Return the available number of data streams of the device
Syntax
csiErr csiGetNumberOfDataStreams(csiHandle device, uint32_t* numberOfStreamsOut)
Parameters:
In: device:
Handle provided by the
-function
Out: numberOfStreamsOut
Number of available data streams for the given device
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
The returned number of data streams can be 0 if the given device is not a streaming device. The actual number of available
data streams depends on the capabilities of the device. Use this function in combination with
which
receives an index to a data stream as parameter
.
csiGetDataStreamInfo
Return information about the desired data stream
Syntax
csiErr csiGetDataStreamInfo(csiHandle device, uint32_t dsIndex, csiDataStreamInfo* dataStreamInfoOut)
Parameters:
In: device:
Handle provided by the
-function
dsIndex:
An index to a data stream. Starting from 0 to the number of available data streams as returned by
Out: dataStreamInfoOut Information about the selected data stream given by the
dsIndex
parameter or NULL if the data
stream is not found. See documentation on
csiDataStreamInfo
for more information.
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
csiCreateDataStream
Create a data stream to receive images
Syntax
csiErr csiCreateDataStream(csiHandle device, uint32_t dsIndex, csiHandle* dataStreamOut, uint32_t numberOfBuffers,
size_t bufferSize = 0)
Parameters:
In: device:
Handle provided by the
-function
dsIndex:
An index to a data stream. Starting from 0 to the number of available data streams as returned by
numberOfBuffers:
The number of internal buffers to be allocated for the created data stream. This number must be at
least 1, recommended is >= 3.
bufferSize:
(Optional) The size of one buffer in bytes. This parameter can be 0 in which case the size of a
buffer will be defined from the standa
rd ‘PayloadSize’ feature of a device.
Out: dataStreamOut
A handle to the data stream that was created.
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
Use this function in combination with
to get the total number of available data streams in the
camera.