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_RO =         (CAMERA_MODE_PREAD | CAMERA_MODE_DREAD)   
      CAMERA_MODE_RW =         (CAMERA_MODE_PREAD | CAMERA_MODE_PWRITE |
                              CAMERA_MODE_DREAD | CAMERA_MODE_DWRITE)   
};

Since:

BlackBerry 10.0.0

Data:

CAMERA_MODE_PREAD
Read-access to the camera configuration.
CAMERA_MODE_PWRITE
Write-access to the camera configuration.
CAMERA_MODE_DREAD
Read-access to the camera imaging datapath (image buffers).
CAMERA_MODE_DWRITE
Write access to the camera imaging datapath (image buffers).
CAMERA_MODE_ROLL
Access to the camera roll.

The camera roll creates uniquely named files in the camera roll directory.

CAMERA_MODE_RO
The application has read-only access to the camera configuration and the camera imaging datapath.
CAMERA_MODE_RW
The application has read-access and write-access to camera configuration 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 (For the qcc command, use the -l camapi option to link against this library)

Description:

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus