camera_location_prop_t

This enumerated type specifies 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_DIRECTION_X,
    CAMERA_LOCATION_DIRECTION_Y,
    CAMERA_LOCATION_DIRECTION_Z,
    CAMERA_LOCATION_ORIENTATION
} 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 be allocated of size CAMERA_LOCATION_NAMELEN bytes.

CAMERA_LOCATION_POSITION_X
The x-coordinate of the position of the camera.

The value (in metres) is a double value.

CAMERA_LOCATION_POSITION_Y
The y-coordinate of the position of the camera.

The value (in metres) is a double value.

CAMERA_LOCATION_POSITION_Z
The z-coordinate of the position of the camera.

The value (in metres) is a double value.

CAMERA_LOCATION_DIRECTION_X
The x-coordinate of the vector pointing in direction that the camera is facing.

The value (in arbitrary scale) is a double value.

CAMERA_LOCATION_DIRECTION_Y
The y-coordinate of the vector pointing in direction that the camera is facing.

The value (in arbitrary scale) is a double value.

CAMERA_LOCATION_DIRECTION_Z
The z-coordinate of the vector pointing in direction that the camera is facing.

The value (in arbitrary scale) is a double value.

CAMERA_LOCATION_ORIENTATION
The orientation that the camera is mounted on the device, relative to the normal of the direction vector.

The value (in degrees) is a double value and represents clockwise rotation value.

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.