From 42363de3de06d56b40c06b1c0e4e5f2250ae41c3 Mon Sep 17 00:00:00 2001 From: Zhangzi Date: Thu, 20 Oct 2022 11:30:49 +0000 Subject: [PATCH] =?UTF-8?q?update=20zh-cn/device-dev/driver/driver-periphe?= =?UTF-8?q?rals-camera-des.md.=20=E6=B7=BB=E5=8A=A0camera=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BB=A3=E7=A0=81=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zhangzi --- .../driver/driver-peripherals-camera-des.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/device-dev/driver/driver-peripherals-camera-des.md b/zh-cn/device-dev/driver/driver-peripherals-camera-des.md index 8d8d2bac20..d05d17499f 100755 --- a/zh-cn/device-dev/driver/driver-peripherals-camera-des.md +++ b/zh-cn/device-dev/driver/driver-peripherals-camera-des.md @@ -45,9 +45,9 @@ Camera模块主要包含服务、设备的初始化,数据通路的搭建, Camera模块主要用以相机预览、拍照、视频流等场景下对相机操作封装,使开发者更易操作相机硬件,提高开发效率。 -### 接口说明 +### 接口说明(接口代码路径:/drivers/peripheral/camera/hal/hdi_impl/src/) -- ICameraDevice.idl +- drivers/interface/camera/v1_0/ICameraDevice.idl | 功能描述 | 接口名称 | | ---------------------------- | ------------------------------------------------------------ | @@ -59,7 +59,7 @@ Camera模块主要用以相机预览、拍照、视频流等场景下对相机 | 禁止具体的ResultMeta | CamRetCode DisableResult(const std::vector &results) | | 关闭Camera设备 | void Close() | -- ICameraDeviceCallback.idl +- drivers/interface/camera/v1_0/ICameraDeviceCallback.idl | 功能描述 | 接口名称 | | ---------------------------------------------------------- | ------------------------------------------------------------ | @@ -67,7 +67,7 @@ Camera模块主要用以相机预览、拍照、视频流等场景下对相机 | 上报camera设备相关的metadata的回调 | void OnResult(uint64_t timestamp, const std::shared_ptr &result) | -- ICameraHost.idl +- drivers/interface/camera/v1_0/ICameraHost.idl | 功能描述 | 接口名称 | | ------------------------------ | ------------------------------------------------------------ | @@ -77,14 +77,14 @@ Camera模块主要用以相机预览、拍照、视频流等场景下对相机 | 打开Camera设备 | CamRetCode OpenCamera(const std::string &cameraId,
const OHOS::sptr &callback,
OHOS::sptr &device) | | 打开或关闭闪光灯 | CamRetCode SetFlashlight(const std::string &cameraId, bool &isEnable) | -- ICameraHostCallback.idl +- drivers/interface/camera/v1_0/ICameraHostCallback.idl | 功能描述 | 接口名称 | | ---------------------- | ------------------------------------------------------------ | | Camera设备状态变化上报 | void OnCameraStatus(const std::string &cameraId, CameraStatus status) | | 闪光灯状态变化回调 | void OnFlashlightStatus(const std::string &cameraId, FlashlightStatus status) | -- IOfflineStreamOperator.idl +- drivers/interface/camera/v1_0/IOfflineStreamOperator.idl | 功能描述 | 接口名称 | | -------------- | ------------------------------------------------------------ | @@ -92,7 +92,7 @@ Camera模块主要用以相机预览、拍照、视频流等场景下对相机 | 释放流 | CamRetCode ReleaseStreams(const std::vector &streamIds) | | 释放所有离线流 | CamRetCode Release() | -- IStreamOperator.idl +- drivers/interface/camera/v1_0/IStreamOperator.idl | 功能描述 | 接口名称 | | -------------------------------- | ------------------------------------------------------------ | @@ -107,7 +107,7 @@ Camera模块主要用以相机预览、拍照、视频流等场景下对相机 | 取消捕获 | CamRetCode CancelCapture(int captureId) | | 将指定流转换成离线流 | CamRetCode ChangeToOfflineStream(const std::vector &streamIds,
OHOS::sptr &callback,
OHOS::sptr &offlineOperator) | -- IStreamOperatorCallback.idl +- drivers/interface/camera/v1_0/IStreamOperatorCallback.idl | 功能描述 | 接口名称 | | ---------------------------------------- | ------------------------------------------------------------ | -- GitLab