diff options
author | Yin-Chia Yeh <yinchiayeh@google.com> | 2016-12-14 19:13:15 -0800 |
---|---|---|
committer | Yin-Chia Yeh <yinchiayeh@google.com> | 2017-01-05 14:48:27 -0800 |
commit | f906b3bbbb9b0251e563e3de20d124c41ad238bb (patch) | |
tree | cc076c510e2372013aea29b6a7e02861e80a5645 /camera/common/1.0/default/include/CameraModule.h | |
parent | faef8f92c95a1e0868c1ec8fd220b9d957831022 (diff) |
Camera: Add default camera provider 2.4
Supports legacy camera HAL modules; also exports ICameraDevice
instances.
Test: compile
Bug: 30985004
Change-Id: I2b9624a412de95dd43979a5e6650b170010c577a
Diffstat (limited to 'camera/common/1.0/default/include/CameraModule.h')
-rw-r--r-- | camera/common/1.0/default/include/CameraModule.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/camera/common/1.0/default/include/CameraModule.h b/camera/common/1.0/default/include/CameraModule.h index 907c807992..68d4f9051c 100644 --- a/camera/common/1.0/default/include/CameraModule.h +++ b/camera/common/1.0/default/include/CameraModule.h @@ -49,16 +49,17 @@ public: int getDeviceVersion(int cameraId); int getNumberOfCameras(void); int open(const char* id, struct hw_device_t** device); - bool isOpenLegacyDefined(); + bool isOpenLegacyDefined() const; int openLegacy(const char* id, uint32_t halVersion, struct hw_device_t** device); int setCallbacks(const camera_module_callbacks_t *callbacks); - bool isVendorTagDefined(); + bool isVendorTagDefined() const; void getVendorTagOps(vendor_tag_ops_t* ops); + bool isSetTorchModeSupported() const; int setTorchMode(const char* camera_id, bool enable); - uint16_t getModuleApiVersion(); - const char* getModuleName(); - uint16_t getHalApiVersion(); - const char* getModuleAuthor(); + uint16_t getModuleApiVersion() const; + const char* getModuleName() const; + uint16_t getHalApiVersion() const; + const char* getModuleAuthor() const; // Only used by CameraModuleFixture native test. Do NOT use elsewhere. void *getDso(); |