Helper functions to handle cams that don't quite follow the UVC standard.
int uvccExposureTimeToMsLifeCamValue |
( |
uint32_t |
value, |
|
|
uint32_t * |
msList, |
|
|
int |
listLength |
|
) |
| |
Convert exposure time value reported by (UVC_GET_CUR) Microsoft LifeCam to corresponding index in array created by uvccMSLifeCamExposureTimeSpan().
- Parameters
-
- Returns
- index in list that holds the value or closest match
int uvccMSLifeCamExposureTimeSpan |
( |
uint32_t |
min, |
|
|
uint32_t |
max, |
|
|
uint32_t ** |
list |
|
) |
| |
Produces exposure time values in increasing order that can be used with Microsoft LifeCams. The array have to be freed by the caller.
- Parameters
-
min | min value from cam |
max | max value from cam |
list | buffer to hold the array |
- Returns
- length of array or < 0 on error