因为MTK对于Android P HAL3项目,Camera APP使用API1的话只能使用AOSP功能(类似三方应用),所以请Camera APP都改为使用API2。
Camera API2 Google说明:
https://developer.android.com/reference/android/hardware/camera2/package-summary
Camera HAL3 Framework架构Google说明:
https://source.android.com/devices/camera/
1. HAL components Google Described
API v2部分,包括APP、CameraManager以及CameraDevice;
CameraService部分,包括CameraService、CameraDeviceClient、Camera3Device;
Binderized HAL部分,包括ICameraProvider、ICameraDevice、ICameraDeviceSession。
2. Camera API2 Architecture
相较于Camera API1是senario base,Camera API2是Request Base,
API2对Camera的操作流程用下图可以很全面的概括。
其中一些关键的类有:
CameraManager
A system service manager for detecting, characterizing, and connecting to CameraDevices.
CameraManager.AvailabilityCallback
A callback for camera devices becoming available or unavailable to open.
CameraDevice
Th