© Copyright e-con Systems. 2017. All rights reserved.
9
Parameters
Description
Return Values
UINT StreamMode
Sets the Stream mode
passed to the camera
TRUE on Success
FALSE on Failure
BOOL GetStreamMode(UINT *StreamMode)
This function returns the stream mode in which the camera is streamed. Tara
supports two modes i) Master mode ii) Trigger Mode. 1 is returned when the
camera is in master mode and 0 if it is in Trigger mode.
Parameters
Description
Return Values
UINT *StreamMode
Pointer to the Stream
Mode is passed.
TRUE on Success
FALSE on Failure
CameraEnumeration:
int GetListofDeviceseCon()
This function enumerates the devices connected to the computer using Directshow
for windows and V4L2 for linux.
Parameters
Description
Return Values
None
N/A
Returns the number
of connected
devices to system.
BOOL GetDeviceIDeCon(int *DeviceID, Size *ResolutionSelected)
This function gets the user input for the device to be streamed. Device ID and
Resolution to be set for the camera to stream.
Parameters
Description
Return Values
Int *DeviceId
Device ID of the camera to
be streamed
TRUE on Success
FALSE on Failure
Size
*ResolutionSelected
Resolution to be set to the
camera device
BOOL IsStereoDeviceAvail(char *pid)
This function
checks whether the enumerated device is eCon’s Stereo Camera.
Parameters
Description
Return Values
Char *pid
Pointer holding the
Product ID of the device
selected.
TRUE on Success
FALSE on Failure