Find the cameras that have the specified features.
camera_error_t camera_find_capable(camera_feature_t *features, int nfeatures, camera_unit_t prevunit, camera_unit_t *nextunit)
A pointer to an array of camera_feature_t values.
The number of features specified in the first argument.
The previous unit that was returned or CAMERA_UNIT_NONE if this is the first call to this function.
A pointer to a camera_unit_t value where the function returns the next unit which supports all requested features.
Library:libcamapi (For the qcc command, use the -l camapi option to link against this library)
Use this function to find cameras with the features required for your application. For example, you can use it to find cameras which have a flash or that support video recording.
This function provides a list of cameras by implementing an iterator.
To start iterating through the cameras, set the prevunit argument to CAMERA_UNIT_NONE. Doing so returns the first camera found by the iterator that supports the list of features defined by features. The matching camera unit is returned in the nextunit argument. To continue iterating through the list, you can call this function again and set prevunit to the value previously returned by nextunit. In this way, the function is always searching the list using prevunit as the starting point. When the end of the list is reached, nextunit returns a value of CAMERA_UNIT_NONE.
Last modified: 2014-06-24