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_YAW,
    CAMERA_LOCATION_DIRECTION_X = CAMERA_LOCATION_YAW,
    CAMERA_LOCATION_PITCH,
    CAMERA_LOCATION_DIRECTION_Y = CAMERA_LOCATION_PITCH,
    CAMERA_LOCATION_ROLL,
    CAMERA_LOCATION_DIRECTION_Z = CAMERA_LOCATION_ROLL,
    CAMERA_LOCATION_ORIENTATION = 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 be allocated of size CAMERA_LOCATION_NAMELEN bytes.

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_DIRECTION_X
Deprecated.

This value is the same as CAMERA_LOCATION_YAW.

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_DIRECTION_Y
Deprecated.

This value is the same as CAMERA_LOCATION_PITCH.

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

The double value represents a counter clockwise rotation.

CAMERA_LOCATION_DIRECTION_Z
Deprecated.

This value is the same as CAMERA_LOCATION_ROLL.

CAMERA_LOCATION_ORIENTATION
Deprecated.

This value is the same as CAMERA_LOCATION_ROLL.

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.