最終更新:2017-03-27 (月) 16:43:09 (2755d)
camera_module_t
Top / camera_module_t
定義
- AOSP/hardware/libhardware/include/hardware/camera_common.h
hw_module_t camera_module_t.common? Common methods of the camera module int camera_module_t.get_number_of_cameras? int camera_module_t.get_camera_info Return the static camera information for a given camera device int camera_module_t.set_callbacks? void camera_module_t.get_vendor_tag_ops? int camera_module_t.open_legacy? int camera_module_t.set_torch_mode? int camera_module_t.init? This method is called by the camera service before any other methods are invoked,right after the camera HAL library has been successfully loaded.
使われどころ
- CameraModule
- CameraModule::CameraModule?(camera_module_t *module) {
実装
Nexus 5X
- AOSP/device/lge/bullhead/camera/QCamera2/QCamera2Hal.cpp
camera_module_t HAL_MODULE_INFO_SYM = { .common = camera_common, .get_number_of_cameras = qcamera::QCamera2Factory::get_number_of_cameras, .get_camera_info = qcamera::QCamera2Factory::get_camera_info, .set_callbacks = qcamera::QCamera2Factory::set_callbacks, .get_vendor_tag_ops = qcamera::QCamera3VendorTags::get_vendor_tag_ops, .open_legacy = qcamera::QCamera2Factory::open_legacy, .set_torch_mode = qcamera::QCamera2Factory::set_torch_mode, .init = NULL, .reserved = {0} };
CameraModule
- This class wraps camera_module_t