camera_location_prop_t

The camera location properties list

Synopsis:

#include <camera/camera_api.h>
typedef enum {
    CAMERA_LOCATION_END = 0,
    CAMERA_LOCATION_NAME,
    CAMERA_LOCATION_POSITION_X,
    CAMERA_LOCATION_POSITION_Y,
    CAMERA_LOCATION_POSITION_Z,
    CAMERA_LOCATION_YAW,
    CAMERA_LOCATION_PITCH,
    CAMERA_LOCATION_ROLL
} camera_location_prop_t;

Data:

CAMERA_LOCATION_END
End-of-list identifier.
CAMERA_LOCATION_NAME
The informal name associated with the location of the camera, as a const char* value.

The string pointed to by this array should have CAMERA_LOCATION_NAMELEN bytes allocated for it.

CAMERA_LOCATION_POSITION_X
The X-coordinate of the position of the camera, in millimeters.

The value is a double.

CAMERA_LOCATION_POSITION_Y
The Y-coordinate of the position of the camera, in millimeters.

The value is a double.

CAMERA_LOCATION_POSITION_Z
The Z-coordinate of the position of the camera, in millimeters.

The value is a double.

CAMERA_LOCATION_YAW
The orientation of the camera relative to the Z-axis, in degrees.

The double value represents a counter-clockwise rotation.

CAMERA_LOCATION_PITCH
The orientation of the camera relative to the Y-axis, in degrees.

The double value represents a counter-clockwise rotation.

CAMERA_LOCATION_ROLL
The orientation of the camera relative to the X-axis, in degrees.

The double value represents a counter-clockwise rotation.

Library:

libcamapi

Description:

These properties are used as keys for the camera_get_location_property() function. Each key is associated with a value of the indicated type.