camera_get_location_property()

Retrieve one or more location properties for a given camera

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_get_location_property(unit,
                                            args...)

Arguments:

unit
The camera_unit_t of the camera you wish to query.
args...
A series of comma-delimited property-value pairs where each value must be a pointer a variable of the expected type.

Library:

libcamapi

Description:

For the args argument, you can provide one or more property-value pairs using camera_location_prop_t values as the name of the property and a pointer to the correct type for the value such as an int or double value. For more information about the correct types to use, see camera_location_prop_t. Location information can provide you information in order to properly identify where each camera is located on the device.

Note:

There is no type-checking performed by the compiler, therefore, you must ensure that the value you provide for each property matches the expected data type. Data type mismatches can result in undefined behavior and may cause your application to crash.

You can specify multiple property-value pairs by delimiting them with a comma as follows:
camera_get_location_property(CAMERA_UNIT_1,
                             CAMERA_LOCATION_NAME, nameString,
                             CAMERA_LOCATION_ORIENTATION, &orientation );

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.