From 0e3fd11db4fa4f5f65edd83c96bc61b14d65ed95 Mon Sep 17 00:00:00 2001 From: Zhangzi Date: Fri, 21 Oct 2022 09:02:46 +0000 Subject: [PATCH] =?UTF-8?q?update=20zh-cn/device-dev/driver/driver-periphe?= =?UTF-8?q?rals-camera-des.md.=20=E7=A9=BA=E6=A0=BC=E5=86=97=E4=BD=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zhangzi --- zh-cn/device-dev/driver/driver-peripherals-camera-des.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 6d4edbbfb5..055950109c 100755 --- a/zh-cn/device-dev/driver/driver-peripherals-camera-des.md +++ b/zh-cn/device-dev/driver/driver-peripherals-camera-des.md @@ -828,12 +828,12 @@ Camera驱动的开发过程主要包含以下步骤: std::vector streamInfos; streamInfos.push_back(streamInfo); - rc = streamOperator_->CreateStreams(streamInfos); //创建流 + rc = streamOperator_->CreateStreams(streamInfos); // 创建流 if (rc != HDI::Camera::V1_0::NO_ERROR) { CAMERA_LOGE("demo test: CreateStream CreateStreams error\n"); return RC_ERROR; } - + rc = streamOperator_->CommitStreams(NORMAL, cameraAbility_); if (rc != HDI::Camera::V1_0::NO_ERROR) { CAMERA_LOGE("demo test: CreateStream CommitStreams error\n"); @@ -842,7 +842,7 @@ Camera驱动的开发过程主要包含以下步骤: streamOperator_->ReleaseStreams(streamIds); return RC_ERROR; } - + CAMERA_LOGD("demo test: CreateStream exit"); return RC_OK; @@ -1027,5 +1027,5 @@ Camera驱动的开发过程主要包含以下步骤: ] ``` - 执行全量编译命令./build.sh --product-name rk3568 --ccache,生成可执行二进制文件ohos_camera_demo,路径为:out/rk3568/packages/phone/vendor/bin/。将可执行文件ohos_camera_demo导入板子,修改权限直接运行即可。 + 以RK3568为例:执行全量编译命令./build.sh --product-name rk3568 --ccache,生成可执行二进制文件ohos_camera_demo,路径为:out/rk3568/packages/phone/vendor/bin/。将可执行文件ohos_camera_demo导入板子,修改权限直接运行即可。 -- GitLab