Developer

API Reference

Camera Error codes

Brew Release
Brew MP 1.0.2
See Also
None
Description
Error codes are sent to the application via registered callback function to indicate event status and to pass data to client. AEECameraNotify::pData sent via callback function contains the following error codes.
The ICamera error code equals the base CAM_ERR_BASE (1) or CAM_ERROR_BASE (0xb00) plus the code from the table.
Definition
#define CAM_ERR_BASE                   1        // Base used by ICamera
#define CAM_ERR_USER_BASE              0x1000   // Base for derived class

#define CAM_ERR_ALREADY_OPEN           (CAM_ERR_BASE + 1)   // File/Stream already open
#define CAM_ERR_OPEN                   (CAM_ERR_BASE + 2)   // File/Stream failed to open or not open
#define CAM_ERR_ALREADY_EXIST          (CAM_ERR_BASE + 3)   // File/Stream already exists
#define CAM_ERR_NOT_EXIST              (CAM_ERR_BASE + 4)   // File/Stream does not exist
#define CAM_ERR_BAD_NAME               (CAM_ERR_BASE + 5)   // File/Stream bad name
#define CAM_ERR_BAD_HANDLE             (CAM_ERR_BASE + 6)   // File/Stream bad handle
#define CAM_ERR_READ                   (CAM_ERR_BASE + 7)   // File/Stream read error
#define CAM_ERR_WRITE                  (CAM_ERR_BASE + 8)   // File/Stream write error
#define CAM_ERR_FS                     (CAM_ERR_BASE + 9)   // General file system error
#define CAM_ERR_SPACE_MSG_SAMPLE_TABLE     (CAM_ERR_BASE + 10)  // Sample table is reaching limit
#define CAM_ERR_SPACE_MSG_CHUNK_TABLE      (CAM_ERR_BASE + 11)  // Chunk table is reaching limit
#define CAM_ERR_SPACE_MSG_STORAGE          (CAM_ERR_BASE + 12)  // Storage (i.e. Flash, MMC etc) is reaching limit
#define CAM_ERR_SPACE_MSG_MOVIE_DURATION   (CAM_ERR_BASE + 13)  // Movie duration is reaching limit
#define CAM_ERR_SPACE_MSG_VIDEO            (CAM_ERR_BASE + 14)  // Video is reaching limit

#define CAM_ERROR_BASE              0xb00
#define CAM_PENDING                 (-1)                 // Command accepted (queued). Result returned via registered callback.
#define CAM_EPREVIEWFAIL            (CAM_ERROR_BASE)     // Start preview failed
#define CAM_ESNAPSHOTFAIL           (CAM_ERROR_BASE + 1) // Record snaphot failed
#define CAM_ESAVEFAIL               (CAM_ERROR_BASE + 2) // Save snapshot failed
#define CAM_EMOVIEFAIL              (CAM_ERROR_BASE + 3) // Start movie failed
#define CAM_EPAUSEFAIL              (CAM_ERROR_BASE + 4) // Pause operation failed
#define CAM_ERESUMEFAIL             (CAM_ERROR_BASE + 5) // Resume operation failed
#define CAM_ESETPARMFAIL            (CAM_ERROR_BASE + 6) // SetParm operation failed

Comment
None
  • Follow