camera_devstatus_t
Status of the camera device
Synopsis:
#include <camera/camera_api.h>typedef enum {
CAMERA_STATUS_UNKNOWN = 0,
CAMERA_STATUS_DISCONNECTED,
CAMERA_STATUS_CONNECTED,
CAMERA_STATUS_POWERDOWN,
CAMERA_STATUS_VIDEOVF,
CAMERA_STATUS_MM_ERROR,
CAMERA_STATUS_FILESIZE_ERROR,
CAMERA_STATUS_NOSPACE_ERROR,
CAMERA_STATUS_CAPTURE_ABORTED,
CAMERA_STATUS_FILESIZE_WARNING,
CAMERA_STATUS_FOCUS_CHANGE,
CAMERA_STATUS_RESOURCENOTAVAIL,
CAMERA_STATUS_VIDEO_PAUSE,
CAMERA_STATUS_VIDEO_RESUME,
CAMERA_STATUS_POWERUP,
CAMERA_STATUS_FRAME_DROPPED,
CAMERA_STATUS_FILESIZE_LIMIT_WARNING,
CAMERA_STATUS_VIEWFINDER_ACTIVE,
CAMERA_STATUS_BUFFER_UNDERFLOW,
CAMERA_STATUS_VIEWFINDER_ERROR
} camera_devstatus_t;Data:
- CAMERA_STATUS_UNKNOWN
- The status of the camera is not known.
- CAMERA_STATUS_DISCONNECTED
- No user is connected to the camera.
- CAMERA_STATUS_CONNECTED
- A user is connected to the camera but the camera is in the idle state.
- CAMERA_STATUS_POWERDOWN
- The camera is not powered.
- CAMERA_STATUS_VIDEOVF
- The video viewfinder has started.
- CAMERA_STATUS_MM_ERROR
- The recording has stopped due to a memory error or multimedia framework error (this is used by the video encoder).
- CAMERA_STATUS_FILESIZE_ERROR
- A file has exceeded the maximum size.
- CAMERA_STATUS_NOSPACE_ERROR
- The recording has stopped because there is no more disk space available.
- CAMERA_STATUS_CAPTURE_ABORTED
- The capture of a still image failed and was aborted.
- CAMERA_STATUS_FILESIZE_WARNING
- The user-configurable time-remaining threshold has been exceeded while recording video.
- CAMERA_STATUS_FOCUS_CHANGE
- The focus changed on the camera.
- CAMERA_STATUS_RESOURCENOTAVAIL
- A warning that the camera is about to free resources due to a power-down or arbitration event (i.e., resources are needed elsewhere).
- CAMERA_STATUS_VIDEO_PAUSE
- Video encoding has been paused.
- CAMERA_STATUS_VIDEO_RESUME
- Video encoding has resumed again following a pause or has started for the first time.
- CAMERA_STATUS_POWERUP
- The camera has been repowered.
- CAMERA_STATUS_FRAME_DROPPED
- This indicates that a frame was dropped internally either due to the user taking too long to process a callback frame or due to some internal error.
- CAMERA_STATUS_FILESIZE_LIMIT_WARNING
- The user-configurable time before reaching the user-configured file size limit has been reached while recording a video.
- CAMERA_STATUS_VIEWFINDER_ACTIVE
- Viewfinder is active and working properly.
- CAMERA_STATUS_BUFFER_UNDERFLOW
- The viewfinder is out of buffers and cannot stream any further buffers until a buffer is freed.
- CAMERA_STATUS_VIEWFINDER_ERROR
- An unexpected error was encountered while the viewfinder was active that prevents the camera from streaming any further data.
Library:
libcamapiDescription:
These values are delivered to the status callback functions or via the camera_get_status_details() function whenever the status of the camera changes.
Some examples of conditions which may trigger a status change include:
- the viewfinder was started
- recording has stopped
- autofocus is searching or has locked
- the camera has powered down
- a capture was aborted due to a fault
Status changes may also convey additional information as a uint16_t value where indicated.
Page updated:
