最終更新:2017-03-27 (月) 16:43:09 (2755d)  

camera_module_t
Top / camera_module_t

定義

  • AOSP/hardware/libhardware/include/hardware/camera_common.h
    hw_module_tcamera_module_t.common?Common methods of the camera module
    intcamera_module_t.get_number_of_cameras?
    intcamera_module_t.get_camera_infoReturn the static camera information for a given camera device
    intcamera_module_t.set_callbacks?
    voidcamera_module_t.get_vendor_tag_ops?
    intcamera_module_t.open_legacy?
    intcamera_module_t.set_torch_mode?
    intcamera_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.

使われどころ

実装

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