Developer

API Reference

Camera Status codes

Brew Release
Brew MP 1.0.2
See Also
None
Description
Status codes are sent to the application via registered callback function to indicate event status and to pass data to client. AEECameraNotify::nStatus sent via callback function contains the following status codes.
Members
  • CAM_STATUS_BASE:  Base used by ICamera
  • CAM_STATUS_USER_BASE:  Base for extension
  • CAM_STATUS_START:  [Preview, Record] Operation started successfully
  • CAM_STATUS_DONE:  [Preview, Record, SetParm, GetParm, EncodeSnapshot] Operation completed successfully
                          For RecordSnapShot, pData = TRUE/FALSE => Deferred encode enabled/disabled
  • CAM_STATUS_FAIL:  [Preview, Record, SetParm, GetParm, EncodeSnapshot] Operation failed, pData = CAM_EXXX or CAM_ERR_XXX error code.  CAM_EXXX is defined in AEEError.h.
  • CAM_STATUS_ABORT:  [Any] Current operation
  • CAM_STATUS_FRAME:  [Any] The raw frame captured by camera.  Occurs only when CAM_PARM_LCD_DIRECT_ACCESS is not enabled.
  • CAM_STATUS_PAUSE:  [Preview, Record] Record movie paused
  • CAM_STATUS_RESUME:  [Preview, Record] Record movie resumed.
  • CAM_STATUS_DATA_IO_DELAY:  [Preview, Record] Operation being delayed by data i/o access
  • CAM_STATUS_SPACE_WARNING:  [Record] Memory available to store recording running low
       CAM_STATUS_SPACE_ERROR         (CAM_STATUS_BASE + 9)   // [Record] Memory unavailable to store recording, pData contains CAM_ERR_SPACE_MSG_XXX
       CAM_STATUS_FILE_SIZE_EXCEEDED  (CAM_STATUS_BASE + 10)  // [EncodeSnapshot/RecordMovie] Operation completed but output encoded image exceeds specified file size
       CAM_STATUS_IO_ERROR            (CAM_STATUS_BASE + 11)  // [EncodeSnapshot/RecordMovie] I/O Error, pData contains CAM_ERR_XXX
Definition
#define CAM_STATUS_BASE                1                       // Base used by ICamera
#define CAM_STATUS_USER_BASE           0x8000                  // Base for extension

#define CAM_STATUS_START               (CAM_STATUS_BASE)       // [Preview/Record] Operation started successfully
#define CAM_STATUS_DONE                (CAM_STATUS_BASE + 1)   // [Preview/Record/SetParm/GetParm/EncodeSnapshot] Operation completed successfully
                                                               // For RecordSnapShot, pData = TRUE/FALSE => Deferred encode enabled/disabled
                                                               // For EncodeSnapshot, pData = Number of bytes encoded
#define CAM_STATUS_FAIL                (CAM_STATUS_BASE + 2)   // [Preview/Record/SetParm/GetParm/EncodeSnapshot] Operation failed, pData = CAM_EXXX or CAM_ERR_XXX error code. CAM_EXXX is defined in AEEError.h.
#define CAM_STATUS_ABORT               (CAM_STATUS_BASE + 3)   // [Any] Current operation aborted: Camera entered ready mode
#define CAM_STATUS_FRAME               (CAM_STATUS_BASE + 4)   // [Any] The raw frame captured by camera.  Occurs only when CAM_PARM_LCD_DIRECT_ACCESS is not enabled.
#define CAM_STATUS_PAUSE               (CAM_STATUS_BASE + 5)   // [Preview/Record] Record movie paused
#define CAM_STATUS_RESUME              (CAM_STATUS_BASE + 6)   // [Preview/Record] Record movie resumed
                                                               //                  AEECameraNotify::pData is IBitmap pointer representing the snapshot
#define CAM_STATUS_DATA_IO_DELAY       (CAM_STATUS_BASE + 7)   // [Preview/Record] Operation being delayed by data i/o access
#define CAM_STATUS_SPACE_WARNING       (CAM_STATUS_BASE + 8)   // [Record] Memory available to store recording running low, pData contains CAM_ERR_SPACE_MSG_XXX
#define CAM_STATUS_SPACE_ERROR         (CAM_STATUS_BASE + 9)   // [Record] Memory unavailable to store recording, pData contains CAM_ERR_SPACE_MSG_XXX
#define CAM_STATUS_FILE_SIZE_EXCEEDED  (CAM_STATUS_BASE + 10)  // [EncodeSnapshot/RecordMovie] Operation completed but output encoded image exceeds specified file size
#define CAM_STATUS_IO_ERROR            (CAM_STATUS_BASE + 11)  // [EncodeSnapshot/RecordMovie] I/O Error, pData contains CAM_ERR_XXX
Comment
None
  • Follow