From 6d274f0b39b7da7e7e3241d2f52ad5f318f44374 Mon Sep 17 00:00:00 2001 From: yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 20:21:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?readme=E7=BA=A6=E6=9D=9F=E4=B8=8E=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.en.md b/README.en.md index 047bbc7..886cba1 100644 --- a/README.en.md +++ b/README.en.md @@ -98,6 +98,6 @@ N/A ### Constraints 1. The sample app is supported only on Huawei phones running the standard system. -2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. -3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. -4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later. +2. The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. +3. The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. +4. The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release or later. diff --git a/README.md b/README.md index ab04a10..9cd080f 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,6 @@ ### 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 -3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 \ No newline at end of file +2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。 \ No newline at end of file -- Gitee From ca72cc75cb61b8a99f6ddf872d76e81e5eab3763 Mon Sep 17 00:00:00 2001 From: yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Tue, 4 Mar 2025 15:37:13 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=BD=95=E5=83=8F=E9=BB=91=E5=B1=8F?= =?UTF-8?q?=E7=9A=84bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/cpp/camera_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entry/src/main/cpp/camera_manager.cpp b/entry/src/main/cpp/camera_manager.cpp index fd4f4d2..e9758e0 100644 --- a/entry/src/main/cpp/camera_manager.cpp +++ b/entry/src/main/cpp/camera_manager.cpp @@ -352,6 +352,8 @@ Camera_ErrorCode NDKCamera::GetSupportedOutputCapability(void) { } Camera_ErrorCode NDKCamera::CreatePreviewOutput(void) { + cameraOutputCapability_->previewProfiles[0]->size.width = 640; + cameraOutputCapability_->previewProfiles[0]->size.height = 480; profile_ = cameraOutputCapability_->previewProfiles[0]; if (profile_ == nullptr) { OH_LOG_ERROR(LOG_APP, "Get previewProfiles failed."); @@ -383,6 +385,8 @@ Camera_ErrorCode NDKCamera::CreatePhotoOutput(char *photoSurfaceId) { } Camera_ErrorCode NDKCamera::CreateVideoOutput(char *videoId) { + cameraOutputCapability_->videoProfiles[0]->size.width = 640; + cameraOutputCapability_->videoProfiles[0]->size.height = 480; videoProfile_ = cameraOutputCapability_->videoProfiles[0]; if (videoProfile_ == nullptr) { -- Gitee From 557af1342e6df2ba7684ae4bfd7124279901af39 Mon Sep 17 00:00:00 2001 From: yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Wed, 5 Mar 2025 16:58:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8A=98=E5=8F=A0=E5=B1=8F=E5=BD=95?= =?UTF-8?q?=E5=83=8F=E9=BB=91=E5=B1=8F/=E8=8A=B1=E5=B1=8F=E7=9A=84bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/cpp/camera_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entry/src/main/cpp/camera_manager.cpp b/entry/src/main/cpp/camera_manager.cpp index e9758e0..6a01822 100644 --- a/entry/src/main/cpp/camera_manager.cpp +++ b/entry/src/main/cpp/camera_manager.cpp @@ -648,6 +648,8 @@ Camera_ErrorCode NDKCamera::IsFocusPoint(float x, float y) { } int32_t NDKCamera::GetVideoFrameWidth(void) { + cameraOutputCapability_->videoProfiles[0]->size.width = 640; + cameraOutputCapability_->videoProfiles[0]->size.height = 480; videoProfile_ = cameraOutputCapability_->videoProfiles[0]; if (videoProfile_ == nullptr) { OH_LOG_ERROR(LOG_APP, "Get videoProfiles failed."); @@ -657,6 +659,8 @@ int32_t NDKCamera::GetVideoFrameWidth(void) { } int32_t NDKCamera::GetVideoFrameHeight(void) { + cameraOutputCapability_->videoProfiles[0]->size.width = 640; + cameraOutputCapability_->videoProfiles[0]->size.height = 480; videoProfile_ = cameraOutputCapability_->videoProfiles[0]; if (videoProfile_ == nullptr) { OH_LOG_ERROR(LOG_APP, "Get videoProfiles failed."); -- Gitee