camera_powerdownreason_t

Updated: April 19, 2023

The reason that the camera was turned off or shut down

Synopsis:

#include <camera/camera_api.h>
typedef enum {
    CAMERA_POWERDOWNREASON_UNKNOWN = 0,
    CAMERA_POWERDOWNREASON_STANDBY,
    CAMERA_POWERDOWNREASON_RESOURCEARBITRATION,
    CAMERA_POWERDOWNREASON_THERMAL,
    CAMERA_POWERDOWNREASON_FORCECLOSE
} camera_powerdownreason_t;

Data:

CAMERA_POWERDOWNREASON_UNKNOWN
The camera was turned off for an unknown reason.
CAMERA_POWERDOWNREASON_STANDBY
The camera was turned off because the device went into standby mode.
CAMERA_POWERDOWNREASON_RESOURCEARBITRATION
The camera was turned off because the shared resources that it uses were required by another component of the OS.
CAMERA_POWERDOWNREASON_THERMAL
The camera was turned off to prevent damage due to excessive heat.
CAMERA_POWERDOWNREASON_FORCECLOSE
The camera was required by a higher-priority application.

Your application must close the camera.

Library:

libcamapi

Description:

When you use event mode, you can use camera_get_status_details() to retrieve the reason the camera was turned off. The devstatusextra argument is one of the listed enumerations from this enumerated type. For information about this mode, see Using event mode.

When you are in callback mode, you can retrieve the reason using the third argument from the status callback. For information about callback arguments, see Using callback mode.