camera HAL device api 和module api关系图
device api versionsupport api levelmodule api version
CAMERA_DEVICE_API_VERSION_1_0DEPRECATED.Supports the android.hardware.Camera API, and the android.hardware.camera2 API in legacy mode only.>=1.0CAMERA_DEVICE_API_VERSION_2_0NO LONGER SUPPORTED.>=2.0CAMERA_DEVICE_API_VERSION_2_1NO LONGER SUPPORTED. Supports the android.hardware.Camera API, and the android.hardware.camera2 API in legacy mode only.>=2.0CAMERA_DEVICE_API_VERSION_3_0>=2.0CAMERA_DEVICE_API_VERSION_3_1>=2.0CAMERA_DEVICE_API_VERSION_3_2>=2.2CAMERA_DEVICE_API_VERSION_3_3>=2.2CAMERA_DEVICE_API_VERSION_3_4Supports the android.hardware.Camera API, and as of v3.2, the android.hardware.camera2 API as LIMITED or above hardware level.>=2.2
module api version
module api version
CAMERA_MODULE_API_VERSION_1_0CAMERA_MODULE_API_VERSION_2_0CAMERA_MODULE_API_VERSION_2_1CAMERA_MODULE_API_VERSION_2_2CAMERA_MODULE_API_VERSION_2_3CAMERA_MODULE_API_VERSION_2_4
camera_module_t函数和module版本对应关系
camera_module_t functionapi module version
get_number_of_cameras1.0get_camera_info1.0set_callbacks2.1get_vendor_tag_ops2.2open_legacy2.2set_torch_mode2.4init2.4
获取module和device api版本
camera_module_t.common.module_api_version
camera_info_t.device_version
camera_device_t.common.version