camera_module_callbacks Struct Reference
#include <
camera_common.h
>
Data Fields |
|
void(* | camera_device_status_change )(const struct camera_module_callbacks *, int camera_id, int new_status) |
void(* | torch_mode_status_change )(const struct camera_module_callbacks *, const char *camera_id, int new_status) |
Detailed Description
Callback functions for the camera HAL module to use to inform the framework of changes to the camera subsystem.
Version information (based on camera_module_t.common.module_api_version):
Each callback is called only by HAL modules implementing the indicated version or higher of the HAL module API interface.
CAMERA_MODULE_API_VERSION_2_1: camera_device_status_change()
CAMERA_MODULE_API_VERSION_2_4: torch_mode_status_change()
Definition at line 594 of file camera_common.h .
Field Documentation
void(* camera_device_status_change)(const struct camera_module_callbacks *, int camera_id, int new_status) |
camera_device_status_change:
Callback to the framework to indicate that the state of a specific camera device has changed. At module load time, the framework will assume all camera devices are in the CAMERA_DEVICE_STATUS_PRESENT state. The HAL must call this method to inform the framework of any initially NOT_PRESENT devices.
This callback is added for CAMERA_MODULE_API_VERSION_2_1.
camera_module_callbacks : The instance of camera_module_callbacks_t passed to the module with set_callbacks.
camera_id: The ID of the camera device that has a new status.
new_status: The new status code, one of the camera_device_status_t enums, or a platform-specific status.
Definition at line 616 of file camera_common.h .
void(* torch_mode_status_change)(const struct camera_module_callbacks *, const char *camera_id, int new_status) |
torch_mode_status_change:
Callback to the framework to indicate that the state of the torch mode of the flash unit associated with a specific camera device has changed. At module load time, the framework will assume the torch modes are in the TORCH_MODE_STATUS_AVAILABLE_OFF state if android.flash.info.available is reported as true via get_camera_info() call.
This callback is added for CAMERA_MODULE_API_VERSION_2_4.
camera_module_callbacks : The instance of camera_module_callbacks_t passed to the module with set_callbacks.
camera_id: The ID of camera device whose flash unit has a new torch mode status.
new_status: The new status code, one of the torch_mode_status_t enums.
Definition at line 639 of file camera_common.h .
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ camera_common.h