Error codes for the Camera library
Synopsis:
#include <camera/camera_api.h>
typedef enum {
CAMERA_EOK = EOK,
CAMERA_EPERM = EPERM,
CAMERA_EAGAIN = EAGAIN,
CAMERA_EINVAL = EINVAL,
CAMERA_ENODEV = ENODEV,
CAMERA_EMFILE = EMFILE,
CAMERA_EBADF = EBADF,
CAMERA_EACCESS = EACCES,
CAMERA_EBADR = EBADR,
CAMERA_ENODATA = ENODATA,
CAMERA_ENOENT = ENOENT,
CAMERA_ENOMEM = ENOMEM,
CAMERA_EOPNOTSUPP = EOPNOTSUPP,
CAMERA_ETIMEDOUT = ETIMEDOUT,
CAMERA_EALREADY = EALREADY,
CAMERA_EBUSY = EBUSY,
CAMERA_ENOSPC = ENOSPC,
CAMERA_EIO = EIO,
CAMERA_EEXIST = EEXIST,
CAMERA_EDEADLK = EDEADLK,
CAMERA_EUNINIT = 0x1000,
CAMERA_EREGFAULT,
CAMERA_EMICINUSE,
CAMERA_3ALOCKED,
CAMERA_EOVERFLOW,
CAMERA_EHARDWARE
} camera_error_t;
Data:
- CAMERA_EOK
- The function call to the camera completed successfully.
- CAMERA_EPERM
- The function call failed due to a permission issue.
- CAMERA_EAGAIN
- The function call failed due to a temporary unavailable condition.
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 camera_handle_t value was used.
- CAMERA_EACCESS
- The function call failed because the necessary permissions to access the camera are not available.
- CAMERA_EBADR
- The function call failed because an invalid file descriptor was used.
- CAMERA_ENODATA
- The function call failed because the requested data does not exist.
- 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 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_EBUSY
- The function call failed because the camera is busy.
Typically you receive this error when you try to open a camera while the camera or its required resources are in use.
- CAMERA_ENOSPC
- The function call failed because the disk is full.
This typically happens when you are trying to start a video recording and less than the system-reserved amount of disk space remains.
- CAMERA_EIO
- The function call failed because of an Input/Output error.
This typically happens when a file I/O operation failed.
- CAMERA_EEXIST
- The function call failed because the entity trying to be created already exists.
- CAMERA_EDEADLK
- The function call failed because the camera is in a bad state.
- 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.
- CAMERA_3ALOCKED
- The function call failed because a 3A lock is active.
- CAMERA_EOVERFLOW
- The function call failed due to an internal overflow.
- CAMERA_EHARDWARE
- The function call failed due to a hardware fault with the camera.
Library:
libcamapi
Description:
If you receive an error code which is not enumerated in this list, consult the system-wide list of error codes in errno.h.