Camera access mode flags

The camera access mode flags that are passed to the camera_open function to indicate the type of access that is required.

Synopsis:

#include <camera/camera_api.h>
 
 enum {
      CAMERA_MODE_PREAD =      1<<0   
      CAMERA_MODE_PWRITE =     1<<1   
      CAMERA_MODE_DREAD =      1<<2   
      CAMERA_MODE_DWRITE =     1<<3   
      CAMERA_MODE_ROLL =       1<<4   
      CAMERA_MODE_PRIVILEGED = 1<<5   
      CAMERA_MODE_RO =         (CAMERA_MODE_PREAD | CAMERA_MODE_DREAD)   
      CAMERA_MODE_RW =         (CAMERA_MODE_PREAD | CAMERA_MODE_PWRITE |
                              CAMERA_MODE_DREAD | CAMERA_MODE_DWRITE)   
};

Data:

CAMERA_MODE_PREAD
Indicates read-access to the camera parameters.
CAMERA_MODE_PWRITE
Indicates write-access to the camera parameters.
CAMERA_MODE_DREAD
Indicates read-access to the camera imaging datapath(image buffers).
CAMERA_MODE_DWRITE
Indicates write access to the camera imaging datapath(image buffers).
CAMERA_MODE_ROLL
Indicates access to the filename generator from the camera roll.

The filename generator creates unique file names and also creates files on the camera roll.

CAMERA_MODE_PRIVILEGED
For internal use only.

Requires root permissions.

CAMERA_MODE_RO
Indicates that you have read-only access to camera parameters and the camera imaging datapath.
CAMERA_MODE_RW
Indicates that you have read-access and write-access to camera parameters and the camera imaging datapath.

Use this as an alias for CAMERA_MODE_PREAD, CAMERA_MODE_PWRITE, CAMERA_MODE_DREAD, and CAMERA_MODE_DWRITE.

Library:

libcamapi

Description: