camera_error_t

Error codes for the Camera library.

Synopsis:

#include <camera/camera_api.h>
 
typedef enum {
      CAMERA_EOK = EOK   
      CAMERA_EAGAIN = EAGAIN   
      CAMERA_EINVAL = EINVAL   
      CAMERA_ENODEV = ENODEV   
      CAMERA_EMFILE = EMFILE   
      CAMERA_EBADF = EBADF   
      CAMERA_EACCESS = EACCES   
      CAMERA_EBADR = EBADR   
      CAMERA_ENOENT = ENOENT   
      CAMERA_ENOMEM = ENOMEM   
      CAMERA_EOPNOTSUPP = EOPNOTSUPP   
      CAMERA_ETIMEDOUT = ETIMEDOUT   
      CAMERA_EALREADY = EALREADY   
      CAMERA_EUNINIT = 0x1000   
      CAMERA_EREGFAULT   
      CAMERA_EMICINUSE   
} camera_error_t;

Data:

CAMERA_EOK
The function call to the camera completed successfully.
CAMERA_EAGAIN
The function call failed because the specified camera was not available.

Try to call the function again.

CAMERA_EINVAL
The function call failed because of an invalid argument.
CAMERA_ENODEV
The function call failed because the specified camera was not found.
CAMERA_EMFILE
The function call failed because of a file table overflow.
CAMERA_EBADF
The function call failed because an invalid handle to a camera_handle_t value was used.
CAMERA_EACCESS
The function call failed due to insufficient permissions or privileges.
CAMERA_EBADR
The function call failed because an invalid file descriptor was used.
CAMERA_ENOENT
The function call failed because the specified file or directory does not exist.
CAMERA_ENOMEM
The function call failed because memory allocation failed.
CAMERA_EOPNOTSUPP
The function call failed because the requested operation is not supported.
CAMERA_ETIMEDOUT
The function call failed due to a communication problem or time-out with the camera.
CAMERA_EALREADY
The function call failed because an operation on the camera is already in progress.

In addition, this error can indicate that a call could not be completed because it was invalid or completed already. For example, if you called the camera_stop_video() function but the camera had already stopped recording video, this error code would be returned.

CAMERA_EUNINIT
The function call failed because the Camera library has not been initialized.
CAMERA_EREGFAULT
The function call failed because the registration of a callback failed.
CAMERA_EMICINUSE
The function call failed because the microphone is already in use.

Library:

libcamapi

Description: