最終更新:2017-04-04 (火) 15:27:51 (2777d)
Android/カメラ/HAL
- http://tools.oesf.biz/android-7.0.0_r1.0/xref/system/media/camera/docs/docs.html
- https://android.googlesource.com/platform/system/media/ /master/camera/docs/docs.html
処理の流れとかのドキュメント
メモ
- HAL2.1+ implementation of CameraDevice.
- AOSP/frameworks/base/core/java/android/hardware/camera2/impl/CameraDeviceImpl.java
バージョン
- https://source.android.com/devices/camera/versioning.html
- AOSP/hardware/libhardware/include/hardware/camera_common.h
Camera API1 The app-level camera framework on Android 4.4 and earlier devices, exposed through the android.hardware.Camera class. Camera API2 The app-level camera framework on Android 5.0 and later devices, exposed through the android.hardware.camera2 package. Camera HAL The camera module layer implemented by SoC vendors. The app-level public frameworks are built on top of the camera HAL. Camera HAL 1.0? Initial Android camera HAL (Android 4.0) camera.h? Camera HAL 2.0? Initial release of expanded-capability HAL (Android 4.2) CAMERA_DEVICE_API_VERSION_2_0 Camera2Device (Android 4.2~Android 6.0) camera2.h android.hardware.Camera Camera HAL 2.1? Support per-device static metadata. CAMERA_DEVICE_API_VERSION_2_1? camera2.h Camera HAL 3.0? Version of the camera device HAL released with Android 4.3. CAMERA_DEVICE_API_VERSION_3_0 Camera3Device Camera HAL 3.1? Version of the camera device HAL released with Android 4.4. CAMERA_DEVICE_API_VERSION_3_1? Camera HAL 3.2? Version of the camera device HAL released with Android 5.0. CAMERA_DEVICE_API_VERSION_3_2? Camera HAL 3.3? Version of the camera device HAL released with Android 6.0. CAMERA_DEVICE_API_VERSION_3_3? Camera HAL 3.4 Version of the camera device HAL released with Android 7.0. CAMERA_DEVICE_API_VERSION_3_4 - Camera HAL 3
CameraDeviceBase
- Base interface for version >= 2 camera device classes, which interface to camera HAL device versions >= 2.
派生クラス
Camera3Device AOSP/frameworks/av/services/camera/libcameraservice/device3 Android 4.3~ CameraDevice for HAL devices with version CAMERA_DEVICE_API_VERSION_3_0 or higher. Camera2Device AOSP/frameworks/av/services/camera/libcameraservice/device2? Android 4.2~Android 6.0 CameraDevice for HAL devices with version CAMERA_DEVICE_API_VERSION_2_0
関連
メモ
例
AOSP/hardware/libhardware/modules/camera/ExampleCamera.cpp? AOSP/hardware/libhardware/modules/usbcamera/UsbCamera.cpp? AOSP/device/generic/goldfish/camera/EmulatedFakeCamera3.cpp AOSP/device/generic/goldfish/camera/EmulatedFakeCamera2.cpp? AOSP/hardware/qcom/camera/QCamera2/HAL3/QCamera3HWI.cpp? AOSP/device/lge/bullhead/camera/QCamera2/HAL3/QCamera3HWI.cpp
メモ
- libcamera2ndk.so?
- libcamera_client.so?
- libcamera_metadata.so?
- libcameraservice.so
- libmmcamera_interface.so?