camera_unit_t

A logical unit that represents a camera on the device.

Synopsis:

#include <camera/camera_api.h>
 
typedef enum {
      CAMERA_UNIT_NONE = 0   
      CAMERA_UNIT_FRONT   
      CAMERA_UNIT_REAR   
      CAMERA_UNIT_DESKTOP   
      CAMERA_UNIT_NUM_UNITS   
} camera_unit_t;

Data:

CAMERA_UNIT_NONE
Indicates that no camera is available on the device.
CAMERA_UNIT_FRONT
Indicates the camera on the front of the device.
CAMERA_UNIT_REAR
Indicates the camera on the rear of the device.
CAMERA_UNIT_DESKTOP
Indicates the virtual desktop camera used for sharing your desktop.

Sharing your desktop is capability available for some devices.

CAMERA_UNIT_NUM_UNITS
For internal use only.

The value is used to size array for the maximum number of cameras supported.

Library:

libcamapi

Description:

Cameras can be physically located on the front and rear of a device. It is possible for devices to have more than two cameras.