From 26f2846ada809f655adf615cd88a1eb67ae37e65 Mon Sep 17 00:00:00 2001 From: biga2021 Date: Thu, 28 Apr 2022 10:49:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor=EF=BC=9Aupdate=20path=20of=20metadata?= =?UTF-8?q?=20in=20camera-des.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: biga2021 --- en/device-dev/driver/driver-peripherals-camera-des.md | 6 +++--- zh-cn/device-dev/driver/driver-peripherals-camera-des.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/en/device-dev/driver/driver-peripherals-camera-des.md b/en/device-dev/driver/driver-peripherals-camera-des.md index 51667b52f5..9105ff4a83 100644 --- a/en/device-dev/driver/driver-peripherals-camera-des.md +++ b/en/device-dev/driver/driver-peripherals-camera-des.md @@ -96,7 +96,7 @@ The camera module encapsulates camera operations in camera preview, photographin | API | Description | | ------------------------------------------------------------ | -------------------------------- | - | CamRetCode IsStreamsSupported(
OperationMode mode,
const std::shared_ptr\ &modeSetting,
const std::vector<std::shared_ptr<StreamInfo>> &info,
StreamSupportType &type) | Checks whether a stream can be added. | + | CamRetCode IsStreamsSupported(
OperationMode mode,
const std::shared_ptr\ &modeSetting,
const std::vector<std::shared_ptr<StreamInfo>> &info,
StreamSupportType &type) | Checks whether a stream can be added. | | CamRetCode CreateStreams(const std::vector> &streamInfos) | Creates streams. | | CamRetCode ReleaseStreams(const std::vector &streamIds) | Releases streams. | | CamRetCode CommitStreams(OperationMode mode,
const std::shared_ptr &modeSetting) | Configure streams. | @@ -363,7 +363,7 @@ To camera driver development procedure is as follows: Use the **CommitStreams()** interface to configure the stream, including PipelineCore initialization and creation. It must be called after the stream is created. ``` - CamRetCode StreamOperatorImpl::CommitStreams(OperationMode mode, const std::shared_ptr& modeSetting) + CamRetCode StreamOperatorImpl::CommitStreams(OperationMode mode, const std::shared_ptr& modeSetting) { auto cameraDevice = cameraDevice_.lock(); if (cameraDevice == nullptr) { @@ -404,7 +404,7 @@ To camera driver development procedure is as follows: ``` using CaptureInfo = struct _CaptureInfo { std::vector streamIds_; // IDs of streams to be captured - std::shared_ptr captureSetting_; // Camera ability can be obtained through the GetCameraAbility() interface of CameraHost. + std::shared_ptr captureSetting_; // Camera ability can be obtained through the GetCameraAbility() interface of CameraHost. bool enableShutterCallback_; }; ``` 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 3eb096c087..50b48b6e3f 100755 --- a/zh-cn/device-dev/driver/driver-peripherals-camera-des.md +++ b/zh-cn/device-dev/driver/driver-peripherals-camera-des.md @@ -96,7 +96,7 @@ Camera模块主要用以相机预览、拍照、视频流等场景下对相机 | 功能描述 | 接口名称 | | -------------------------------- | ------------------------------------------------------------ | - | 查询是否支持添加参数对应的流 | CamRetCode IsStreamsSupported(
OperationMode mode,
const std::shared_ptr &modeSetting,
const std::vector<std::shared_ptr<StreamInfo>> &info,
StreamSupportType &type) | + | 查询是否支持添加参数对应的流 | CamRetCode IsStreamsSupported(
OperationMode mode,
const std::shared_ptr &modeSetting,
const std::vector<std::shared_ptr<StreamInfo>> &info,
StreamSupportType &type) | | 创建流 | CamRetCode CreateStreams(const std::vector> &streamInfos) | | 释放流 | CamRetCode ReleaseStreams(const std::vector &streamIds) | | 配置流 | CamRetCode CommitStreams(OperationMode mode,
const std::shared_ptr &modeSetting) | @@ -363,7 +363,7 @@ Camera驱动的开发过程主要包含以下步骤: CommitStreams()是配置流的接口,必须在创建流之后调用,其主要作用是初始化Pipeline和创建Pipeline。 ``` - CamRetCode StreamOperatorImpl::CommitStreams(OperationMode mode, const std::shared_ptr& modeSetting) + CamRetCode StreamOperatorImpl::CommitStreams(OperationMode mode, const std::shared_ptr& modeSetting) { auto cameraDevice = cameraDevice_.lock(); if (cameraDevice == nullptr) { @@ -404,7 +404,7 @@ Camera驱动的开发过程主要包含以下步骤: ``` using CaptureInfo = struct _CaptureInfo { std::vector streamIds_; //需要Capture的streamIds - std::shared_ptr captureSetting_; // 这里填充camera ability 可通过CameraHost 的GetCameraAbility()接口获取 + std::shared_ptr captureSetting_; // 这里填充camera ability 可通过CameraHost 的GetCameraAbility()接口获取 bool enableShutterCallback_; }; ``` -- GitLab