From 0d1fb1fc11a7c4ba22e43b470bc6d5c3c3eae833 Mon Sep 17 00:00:00 2001 From: mamingshuai Date: Wed, 2 Jun 2021 00:06:09 +0800 Subject: [PATCH] update OpenHarmony 2.0 Canary --- .gitattributes | 0 LICENSE | 177 +++++ README.en.md | 36 - README.md | 49 +- README_zh.md | 32 + figures/camera组件架构图.png | Bin 0 -> 85224 bytes ...position-in-the-subsystem-architecture.png | Bin 0 -> 49396 bytes frameworks/innerkitsimpl/camera/BUILD.gn | 141 ++++ .../camera/include/camera_device.h | 121 ++++ .../camera/include/camera_impl.h | 59 ++ .../camera/include/camera_manager.h | 49 ++ .../camera/include/camera_service.h | 43 ++ .../camera/include/camera_service_callback.h | 43 ++ .../camera/include/hal_display.h | 67 ++ .../innerkitsimpl/camera/include/hal_media.h | 56 ++ .../camera/src/camera_ability.cpp | 70 ++ .../camera/src/camera_config.cpp | 64 ++ .../camera/src/camera_device.cpp | 670 ++++++++++++++++++ .../innerkitsimpl/camera/src/camera_impl.cpp | 183 +++++ .../innerkitsimpl/camera/src/camera_kit.cpp | 61 ++ .../camera/src/camera_manager.cpp | 168 +++++ .../camera/src/camera_service.cpp | 120 ++++ .../camera/src/event_handler.cpp | 74 ++ .../innerkitsimpl/camera/src/frame_config.cpp | 65 ++ frameworks/innerkitsimpl/camera/test/BUILD.gn | 20 + .../test/moduletest/cpp/camera_test/BUILD.gn | 50 ++ .../camera_test/include/camera_module_test.h | 71 ++ .../camera_test/src/camera_module_test.cpp | 494 +++++++++++++ .../innerkitsimpl/prebuilts/etcs/BUILD.gn | 27 + .../prebuilts/etcs/cameradev_imx307.ini | 256 +++++++ .../prebuilts/etcs/cameradev_imx335.ini | 272 +++++++ .../prebuilts/etcs/cameradev_jxf23.ini | 256 +++++++ interfaces/innerkits/native/include/camera.h | 156 ++++ .../innerkits/native/include/camera_ability.h | 116 +++ .../innerkits/native/include/camera_config.h | 105 +++ .../native/include/camera_device_callback.h | 77 ++ .../innerkits/native/include/camera_kit.h | 119 ++++ .../native/include/camera_state_callback.h | 94 +++ .../innerkits/native/include/event_handler.h | 71 ++ .../innerkits/native/include/frame_config.h | 142 ++++ .../native/include/frame_state_callback.h | 88 +++ .../innerkits/native/include/media_log.h | 54 ++ .../innerkits/native/include/meta_data.h | 100 +++ interfaces/innerkits/native/test/BUILD.gn | 46 ++ .../innerkits/native/test/camera_sample.cpp | 529 ++++++++++++++ ohos.build | 40 ++ 46 files changed, 5468 insertions(+), 63 deletions(-) create mode 100644 .gitattributes create mode 100755 LICENSE delete mode 100644 README.en.md mode change 100644 => 100755 README.md create mode 100755 README_zh.md create mode 100755 figures/camera组件架构图.png create mode 100755 figures/position-in-the-subsystem-architecture.png create mode 100644 frameworks/innerkitsimpl/camera/BUILD.gn create mode 100644 frameworks/innerkitsimpl/camera/include/camera_device.h create mode 100644 frameworks/innerkitsimpl/camera/include/camera_impl.h create mode 100644 frameworks/innerkitsimpl/camera/include/camera_manager.h create mode 100644 frameworks/innerkitsimpl/camera/include/camera_service.h create mode 100644 frameworks/innerkitsimpl/camera/include/camera_service_callback.h create mode 100644 frameworks/innerkitsimpl/camera/include/hal_display.h create mode 100644 frameworks/innerkitsimpl/camera/include/hal_media.h create mode 100644 frameworks/innerkitsimpl/camera/src/camera_ability.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/camera_config.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/camera_device.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/camera_impl.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/camera_kit.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/camera_manager.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/camera_service.cpp create mode 100644 frameworks/innerkitsimpl/camera/src/event_handler.cpp create mode 100755 frameworks/innerkitsimpl/camera/src/frame_config.cpp create mode 100644 frameworks/innerkitsimpl/camera/test/BUILD.gn create mode 100755 frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/BUILD.gn create mode 100644 frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/include/camera_module_test.h create mode 100644 frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/src/camera_module_test.cpp create mode 100644 frameworks/innerkitsimpl/prebuilts/etcs/BUILD.gn create mode 100644 frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx307.ini create mode 100644 frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx335.ini create mode 100644 frameworks/innerkitsimpl/prebuilts/etcs/cameradev_jxf23.ini create mode 100644 interfaces/innerkits/native/include/camera.h create mode 100644 interfaces/innerkits/native/include/camera_ability.h create mode 100644 interfaces/innerkits/native/include/camera_config.h create mode 100644 interfaces/innerkits/native/include/camera_device_callback.h create mode 100644 interfaces/innerkits/native/include/camera_kit.h create mode 100644 interfaces/innerkits/native/include/camera_state_callback.h create mode 100644 interfaces/innerkits/native/include/event_handler.h create mode 100644 interfaces/innerkits/native/include/frame_config.h create mode 100644 interfaces/innerkits/native/include/frame_state_callback.h create mode 100644 interfaces/innerkits/native/include/media_log.h create mode 100644 interfaces/innerkits/native/include/meta_data.h create mode 100644 interfaces/innerkits/native/test/BUILD.gn create mode 100644 interfaces/innerkits/native/test/camera_sample.cpp create mode 100644 ohos.build diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..4947287 --- /dev/null +++ b/LICENSE @@ -0,0 +1,177 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 2ab4f4e..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# multimedia_camera_standard - -#### Description -Implementation of camera device management and camera capture functions | 相机设备和相机采集功能实现 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 71d1ca5..640bd43 --- a/README.md +++ b/README.md @@ -1,37 +1,32 @@ -# multimedia_camera_standard +# Camera -#### 介绍 -Implementation of camera device management and camera capture functions | 相机设备和相机采集功能实现 +- [Introduction](#section11660541593) +- [Directory Structure](#section176641621345) +- [Repositories Involved](#section16511040154318) -#### 软件架构 -软件架构说明 +## Introduction +The **camera\_standard** repository enables your application to provide camera functions. You can access and operate the camera device and develop new functions through open APIs. Common operations include preview, photographing, and video recording. -#### 安装教程 +**Figure 1** Position in the subsystem architecture +![](figures/position-in-the-subsystem-architecture.png "position-in-the-subsystem-architecture") -1. xxxx -2. xxxx -3. xxxx +## Directory Structure -#### 使用说明 +The structure of the repository directory is as follows: -1. xxxx -2. xxxx -3. xxxx +``` +/foundation/multimedia/camera +├── frameworks # Framework code +│ ├── include # Header files required by the framework +│ └── src # Framework implementation +├── interfaces # External APIs +│ └── kits # External API files +├── LICENSE # License file +└── ohos.build # Build file +``` -#### 参与贡献 +## Repositories Involved -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request +multimedia\_camera\_standard - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README_zh.md b/README_zh.md new file mode 100755 index 0000000..2b735fe --- /dev/null +++ b/README_zh.md @@ -0,0 +1,32 @@ +# Camera组件 + +- [简介](#section11660541593) +- [目录](#section176641621345) +- [相关仓](#section16511040154318) + +## 简介 + +相机组件支持相机业务的开发,开发者可以通过已开放的接口实现相机硬件的访问、操作和新功能开发,最常见的操作如:预览、拍照和录像等。 + +**图 1** camera组件架构图 +![](figures/camera组件架构图.png "camera组件架构图") + +## 目录 + +仓目录结构如下: + +``` +/foundation/multimedia/camera_standard # 相机组件业务代码 +├── frameworks # 框架代码 +│ ├── include # 框架所需头文件 +│ └── src # 框架层实现 +├── interfaces # 外部接口层 +│ └── kits # 外部接口文件 +├── LICENSE # 证书文件 +└── ohos.build # 编译文件 +``` + +## 相关仓 + +媒体子系统仓:multimedia\_camera\_standard + diff --git a/figures/camera组件架构图.png b/figures/camera组件架构图.png new file mode 100755 index 0000000000000000000000000000000000000000..9bddb30b68e156218ecfc5c3f927651751e9ecb5 GIT binary patch literal 85224 zcmeFZXH-*b*EXsfmAyqkMWqHrlp-AjB%vu9RGNzPrXalu1VRf@QBffQ1VOqGdKC!0 zsYpj4l+ZzXAkiJOP=8=Ln$Fn=eo=1+bG|>N!HoIj#J#vJWe)ramM?Mxy2dv?se&2bN?nk0wY3W>kRQpym zf;iR(KJE7KinoiwY}-_NlSiuXWwC7u>GkAySJZtOiXtC=AB+@cVrd$Gap%@!>!m-e zti)2E-ALkK3OPD8nXFXys+j|o*TQgC;MHla6PJHTo#hCbAJB!X!mIYS6Bqp5$hC;Q zz&icp4|Cg!nS0y5uH=P{Wlx>3i?2@K{GI>r7q2WS@PC}(?<@LFQ2WOn{IBjepTscy zy9oUgNHmn??>Y`IdF9=NHg9O4f!X-`n0ep$3U~DHuSbql+Dbox{o}h@fw7hxisjWJ zF5a!~5A)yt*|XA{ca@n!S^A>#Huhrb_tV?C-D-{=Z(Q8jT@cz7^}K<9hyFG;52Q@J}>fikfSpQ7xYW0sD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pc|AgXA?#43Q4q8Y zag23ds;6g*kjE~FL;?kg_-zOK>FK@Jv53;O_8(vE(`gADlLR6caB>lPDAdf2sRB9@ zPXH**GE>INk8e%w)6>)cjEONF&y0?z5o$u3w(2;S&2_oBTuE+;xL#B_p5ECSv1ULA z#gR0mP4RV|bH2oSP+USD!E1_orGPeY=R6ztzb
  • v4`8|LtI@Om7{-`VIsY$Z@F^ z3ZFF~6zHVzxd_{gADRa%^g2HM__e2HVwO^+uB`Ef;kRKVI5U3yANt8zEQ5z|56_yg zzHn%|^>=Z5kLoWOG*o$n&-U~UCYGJ!ze2nq)N=3&RPK1w2zHbl-&g)`LeePCx?p+N T_R_xR +#include +#include + +#include "camera_ability.h" +#include "camera_config.h" +#include "codec_type.h" +#include "frame_config.h" +#include "hal_media.h" +#include "surface.h" + +namespace OHOS { +namespace Media { +enum LoopState { + LOOP_IDLE, + LOOP_READY, + LOOP_LOOPING, + LOOP_STOP, + LOOP_ERROR, +}; + +class DeviceAssistant { +public: + std::thread *thrd_ = nullptr; + LoopState state_ = LOOP_IDLE; + FrameConfig *fc_ = nullptr; + + virtual int32_t + SetFrameConfig(FrameConfig &fc, std::vector &hdls, std::vector &attrs) + { + return -1; + } + virtual int32_t Start() + { + return -1; + } + virtual int32_t Stop() + { + return -1; + } +}; + +class RecordAssistant : public DeviceAssistant { +public: + int32_t SetFrameConfig(FrameConfig &fc, + std::vector &hdls, + std::vector &attrs) override; + int32_t Start() override; + int32_t Stop() override; + + std::vector vencHdls_; + std::vector> vencSurfaces_; + std::vector vencAttr_; + int32_t VideoEncIsExist(const HalVideoProcessorAttr &attr); + static int OnVencBufferAvailble(UINTPTR hComponent, UINTPTR dataIn, OutputInfo *buffer); + static CodecCallback recordCodecCb_; + sptr mProducerSurface; +}; + +class PreviewAssistant : public DeviceAssistant { +public: + int32_t SetFrameConfig(FrameConfig &fc, + std::vector &hdls, + std::vector &attrs) override; + int32_t Start() override; + virtual int32_t Stop() override; +}; + +class CaptureAssistant : public DeviceAssistant { + int32_t SetFrameConfig(FrameConfig &fc, + std::vector &hdls, + std::vector &attrs) override; + int32_t Start() override; + virtual int32_t Stop() override; + CODEC_HANDLETYPE vencHdl_ = nullptr; + Surface *capSurface_ = nullptr; +}; + +class CameraDevice { +public: + CameraDevice(); + virtual ~CameraDevice(); + + int32_t Initialize(CameraAbility &ability); + int32_t UnInitialize(); + int32_t SetCameraConfig(CameraConfig &cc); + + int32_t TriggerLoopingCapture(FrameConfig &fc); + void StopLoopingCapture(); + + int32_t TriggerSingleCapture(FrameConfig &fc); + +private: + CameraConfig *cc_ = nullptr; + std::vector prcessorHdls_; + std::vector prcessorAttrs_; + RecordAssistant recordAssistant_; + PreviewAssistant previewAssistant_; + CaptureAssistant captureAssistant_; +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_DEVICE_H diff --git a/frameworks/innerkitsimpl/camera/include/camera_impl.h b/frameworks/innerkitsimpl/camera/include/camera_impl.h new file mode 100644 index 0000000..ab76aea --- /dev/null +++ b/frameworks/innerkitsimpl/camera/include/camera_impl.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_CAMERA_IMPL_H +#define OHOS_CAMERA_IMPL_H + +#include "camera.h" +#include "camera_ability.h" +#include "camera_device.h" +#include "camera_state_callback.h" + +namespace OHOS { +namespace Media { +class CameraImpl : public Camera { +public: + CameraImpl() = delete; + CameraImpl(std::string &id, const CameraAbility &ability); + virtual ~CameraImpl() = default; + + std::string GetCameraId() override; + const CameraConfig *GetCameraConfig() const override; + FrameConfig *GetFrameConfig(int32_t type) override; + + void Configure(CameraConfig &config) override; + void Release() override; + + int32_t TriggerLoopingCapture(FrameConfig &frameConfig) override; + void StopLoopingCapture() override; + int32_t TriggerSingleCapture(FrameConfig &frameConfig) override; + + const CameraAbility *GetAbility(); + void OnCreate(CameraDevice &device); + void OnCreateFailed(); + void RegistCb(CameraStateCallback &callback, EventHandler &handler); + +private: + std::string id_; + std::list frameConfigs_; + CameraConfig *config_ = nullptr; + CameraStateCallback *stateCb_ = nullptr; + EventHandler *handler_ = nullptr; + const CameraAbility *ability_ = nullptr; + CameraDevice *device_ = nullptr; +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_IMPL_H diff --git a/frameworks/innerkitsimpl/camera/include/camera_manager.h b/frameworks/innerkitsimpl/camera/include/camera_manager.h new file mode 100644 index 0000000..4fc68a3 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/include/camera_manager.h @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_CAMERA_MANAGER_H +#define OHOS_CAMERA_MANAGER_H + +#include +#include + +#include "camera_ability.h" +#include "camera_device_callback.h" +#include "camera_state_callback.h" +#include "event_handler.h" + +namespace OHOS { +namespace Media { +class CameraManager { +public: + virtual ~CameraManager() = default; + static CameraManager *GetInstance(); + + virtual std::list GetCameraIds() = 0; + virtual const CameraAbility *GetCameraAbility(const std::string &cameraId) + { + return nullptr; + } + virtual void RegisterCameraDeviceCallback(CameraDeviceCallback &callback, EventHandler &handler) {} + virtual void UnregisterCameraDeviceCallback(const CameraDeviceCallback &callback) {} + virtual void CreateCamera(const std::string &cameraId, CameraStateCallback &callback, EventHandler &handler) {} + +protected: + CameraManager() {} +}; +} // namespace Media +} // namespace OHOS + +#endif // OHOS_CAMERA_MANAGER_H diff --git a/frameworks/innerkitsimpl/camera/include/camera_service.h b/frameworks/innerkitsimpl/camera/include/camera_service.h new file mode 100644 index 0000000..e2a5e40 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/include/camera_service.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_CAMERA_SERVICE_H +#define OHOS_CAMERA_SERVICE_H + +#include "camera_device.h" +#include "camera_service_callback.h" + +namespace OHOS { +namespace Media { +class CameraService { +public: + virtual ~CameraService(); + static CameraService *GetInstance(); + + void Initialize(CameraServiceCallback &callback); + const CameraAbility *GetCameraAbility(std::string &cameraId); + void CreateCamera(std::string cameraId); + +private: + CameraService(); + int32_t InitCameraDevices(); + CameraDevice *device_ = nullptr; + CameraAbility *ability_ = nullptr; + CameraServiceCallback *cameraServiceCb_ = nullptr; +}; +} // namespace Media +} // namespace OHOS + +#endif // OHOS_CAMERA_SERVICE_H diff --git a/frameworks/innerkitsimpl/camera/include/camera_service_callback.h b/frameworks/innerkitsimpl/camera/include/camera_service_callback.h new file mode 100644 index 0000000..7ae40d1 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/include/camera_service_callback.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_CAMERA_SERVICE_CALLBACK_H +#define OHOS_CAMERA_SERVICE_CALLBACK_H + +#include +#include + +#include "camera_device.h" + +namespace OHOS { +namespace Media { +class CameraServiceCallback { +public: + CameraServiceCallback() = default; + virtual ~CameraServiceCallback() = default; + + enum CameraStauts { + CAMERA_STATUS_AVAIL, + CAMERA_STATUS_UNAVAIL, + CAMERA_STATUS_CREATED, + CAMERA_STATUS_CREATE_FAILED + }; + virtual void OnCameraServiceInitialized(const std::list &availCameraIdList) {} + virtual void OnCameraStatusChange(const std::string &cameraId, CameraStauts status, const CameraDevice &device) {} +}; +} // namespace Media +} // namespace OHOS + +#endif // OHOS_CAMERA_SERVICE_CALLBACK_H diff --git a/frameworks/innerkitsimpl/camera/include/hal_display.h b/frameworks/innerkitsimpl/camera/include/hal_display.h new file mode 100644 index 0000000..21572e9 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/include/hal_display.h @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef COMMON_PLATFORM_VO_H +#define COMMON_PLATFORM_VO_H + +#include + +#ifdef __cplusplus +#if __cplusplus +extern "C" { +#endif +#endif /* End of #ifdef __cplusplus */ + +typedef int32_t HalVideoOutputHdl; + +typedef struct { + int32_t regionPositionX; + int32_t regionPositionY; + int32_t regionWidth; + int32_t regionHeight; + uint32_t priority; +} HalVideoOutputAttr; + +int32_t HalCreateVideoOutput(HalVideoOutputHdl *handle, HalVideoOutputAttr attr); + +int32_t HalConfigVideoOutput(HalVideoOutputHdl handle, HalVideoOutputAttr attr); + +int32_t HalGetVideoOutputConfig(HalVideoOutputHdl handle, HalVideoOutputAttr *attr); + +int32_t HalDestroyVideoOutput(HalVideoOutputHdl handle); + +int32_t HalStartVideoOutput(HalVideoOutputHdl handle); + +int32_t HalStopVideoOutput(HalVideoOutputHdl handle); + +int32_t HalWriteVo(HalVideoOutputHdl handle, const void *buffer); + +int32_t HalPlayerVoInit(HalVideoOutputHdl *handle); + +int32_t HalPlayerSysInit(void); + +void HalPlayerVoDeinit(HalVideoOutputHdl handle); + +int32_t HalCreateCameraVideoOutput(uint32_t deviceId, HalVideoOutputAttr *attr); + +int32_t HalDestroyCameraVideoOutput(); + +#ifdef __cplusplus +#if __cplusplus +} +#endif +#endif /* End of #ifdef __cplusplus */ + +#endif // COMMON_PLATFORM_VO_H \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/include/hal_media.h b/frameworks/innerkitsimpl/camera/include/hal_media.h new file mode 100644 index 0000000..9de1ccc --- /dev/null +++ b/frameworks/innerkitsimpl/camera/include/hal_media.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_CAMERA_HAL_H +#define OHOS_CAMERA_HAL_H + +#include "stdbool.h" +#include "stdint.h" + +#ifdef __cplusplus +#if __cplusplus +extern "C" { +#endif +#endif /* End of #ifdef __cplusplus */ + +#define HAL_MEDIA_OK 0 +#define HAL_MEDIA_ERR 1 + +typedef int32_t HalProcessorHdl; +#define HAL_INVALID_PROCESSOR (-1) +#define HAL_MAX_VPSS_NUM 10 +/* necessary and significant attr */ +typedef struct { + uint32_t width; + uint32_t height; + uint32_t fps; +} HalVideoProcessorAttr; + +HalProcessorHdl HalCreateVideoProcessor(HalVideoProcessorAttr *attr); +void HalCameraGetProcessorAttr(HalProcessorHdl hdls[HAL_MAX_VPSS_NUM], HalVideoProcessorAttr attrs[HAL_MAX_VPSS_NUM], + int32_t *size); +uint32_t HalGetProcessorDeviceId(HalProcessorHdl hdl); +void HalDestroyVideoProcessor(); + +/* camera */ +int32_t HalMediaInitialize(); +int32_t HalCameraInitialize(); +void HalCameraUnInitialize(); +#ifdef __cplusplus +#if __cplusplus +} +#endif +#endif /* End of #ifdef __cplusplus */ +#endif // OHOS_CAMERA_HAL_H \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/src/camera_ability.cpp b/frameworks/innerkitsimpl/camera/src/camera_ability.cpp new file mode 100644 index 0000000..52492b9 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_ability.cpp @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_ability.h" + +#include "media_log.h" + +using namespace std; +namespace OHOS { +namespace Media { +CameraAbility::CameraAbility() {} +CameraAbility::~CameraAbility() {} + +list CameraAbility::GetSupportedSizes() const +{ + if (supportProperties_.find(PARAM_KEY_SIZE) != supportProperties_.end()) { + auto target = sizeMap_.find(PARAM_KEY_SIZE); + return target->second; + } + list emptyList; + return emptyList; +} + +list CameraAbility::GetSupportParameterRange(uint32_t key) const +{ + switch (key) { + case PARAM_KEY_SIZE: { + auto target = sizeMap_.find(PARAM_KEY_SIZE); + return target->second; + } + default: { + list emptyList; + return emptyList; + } + } +} + +void CameraAbility::SetSupportParameterRange(uint32_t key, list &rangeList) +{ + switch (key) { + case PARAM_KEY_SIZE: + supportProperties_.emplace(key); + sizeMap_[key] = rangeList; + break; + default: + break; + } +} + +bool CameraAbility::IsParameterSupport(uint32_t key) const +{ + if (key != PARAM_KEY_SIZE) { + return false; + } + return true; +} +} // namespace Media +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/src/camera_config.cpp b/frameworks/innerkitsimpl/camera/src/camera_config.cpp new file mode 100644 index 0000000..4b5a80a --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_config.cpp @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_CAMERA_CONFIG_IMPL_H +#define OHOS_CAMERA_CONFIG_IMPL_H + +#include "camera_config.h" +#include "media_log.h" + +namespace OHOS { +namespace Media { +class CameraConfigImpl : public CameraConfig { +public: + CameraConfigImpl() = default; + virtual ~CameraConfigImpl() = default; + + void SetFrameStateCallback(const FrameStateCallback &callback, const EventHandler &handler) override + { + if (inUse_) { + MEDIA_ERR_LOG("This config is in use, do not support config modify."); + } + + callback_ = (FrameStateCallback *) &callback; + handler_ = (EventHandler *) &handler; + inUse_ = true; + } + + EventHandler *GetEventHandler() const override + { + EventHandler *evtHandler = handler_; + return evtHandler; + } + + FrameStateCallback *GetFrameStateCb() const override + { + FrameStateCallback *fsCb = callback_; + return fsCb; + } + +private: + FrameStateCallback *callback_ = nullptr; + EventHandler *handler_ = nullptr; + bool inUse_ = false; +}; + +CameraConfig *CameraConfig::CreateCameraConfig() +{ + return new (std::nothrow) CameraConfigImpl(); +} +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_CONFIG_IMPL_H \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/src/camera_device.cpp b/frameworks/innerkitsimpl/camera/src/camera_device.cpp new file mode 100644 index 0000000..fd73db1 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_device.cpp @@ -0,0 +1,670 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_device.h" + +#include "codec_interface.h" +#include "hal_display.h" +#include "media_log.h" +#include "meta_data.h" +#include "securec.h" + +#include +#include + +using namespace OHOS; +using namespace OHOS::Media; +using namespace std; + +namespace OHOS { +namespace Media { +inline PicSize Convert2CodecSize(int32_t width, int32_t height) +{ + struct SizeMap { + PicSize res_; + int32_t width_; + int32_t height_; + }; + static SizeMap sizeMap[] = { + {Resolution_CIF, 352, 288}, {Resolution_360P, 640, 360}, + {Resolution_D1_PAL, 720, 576}, {Resolution_D1_NTSC, 720, 480}, + {Resolution_720P, 1280, 720}, {Resolution_1080P, 1920, 1080} + }; + for (uint32_t i = 0; i < sizeof(sizeMap) / sizeof(SizeMap); i++) { + if (sizeMap[i].width_ == width && sizeMap[i].height_ == height) { + return sizeMap[i].res_; + } + } + return Resolution_INVALID; +} + +static int32_t SetVencSource(CODEC_HANDLETYPE codecHdl, uint32_t deviceId) +{ + Param param = {.key = KEY_DEVICE_ID, .val = (void *)&deviceId, .size = sizeof(uint32_t)}; + int32_t ret = CodecSetParameter(codecHdl, ¶m, 1); + if (ret != 0) { + MEDIA_ERR_LOG("Set enc source failed.(ret=%d)", ret); + return ret; + } + return MEDIA_OK; +} + +static int32_t CreateCodecAndSet(const Param *param, uint32_t paramIndex, + uint32_t srcDev, const CODEC_HANDLETYPE &codecHdlRef) +{ + const char *name = "codec.video.hardware.encoder"; + CODEC_HANDLETYPE *codecHdl = (CODEC_HANDLETYPE *)&codecHdlRef; + + int32_t ret = CodecCreate(name, param, paramIndex, codecHdl); + if (ret != 0) { + MEDIA_ERR_LOG("Create video encoder failed."); + return HAL_MEDIA_ERR; + } + + ret = SetVencSource(*codecHdl, srcDev); + if (ret != 0) { + CodecDestroy(codecHdl); + return HAL_MEDIA_ERR; + } + + return HAL_MEDIA_OK; +} + +static int32_t CameraCreateVideoEnc(const FrameConfig &fc, + const HalVideoProcessorAttr &attr, uint32_t srcDev, + const CODEC_HANDLETYPE &codecHdl) +{ + const uint32_t maxParamNum = 10; + uint32_t paramIndex = 0; + Param param[maxParamNum]; + + CodecType domainKind = VIDEO_ENCODER; + param[paramIndex].key = KEY_CODEC_TYPE; + param[paramIndex].val = &domainKind; + param[paramIndex++].size = sizeof(CodecType); + + AvCodecMime codecMime = MEDIA_MIMETYPE_VIDEO_HEVC; + param[paramIndex].key = KEY_MIMETYPE; + param[paramIndex].val = &codecMime; + param[paramIndex++].size = sizeof(AvCodecMime); + + VenCodeRcMode rcMode = VENCOD_RC_CBR; + param[paramIndex].key = KEY_VIDEO_RC_MODE; + param[paramIndex].val = &rcMode; + param[paramIndex++].size = sizeof(VenCodeRcMode); + + VenCodeGopMode gopMode = VENCOD_GOPMODE_NORMALP; + param[paramIndex].key = KEY_VIDEO_GOP_MODE; + param[paramIndex].val = &gopMode; + param[paramIndex++].size = sizeof(VenCodeGopMode); + + Profile profile = HEVC_MAIN_PROFILE; + param[paramIndex].key = KEY_VIDEO_PROFILE; + param[paramIndex].val = &profile; + param[paramIndex++].size = sizeof(Profile); + + PicSize picSize = Convert2CodecSize(attr.width, attr.height); + MEDIA_DEBUG_LOG("picSize=%d", picSize); + param[paramIndex].key = KEY_VIDEO_PIC_SIZE; + param[paramIndex].val = &picSize; + param[paramIndex++].size = sizeof(PicSize); + + uint32_t frameRate = attr.fps; + MEDIA_DEBUG_LOG("frameRate=%u", frameRate); + param[paramIndex].key = KEY_VIDEO_FRAME_RATE; + param[paramIndex].val = &frameRate; + param[paramIndex++].size = sizeof(uint32_t); + + return CreateCodecAndSet(param, paramIndex, srcDev, codecHdl); +} + +static int32_t CameraCreateJpegEnc(const FrameConfig &fc, uint32_t srcDev, + const HalVideoProcessorAttr &attr, const CODEC_HANDLETYPE &codecHdlRef) +{ + CODEC_HANDLETYPE *codecHdl = (CODEC_HANDLETYPE *)&codecHdlRef; + const char *videoEncName = "codec.jpeg.hardware.encoder"; + const uint32_t maxParamNum = 5; + Param param[maxParamNum]; + uint32_t paramIndex = 0; + + CodecType domainKind = VIDEO_ENCODER; + param[paramIndex].key = KEY_CODEC_TYPE; + param[paramIndex].val = &domainKind; + param[paramIndex].size = sizeof(CodecType); + paramIndex++; + + AvCodecMime codecMime = MEDIA_MIMETYPE_IMAGE_JPEG; + param[paramIndex].key = KEY_MIMETYPE; + param[paramIndex].val = &codecMime; + param[paramIndex].size = sizeof(AvCodecMime); + paramIndex++; + + PicSize picSize = Convert2CodecSize(attr.width, attr.height); + param[paramIndex].key = KEY_VIDEO_PIC_SIZE; + param[paramIndex].val = &picSize; + param[paramIndex].size = sizeof(PicSize); + paramIndex++; + + int32_t ret = CodecCreate(videoEncName, param, paramIndex, codecHdl); + if (ret != 0) { + MEDIA_ERR_LOG("CodecCreate failed.(ret=%d)", ret); + return HAL_MEDIA_ERR; + } + + int32_t qfactor = -1; + ((FrameConfig &) fc).GetParameter(PARAM_KEY_IMAGE_ENCODE_QFACTOR, qfactor); + if (qfactor != -1) { + MEDIA_DEBUG_LOG("qfactor=%d", qfactor); + Param jpegParam = { + .key = KEY_IMAGE_Q_FACTOR, + .val = &qfactor, + .size = sizeof(qfactor) + }; + ret = CodecSetParameter(*codecHdl, &jpegParam, 1); + if (ret != 0) { + MEDIA_ERR_LOG("CodecSetParameter set jpeg qfactor failed.(ret=%u)", ret); + } + } + + ret = SetVencSource(*codecHdl, srcDev); + if (ret != 0) { + MEDIA_ERR_LOG("Set video encoder source failed."); + CodecDestroy(*codecHdl); + return HAL_MEDIA_ERR; + } + + return HAL_MEDIA_OK; +} + +static int32_t CopyCodecOutput(char *dstBuf, uint32_t *size, const OutputInfo &buffer) +{ + int32_t bufferSize = 0; + for (uint32_t i = 0; i < buffer.bufferCnt; i++) { + uint32_t packSize = buffer.buffers[i].length - buffer.buffers[i].offset; + errno_t ret = memcpy_s(dstBuf, *size, buffer.buffers[i].addr + buffer.buffers[i].offset, packSize); + if (ret != EOK) { + return HAL_MEDIA_ERR; + } + bufferSize = bufferSize + packSize; + *size -= packSize; + dstBuf += packSize; + } + + return bufferSize; +} + +static int32_t FindAvailProcessorIdx(const Surface &surface, + const vector &attrs) +{ + uint32_t surfaceWidth = stoi(((Surface &) surface).GetUserData("surface_width")); + uint32_t surfaceHeight = stoi(((Surface &) surface).GetUserData("surface_height")); + for (uint32_t i = 0; i < attrs.size(); i++) { + if (attrs[i].width == surfaceWidth && attrs[i].height == surfaceHeight) { + return i; + } + } + return -1; +} + +static void GetSurfaceBufferConfig(const Surface &surface, BufferRequestConfig &config) +{ + config.width = stoi(((Surface &) surface).GetUserData("surface_width")); + config.height = stoi(((Surface &) surface).GetUserData("surface_height")); + config.strideAlignment = stoi(((Surface &) surface).GetUserData("surface_stride_Alignment")); + config.format = stoi(((Surface &) surface).GetUserData("surface_format")); + config.usage = stoi(((Surface &) surface).GetUserData("surface_usage")); + config.timeout = stoi(((Surface &) surface).GetUserData("surface_timeout")); +} + +int RecordAssistant::OnVencBufferAvailble(UINTPTR hComponent, UINTPTR dataIn, OutputInfo *buffer) +{ + const int32_t KEY_IS_SYNC_FRAME = 1; // "is-sync-frame" + const int32_t KEY_TIME_US = 2; // "timeUs" + CODEC_HANDLETYPE hdl = reinterpret_cast(hComponent); + RecordAssistant *assistant = reinterpret_cast(dataIn); + list *surfaceList = nullptr; + + if (buffer == nullptr) { + MEDIA_ERR_LOG("Codec buffer is null"); + return MEDIA_ERR; + } + + for (uint32_t idx = 0; idx < assistant->vencHdls_.size(); idx++) { + if (assistant->vencHdls_[idx] == hdl) { + surfaceList = &(assistant->vencSurfaces_[idx]); + break; + } + } + if (surfaceList == nullptr || surfaceList->empty()) { + MEDIA_ERR_LOG("Encoder handle is illegal."); + return -1; + } + int32_t ret = SURFACE_ERROR_OK; + for (auto &surface : *surfaceList) { + if (surface == nullptr) { + continue; + } + sptr surfaceBuffer; + int32_t releaseFence; + BufferRequestConfig config; + GetSurfaceBufferConfig(*surface, config); + SurfaceError result = assistant->mProducerSurface->RequestBuffer(surfaceBuffer, releaseFence, config); + if (result != SURFACE_ERROR_OK) { + MEDIA_ERR_LOG("No available buffer in surface."); + ret = SURFACE_ERROR_NO_BUFFER; + break; + } + + uint32_t size = surfaceBuffer->GetSize(); + void *buf = surfaceBuffer->GetVirAddr(); + if (buf == nullptr) { + MEDIA_ERR_LOG("Invalid buffer address."); + ret = SURFACE_ERROR_NULLPTR; + break; + } + int32_t copiedSize = CopyCodecOutput((char *)buf, &size, *buffer); + if (copiedSize == HAL_MEDIA_ERR) { + MEDIA_ERR_LOG("No available buffer in surface."); + assistant->mProducerSurface->CancelBuffer(surfaceBuffer); + ret = SURFACE_ERROR_NOMEM; + break; + } + surface->SetUserData("surface_buffer_size", to_string(copiedSize)); + surfaceBuffer->SetInt32(KEY_IS_SYNC_FRAME, + (((buffer->flag & STREAM_FLAG_KEYFRAME) == 0) ? 0 : 1)); + surfaceBuffer->SetInt64(KEY_TIME_US, buffer->timeStamp); + BufferFlushConfig flushConfig; + if (assistant->mProducerSurface->FlushBuffer(surfaceBuffer, -1, flushConfig) != 0) { + MEDIA_ERR_LOG("Flush surface failed."); + assistant->mProducerSurface->CancelBuffer(surfaceBuffer); + ret = SURFACE_ERROR_ERROR; + break; + } + } + + if ((ret = CodecQueueOutput(hdl, buffer, 0, -1)) != 0) { + MEDIA_ERR_LOG("Codec queue output failed."); + } + + return ret; +} + +CodecCallback RecordAssistant::recordCodecCb_ = {nullptr, nullptr, RecordAssistant::OnVencBufferAvailble}; + +int32_t RecordAssistant::SetFrameConfig(FrameConfig &fc, + vector &hdls, + vector &attrs) +{ + fc_ = &fc; + + auto surfaceList = fc.GetSurfaces(); + if (surfaceList.size() != 1) { + MEDIA_ERR_LOG("Only support one surface in frame config now."); + return MEDIA_ERR; + } + for (auto &surface : surfaceList) { + CODEC_HANDLETYPE codecHdl = nullptr; + int32_t ProcessorIdx = FindAvailProcessorIdx(*surface, attrs); + sptr producer = surface->GetProducer(); + mProducerSurface = Surface::CreateSurfaceAsProducer(producer); + if (ProcessorIdx < 0) { + MEDIA_ERR_LOG("No suitble procesor for recording."); + return MEDIA_ERR; + } + uint32_t deviceId = HalGetProcessorDeviceId(hdls[ProcessorIdx]); + int32_t encIdx = VideoEncIsExist(attrs[deviceId]); + if (encIdx >= 0) { + vencSurfaces_[encIdx].emplace_back(surface); + continue; + } + + int32_t ret = CameraCreateVideoEnc(fc, attrs[ProcessorIdx], deviceId, codecHdl); + if (ret != MEDIA_OK) { + MEDIA_ERR_LOG("Cannot create suitble video encoder."); + return MEDIA_ERR; + } + + ret = CodecSetCallback(codecHdl, &recordCodecCb_, reinterpret_cast(this)); + if (ret != 0) { + MEDIA_ERR_LOG("Set codec callback failed.(ret=%d)", ret); + CodecDestroy(codecHdl); + return MEDIA_ERR; + } + vencHdls_.emplace_back(codecHdl); + list conList({surface}); + vencSurfaces_.emplace_back(conList); + vencAttr_.emplace_back(&attrs[deviceId]); + } + state_ = LOOP_READY; + return MEDIA_OK; +} + +int32_t RecordAssistant::Start() +{ + if (state_ != LOOP_READY) { + return MEDIA_ERR; + } + + int32_t ret = HAL_MEDIA_OK; + int32_t i; + for (i = 0; static_cast(i) < vencHdls_.size(); i++) { + ret = CodecStart(vencHdls_[i]); + if (ret != HAL_MEDIA_OK) { + MEDIA_ERR_LOG("Video encoder start failed."); + ret = MEDIA_ERR; + break; + } + } + if (ret == MEDIA_ERR) { + /* rollback */ + for (; i >= 0; i--) { + CodecStop(vencHdls_[i]); + } + return MEDIA_ERR; + } + state_ = LOOP_LOOPING; + + MEDIA_DEBUG_LOG("Start camera recording succeed."); + return MEDIA_OK; +} + +int32_t RecordAssistant::Stop() +{ + if (state_ != LOOP_LOOPING) { + return MEDIA_ERR; + } + + for (uint32_t i = 0; i < vencHdls_.size(); i++) { + CodecStop(vencHdls_[i]); + CodecDestroy(vencHdls_[i]); + } + vencHdls_.clear(); + vencAttr_.clear(); + vencSurfaces_.clear(); + + state_ = LOOP_STOP; + return MEDIA_OK; +} + +int32_t RecordAssistant::VideoEncIsExist(const HalVideoProcessorAttr &attr) +{ + for (uint32_t i = 0; i < vencAttr_.size(); i++) { + if (vencAttr_[i] == &attr) { + return i; + } + } + return -1; +} + +static void GetSurfaceRect(const Surface &surface, HalVideoOutputAttr &attr) +{ + attr.regionPositionX = stoi(((Surface &) surface).GetUserData("region_position_x")); + attr.regionPositionY = stoi(((Surface &) surface).GetUserData("region_position_y")); + attr.regionWidth = stoi(((Surface &) surface).GetUserData("region_width")); + attr.regionHeight = stoi(((Surface &) surface).GetUserData("region_height")); +} + +int32_t PreviewAssistant::SetFrameConfig(FrameConfig &fc, + vector &hdls, + vector &attrs) +{ + fc_ = &fc; + + auto surfaceList = fc.GetSurfaces(); + if (surfaceList.size() != 1) { + MEDIA_ERR_LOG("Only support one surface in frame config now."); + return MEDIA_ERR; + } + auto surface = surfaceList.front(); + int32_t ProcessorIdx = FindAvailProcessorIdx(*surface, attrs); + if (ProcessorIdx < 0) { + MEDIA_ERR_LOG("No suitble procesor for preview."); + return MEDIA_ERR; + } + + HalVideoOutputAttr attr; + GetSurfaceRect(*surface, attr); + + return MEDIA_OK; +} + +int32_t PreviewAssistant::Start() +{ + // enable vo + return MEDIA_OK; +} + +int32_t PreviewAssistant::Stop() +{ + return MEDIA_OK; +} + +int32_t CaptureAssistant::SetFrameConfig(FrameConfig &fc, + vector &hdls, + vector &attrs) +{ + auto surfaceList = fc.GetSurfaces(); + if (surfaceList.size() != 1) { + MEDIA_ERR_LOG("Only support one surface in frame config now."); + return MEDIA_ERR; + } + if (surfaceList.empty()) { + MEDIA_ERR_LOG("Frame config with empty surface list."); + return MEDIA_ERR; + } + if (surfaceList.size() > 1) { + MEDIA_WARNING_LOG("Capture only fullfill the first surface in frame config."); + } + Surface *surface = surfaceList.front(); + if (surface == nullptr) { + MEDIA_ERR_LOG("Surface is null."); + return MEDIA_ERR; + } + int32_t idx = FindAvailProcessorIdx(*surface, attrs); + if (idx < 0) { + MEDIA_ERR_LOG("No suitble procesor for venc."); + return MEDIA_ERR; + } + uint32_t deviceId = HalGetProcessorDeviceId(hdls[idx]); + int32_t ret = CameraCreateJpegEnc(fc, deviceId, attrs[idx], vencHdl_); + if (ret != HAL_MEDIA_OK) { + MEDIA_ERR_LOG("Create capture venc failed."); + return MEDIA_ERR; + } + + capSurface_ = surface; + + state_ = LOOP_READY; + return MEDIA_OK; +} + +/* Block method, waiting for capture completed */ +int32_t CaptureAssistant::Start() +{ + state_ = LOOP_LOOPING; + int32_t ret = CodecStart(vencHdl_); + if (ret != 0) { + MEDIA_ERR_LOG("Start capture encoder failed.(ret=%d)", ret); + return MEDIA_ERR; + } + MEDIA_DEBUG_LOG("surface = %p", capSurface_); + + sptr producer = capSurface_->GetProducer(); + sptr producerSurface = Surface::CreateSurfaceAsProducer(producer); + sptr surfaceBuffer; + int32_t releaseFence; + BufferRequestConfig config; + GetSurfaceBufferConfig(*capSurface_, config); + SurfaceError result = producerSurface->RequestBuffer(surfaceBuffer, releaseFence, config); + if (result != SURFACE_ERROR_OK) { + MEDIA_ERR_LOG("No available buffer in surface."); + return -1; + } + + OutputInfo outInfo; + ret = CodecDequeueOutput(vencHdl_, 0, nullptr, &outInfo); + if (ret != 0) { + producerSurface->CancelBuffer(surfaceBuffer); + MEDIA_ERR_LOG("Dequeue capture frame failed.(ret=%d)", ret); + return MEDIA_ERR; + } + + uint32_t size = surfaceBuffer->GetSize(); + void *buf = surfaceBuffer->GetVirAddr(); + if (buf == nullptr) { + MEDIA_ERR_LOG("Invalid buffer address."); + return -1; + } + int copiedSize = CopyCodecOutput((char *)buf, &size, outInfo); + if (copiedSize == HAL_MEDIA_ERR) { + MEDIA_ERR_LOG("No available buffer in producerSurface."); + producerSurface->CancelBuffer(surfaceBuffer); + return -1; + } + + capSurface_->SetUserData("surface_buffer_size", to_string(copiedSize)); + BufferFlushConfig flushConfig; + if (producerSurface->FlushBuffer(surfaceBuffer, -1, flushConfig) != 0) { + MEDIA_ERR_LOG("Flush surface buffer failed."); + producerSurface->CancelBuffer(surfaceBuffer); + return -1; + } + + CodecQueueOutput(vencHdl_, &outInfo, 0, -1); // 0:no timeout -1:no fd + CodecStop(vencHdl_); + CodecDestroy(vencHdl_); + + state_ = LOOP_STOP; + + return MEDIA_OK; +} + +int32_t CaptureAssistant::Stop() +{ + MEDIA_DEBUG_LOG("No support method."); + return MEDIA_OK; +} + +CameraDevice::CameraDevice() {} + +CameraDevice::~CameraDevice() {} + +int32_t CameraDevice::Initialize(CameraAbility &ability) +{ + int32_t ret = HalMediaInitialize(); + if (ret != HAL_MEDIA_OK) { + MEDIA_ERR_LOG("Media Init failed.(ret=%d)", ret); + return MEDIA_ERR; + } + /* Need to be Refactored when delete config file */ + ret = HalCreateVideoProcessor(nullptr); + if (ret != HAL_MEDIA_OK) { + MEDIA_ERR_LOG("Init camera device failed.(ret=%d)", ret); + return MEDIA_ERR; + } + HalVideoProcessorAttr attrs[HAL_MAX_VPSS_NUM]; + HalProcessorHdl hdls[HAL_MAX_VPSS_NUM]; + int32_t size; + list range; + HalCameraGetProcessorAttr(hdls, attrs, &size); + for (int i = 0; i < size; i++) { + prcessorAttrs_.emplace_back(attrs[i]); + prcessorHdls_.emplace_back(hdls[i]); + CameraPicSize tmpSize = {.width = attrs[i].width, .height = attrs[i].height}; + range.emplace_back(tmpSize); + } + ability.SetParameterRange(PARAM_KEY_SIZE, range); + + ret = CodecInit(); + if (ret != 0) { + MEDIA_ERR_LOG("Codec module init failed.(ret=%d)", ret); + return MEDIA_ERR; + } + MEDIA_DEBUG_LOG("Codec module init succeed."); + + captureAssistant_.state_ = LOOP_READY; + previewAssistant_.state_ = LOOP_READY; + recordAssistant_.state_ = LOOP_READY; + return MEDIA_OK; +} + +int32_t CameraDevice::UnInitialize() +{ + HalDestroyVideoProcessor(); + return MEDIA_OK; +} + +int32_t CameraDevice::TriggerLoopingCapture(FrameConfig &fc) +{ + MEDIA_DEBUG_LOG("Camera device start looping capture."); + + DeviceAssistant *assistant = nullptr; + int fcType = fc.GetFrameConfigType(); + switch (fcType) { + case FRAME_CONFIG_RECORD: + assistant = &recordAssistant_; + break; + case FRAME_CONFIG_PREVIEW: + assistant = &previewAssistant_; + break; + case FRAME_CONFIG_CAPTURE: + assistant = &captureAssistant_; + break; + default: + break; + } + if (assistant == nullptr) { + MEDIA_ERR_LOG("Invalid frame config type.(type=%d)", fcType); + return MEDIA_ERR; + } + if ((assistant->state_ == LOOP_IDLE) || (assistant->state_ == LOOP_LOOPING) || + (assistant->state_ == LOOP_ERROR)) { + MEDIA_ERR_LOG("Device state is %d, cannot start looping capture.", assistant->state_); + return MEDIA_ERR; + } + + int ret = assistant->SetFrameConfig(fc, prcessorHdls_, prcessorAttrs_); + if (ret != MEDIA_OK) { + MEDIA_ERR_LOG("Check and set frame config failed.(ret=%d)", ret); + return MEDIA_ERR; + } + + ret = assistant->Start(); + if (ret != MEDIA_OK) { + MEDIA_ERR_LOG("Start looping capture failed.(ret=%d)", ret); + return MEDIA_ERR; + } + + return MEDIA_OK; +} + +void CameraDevice::StopLoopingCapture() +{ + previewAssistant_.Stop(); + recordAssistant_.Stop(); +} + +int32_t CameraDevice::TriggerSingleCapture(FrameConfig &fc) +{ + return TriggerLoopingCapture(fc); +} + +int32_t CameraDevice::SetCameraConfig(CameraConfig &config) +{ + cc_ = &config; + return MEDIA_OK; +} +} // namespace Media +} // namespace OHOS diff --git a/frameworks/innerkitsimpl/camera/src/camera_impl.cpp b/frameworks/innerkitsimpl/camera/src/camera_impl.cpp new file mode 100644 index 0000000..fa9d3dc --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_impl.cpp @@ -0,0 +1,183 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_impl.h" +#include "camera_service.h" +#include "media_log.h" + +using namespace std; + +namespace OHOS { +namespace Media { +#define FREE_PTR(ptr) \ + delete ptr; \ + ptr = nullptr; \ + +CameraImpl::CameraImpl(std::string &id, const CameraAbility &ability) +{ + id_ = id; + ability_ = &ability; +} + +string CameraImpl::GetCameraId() +{ + return id_; +} + +const CameraConfig *CameraImpl::GetCameraConfig() const +{ + return config_; +} + +FrameConfig *CameraImpl::GetFrameConfig(int32_t type) +{ + for (auto i : frameConfigs_) { + if (i->GetFrameConfigType() == type) { + return i; + } + } + return nullptr; +} + +void CameraImpl::Configure(CameraConfig &config) +{ + if (config_ != nullptr) { + return; + } + + config_ = &config; + if (config.GetFrameStateCb() == nullptr || config.GetEventHandler() == nullptr) { + FREE_PTR(config_); + return; + } + + int32_t ret = device_->SetCameraConfig(config); + if (ret != MEDIA_OK) { + FREE_PTR(config_); + handler_->Post([this, ret] { this->stateCb_->OnConfigureFailed(this->GetCameraId(), ret); }); + return; + } + handler_->Post([this] { this->stateCb_->OnConfigured(*this); }); +} + +void CameraImpl::Release() +{ + if (config_ != nullptr) { + delete config_; + config_ = nullptr; + } + handler_->Post([this] { this->stateCb_->OnReleased(*this); }); +} + +int32_t CameraImpl::TriggerLoopingCapture(FrameConfig &fc) +{ + if (config_ == nullptr) { + MEDIA_ERR_LOG("Cannot find available configuration, configure the camera first."); + return MEDIA_INVALID_PARAM; + } + FrameConfig *curFc = GetFrameConfig(fc.GetFrameConfigType()); + if (curFc != nullptr) { + MEDIA_ERR_LOG("Frame config of the input type is already existed."); + return MEDIA_OK; + } + int32_t ret = device_->TriggerLoopingCapture(dynamic_cast(fc)); + if (ret != MEDIA_OK) { + MEDIA_ERR_LOG("Camera device start looping capture failed.(ret=%d)", ret); + return MEDIA_ERR; + } + frameConfigs_.emplace_back(&fc); + + return MEDIA_OK; +} + +void CameraImpl::StopLoopingCapture() +{ + device_->StopLoopingCapture(); + FrameStateCallback *fsc = config_->GetFrameStateCb(); + if (fsc == nullptr) { + return; + } + EventHandler *eventhdl = config_->GetEventHandler(); + if (eventhdl == nullptr) { + return; + } + + for (auto i : frameConfigs_) { + eventhdl->Post([fsc, this, i] { + FrameResult frameResult; + fsc->OnFrameFinished(*this, *i, frameResult); + }); + } + frameConfigs_.clear(); +} + +int32_t CameraImpl::TriggerSingleCapture(FrameConfig &fc) +{ + if (config_ == nullptr) { + MEDIA_ERR_LOG("Cannot find available configuration, configure the camera first."); + return MEDIA_INVALID_PARAM; + } + int32_t ret = device_->TriggerSingleCapture(dynamic_cast(fc)); + FrameStateCallback *fsc = config_->GetFrameStateCb(); + if (fsc == nullptr) { + return MEDIA_ERR; + } + EventHandler *eventhdl = config_->GetEventHandler(); + if (eventhdl == nullptr) { + return MEDIA_ERR; + } + if (ret != MEDIA_OK) { + eventhdl->Post([fsc, this, &fc] { + FrameResult frameResult; + fsc->OnFrameError(*this, fc, -1, frameResult); + }); + return MEDIA_ERR; + } + eventhdl->Post([fsc, this, &fc] { + FrameResult frameResult; + fsc->OnFrameFinished(*this, fc, frameResult); + }); + return MEDIA_OK; +} + +const CameraAbility *CameraImpl::GetAbility() +{ + return ability_; +} + +void CameraImpl::OnCreate(CameraDevice &device) +{ + device_ = &device; + if (stateCb_ == nullptr || handler_ == nullptr) { + return; + } + handler_->Post([this] { this->stateCb_->OnCreated(*this); }); +} + +void CameraImpl::OnCreateFailed() +{ + if (stateCb_ == nullptr || handler_ == nullptr) { + return; + } + handler_->Post([this] { this->stateCb_->OnCreateFailed(id_, MEDIA_ERR); }); +} + +void CameraImpl::RegistCb(CameraStateCallback &callback, EventHandler &handler) +{ + handler_ = &handler; + stateCb_ = &callback; +} +} // namespace Media +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/src/camera_kit.cpp b/frameworks/innerkitsimpl/camera/src/camera_kit.cpp new file mode 100644 index 0000000..7581038 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_kit.cpp @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_kit.h" +#include "camera_manager.h" + +using namespace std; +namespace OHOS { +namespace Media { +CameraManager *g_cameraManager = nullptr; +CameraKit::CameraKit() +{ + g_cameraManager = CameraManager::GetInstance(); +} + +CameraKit::~CameraKit() {} + +CameraKit *CameraKit::GetInstance() +{ + static CameraKit kit; + return &kit; +} + +list CameraKit::GetCameraIds() +{ + return g_cameraManager->GetCameraIds(); +} + +const CameraAbility *CameraKit::GetCameraAbility(const string cameraId) +{ + return g_cameraManager->GetCameraAbility(cameraId); +} + +void CameraKit::RegisterCameraDeviceCallback(CameraDeviceCallback &callback, EventHandler &handler) +{ + g_cameraManager->RegisterCameraDeviceCallback(callback, handler); +} + +void CameraKit::UnregisterCameraDeviceCallback(CameraDeviceCallback &callback) +{ + g_cameraManager->UnregisterCameraDeviceCallback(callback); +} + +void CameraKit::CreateCamera(const string &cameraId, CameraStateCallback &callback, EventHandler &handler) +{ + g_cameraManager->CreateCamera(cameraId, callback, handler); +} +} // namespace Media +} // namespace OHOS diff --git a/frameworks/innerkitsimpl/camera/src/camera_manager.cpp b/frameworks/innerkitsimpl/camera/src/camera_manager.cpp new file mode 100644 index 0000000..f365405 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_manager.cpp @@ -0,0 +1,168 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_manager.h" + +#include +#include + +#include "camera_impl.h" +#include "camera_service.h" + +using namespace std; + +namespace OHOS { +namespace Media { +class CameraManagerImpl : public CameraManager, public CameraServiceCallback { +public: + CameraManagerImpl() + { + // get client instance of camera service + cameraService_ = CameraService::GetInstance(); + // Since service is running in the current process now, it always succeed + cameraService_->Initialize(*this); + } + + ~CameraManagerImpl() + { + for (auto &i : cameraMapCache_) { + delete i.second; + } + } + + void OnCameraServiceInitialized(const list &availCameraIdList) override + { + MEDIA_DEBUG_LOG("Camera manager initializing."); + /* cameraService_ cannot be nullptr as OnCameraServiceInitialized is a callback of cameraService_ */ + for (auto &cameraId : availCameraIdList) { + InitCameraAbility(cameraId); + } + } + + void OnCameraStatusChange(const string &cameraId, CameraStauts status, const CameraDevice &device) override + { + auto p = cameraMapCache_.find(cameraId); + switch (status) { + case CAMERA_STATUS_UNAVAIL: + if (p != cameraMapCache_.end()) { + for (auto &i : deviceCbList_) { + i.second->Post( + [i, cameraId]() { i.first->OnCameraStatus(cameraId, CAMERA_DEVICE_STATE_UNAVAILABLE); }); + } + // User may still using icamera now + delete p->second; + cameraMapCache_.erase(p); + } + break; + case CAMERA_STATUS_AVAIL: + InitCameraAbility(cameraId); + if (p == cameraMapCache_.end()) { + for (auto &i : deviceCbList_) { + i.second->Post( + [i, cameraId]() { i.first->OnCameraStatus(cameraId, CAMERA_DEVICE_STATE_AVAILABLE); }); + } + } + break; + case CAMERA_STATUS_CREATED: + if (p != cameraMapCache_.end()) { + p->second->OnCreate((CameraDevice &) device); + } + break; + case CAMERA_STATUS_CREATE_FAILED: + if (p != cameraMapCache_.end()) { + p->second->OnCreateFailed(); + } + break; + default: + break; + } + } + + void RegisterCameraDeviceCallback(CameraDeviceCallback &callback, EventHandler &handler) override + { + deviceCbList_.emplace_back(make_pair(&callback, &handler)); + for (auto &i : cameraMapCache_) { + string cameraId = i.first; + handler.Post([&callback, cameraId]() { callback.OnCameraStatus(cameraId, CAMERA_DEVICE_STATE_AVAILABLE); }); + } + } + + void UnregisterCameraDeviceCallback(const CameraDeviceCallback &callback) override + { + for (auto p = deviceCbList_.begin(); p != deviceCbList_.end(); p++) { + if (p->first == &callback) { + deviceCbList_.erase(p); + break; + } + } + } + + list GetCameraIds() override + { + list cameraList; + for (auto &i : cameraMapCache_) { + MEDIA_DEBUG_LOG("%s", i.first.c_str()); + cameraList.emplace_back(i.first); + } + return cameraList; + } + + const CameraAbility *GetCameraAbility(const string &cameraId) override + { + auto camera = cameraMapCache_.find(cameraId); + return camera->second->GetAbility(); + } + + void CreateCamera(const string &cameraId, CameraStateCallback &callback, EventHandler &handler) override + { + auto p = cameraMapCache_.find(cameraId); + if (p == cameraMapCache_.end()) { + MEDIA_FATAL_LOG("Camera impl not found."); + handler.Post([&callback, &cameraId] { callback.OnCreateFailed(cameraId, MEDIA_ERR); }); + return; + } + p->second->RegistCb(callback, handler); + cameraService_->CreateCamera(cameraId); + } + +private: + CameraService *cameraService_; + map cameraMapCache_; + list> deviceCbList_; + + void InitCameraAbility(const string &cameraId) + { + auto ability = cameraService_->GetCameraAbility((string &) cameraId); + if (ability == nullptr) { + MEDIA_FATAL_LOG("Camera ability is null."); + return; + } + + CameraImpl *cam = new (nothrow) CameraImpl((string &) cameraId, *ability); + if (cam == nullptr) { + MEDIA_FATAL_LOG("New object failed."); + return; + } + cameraMapCache_[cameraId] = cam; + } +}; + +CameraManager *CameraManager::GetInstance() +{ + static CameraManagerImpl cameraManagerImpl; + return &cameraManagerImpl; +} +} // namespace Media +} // namespace OHOS diff --git a/frameworks/innerkitsimpl/camera/src/camera_service.cpp b/frameworks/innerkitsimpl/camera/src/camera_service.cpp new file mode 100644 index 0000000..dbb12a8 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/camera_service.cpp @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_service.h" +#include "hi_type.h" +#include "media_log.h" +#include "sdk.h" + +using namespace std; + +namespace OHOS { +namespace Media { +string g_mainCamera = "main"; +bool g_camSdkInit = false; + +CameraService::CameraService() +{ + HI_S32 ret = sdk_init(); + if (ret == SDK_INIT_SUCC) { + g_camSdkInit = true; + MEDIA_DEBUG_LOG("sdk intialized successfully"); + } else if (ret == SDK_INIT_REENTRY) { + MEDIA_DEBUG_LOG("sdk already intialized"); + } else { + MEDIA_ERR_LOG("sdk init failed, ret = %d", ret); + } +} + +CameraService::~CameraService() +{ + if (ability_) { + delete ability_; + ability_ = nullptr; + } + + if (device_) { + device_->UnInitialize(); + delete device_; + device_ = nullptr; + } + + if (g_camSdkInit) { + sdk_exit(); + g_camSdkInit = false; + MEDIA_DEBUG_LOG("sdk exited successfully"); + } +} + +CameraService *CameraService::GetInstance() +{ + static CameraService instance; + return &instance; +} + +void CameraService::Initialize(CameraServiceCallback &callback) +{ + MEDIA_DEBUG_LOG("Camera service initializing."); + cameraServiceCb_ = &callback; + InitCameraDevices(); + + list cameraList = {g_mainCamera}; + cameraServiceCb_->OnCameraServiceInitialized(cameraList); +} + +const CameraAbility *CameraService::GetCameraAbility(std::string &cameraId) +{ + if ((cameraId == g_mainCamera) && (device_ != nullptr)) { + return ability_; + } + return nullptr; +} + +void CameraService::CreateCamera(string cameraId) +{ + if (cameraId != g_mainCamera) { + MEDIA_ERR_LOG("This camera does not exist. (cameraId=%s)", cameraId.c_str()); + return; + } + cameraServiceCb_->OnCameraStatusChange(cameraId, CameraServiceCallback::CAMERA_STATUS_CREATED, *device_); +} + +int32_t CameraService::InitCameraDevices() +{ + /* Only one camera device now, support more cameras in future */ + device_ = new (nothrow) CameraDevice; + if (device_ == nullptr) { + MEDIA_FATAL_LOG("New object failed."); + return MEDIA_ERR; + } + ability_ = new (nothrow) CameraAbility; + if (ability_ == nullptr) { + delete device_; + device_ = nullptr; + MEDIA_FATAL_LOG("New object failed."); + return MEDIA_ERR; + } + + if (device_->Initialize(*ability_) != MEDIA_OK) { + delete device_; + delete ability_; + device_ = nullptr; + ability_ = nullptr; + return MEDIA_ERR; + } + return MEDIA_OK; +} +} // namespace Media +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/src/event_handler.cpp b/frameworks/innerkitsimpl/camera/src/event_handler.cpp new file mode 100644 index 0000000..11c4ee2 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/event_handler.cpp @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "event_handler.h" + +using namespace std; + +namespace OHOS { +namespace Media { +EventHandler::EventHandler() : running_(false) +{ + hdlThrd_ = new thread(EventDispatch, this); +} + +EventHandler::~EventHandler() +{ + while (!running_) { + this_thread::yield(); + } + running_ = false; + cv_.notify_all(); + hdlThrd_->join(); + delete hdlThrd_; + hdlThrd_ = nullptr; +} + +bool EventHandler::IsRunning() +{ + return running_; +} + +void EventHandler::EventDispatch(EventHandler *hdl) +{ + if (hdl == nullptr) { + return; + } + std::unique_lock lock(hdl->mtx_); + hdl->running_ = true; + while (hdl->running_) { + if (hdl->msgQ_.empty()) { + hdl->cv_.wait(lock); // wait for task or exit signal + } else { + auto mission = hdl->msgQ_.front(); + hdl->msgQ_.pop(); + lock.unlock(); + mission->Exec(); + delete mission; + lock.lock(); + } + } + /* Exec all tasks before exit */ + while (!hdl->msgQ_.empty()) { + auto mission = hdl->msgQ_.front(); + hdl->msgQ_.pop(); + lock.unlock(); + mission->Exec(); + delete mission; + lock.lock(); + } +} +} // namespace Media +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/src/frame_config.cpp b/frameworks/innerkitsimpl/camera/src/frame_config.cpp new file mode 100755 index 0000000..4865819 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/src/frame_config.cpp @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "frame_config.h" +#include "media_log.h" + +using namespace std; + +namespace OHOS { +namespace Media { +int32_t FrameConfig::GetFrameConfigType() +{ + return type_; +} + +list FrameConfig::GetSurfaces() +{ + return surfaceList_; +} + +void FrameConfig::AddSurface(Surface &surface) +{ + surfaceList_.emplace_back(&surface); +} + +void FrameConfig::RemoveSurface(Surface &surface) +{ + surfaceList_.remove(&surface); +} + +void *FrameConfig::GetValue(uint32_t key) +{ + auto p = keyMap_.find(key); + return (p == keyMap_.end()) ? nullptr : (&p->second); +} + +void FrameConfig::SetValue(uint32_t key, const void *value) +{ + if (value == nullptr) { + return; + } + switch (key) { + case PARAM_KEY_IMAGE_ENCODE_QFACTOR: + keyMap_[key] = *(static_cast(value)); + break; + default: + break; + } +} + +FrameConfig::FrameConfig(int32_t type) : type_(type) {} +} // namespace Media +} // namespace OHOS \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/test/BUILD.gn b/frameworks/innerkitsimpl/camera/test/BUILD.gn new file mode 100644 index 0000000..10bb48f --- /dev/null +++ b/frameworks/innerkitsimpl/camera/test/BUILD.gn @@ -0,0 +1,20 @@ +# Copyright (C) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +group("cameramoduletest") { + testonly = true + + deps = [ + "moduletest/cpp/camera_test:moduletest", + ] +} \ No newline at end of file diff --git a/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/BUILD.gn b/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/BUILD.gn new file mode 100755 index 0000000..8004a04 --- /dev/null +++ b/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/BUILD.gn @@ -0,0 +1,50 @@ +# Copyright (C) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/test.gni") + +module_output_path = "camera_standard/camera" + +group("moduletest") { + testonly = true + + deps = [ ":camera_module_test" ] +} + +ohos_moduletest("camera_module_test") { + module_out_path = module_output_path + include_dirs = [ + "./include", + "//foundation/multimedia/camera_standard/interfaces/innerkits/native/include", + "//base/hiviewdfx/hilog/interfaces/native/innerkits/include/", + "//drivers/peripheral/codec/interfaces/include", + "//drivers/peripheral/display/interfaces/include", + "//foundation/graphic/standard/frameworks/surface/include", + "//foundation/graphic/standard/interfaces/kits/surface", + "//foundation/graphic/standard/window_manager/include", + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera/include", + "//foundation/multimedia/camera_standard/interfaces/innerkits/native/include", + "//utils/native/base/include", + ] + + sources = [ "src/camera_module_test.cpp" ] + + deps = [ + "//foundation/graphic/standard:libsurface", + "//foundation/graphic/standard:libwms_client", + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera:camera", + "//utils/native/base:utils", + ] + + external_deps = [ "ipc:ipc_core" ] +} diff --git a/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/include/camera_module_test.h b/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/include/camera_module_test.h new file mode 100644 index 0000000..942b65b --- /dev/null +++ b/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/include/camera_module_test.h @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef CAMERA_MODULE_TEST_H +#define CAMERA_MODULE_TEST_H + +#include + +#include "gtest/gtest.h" +#include "camera_kit.h" +#include "display_type.h" + +// VideoSize +enum TestVideoSize { + WIDTH = 1920, + HEIGHT = 1080, +}; + +// CameraSetupFlag +bool g_onGetCameraAbilityFlag; +bool g_onConfigureFlag; +bool g_onGetSupportedSizesFlag; +// CameraDeviceCallBack Flag +bool g_onCameraAvailableFlag; +bool g_onCameraUnavailableFlag; +// CameraStateCallback +bool g_onCreatedFlag; +bool g_onCreateFailedFlag; +bool g_onReleasedFlag; +bool g_onConfiguredFlag; +bool g_onConfigureFailedFlag; +// FrameStateCallback +bool g_onCaptureTriggerAbortedFlag; +bool g_onCaptureTriggerCompletedFlag; +bool g_onCaptureTriggerStartedFlag; +bool g_onGetFrameConfigureType; +bool g_onFrameFinishedFlag; +bool g_onFrameErrorFlag; +bool g_onFrameProgressedFlag; + +class CameraModuleTest : public testing::Test { +public: + /* SetUpTestCase:The preset action of the test suite is executed before the first TestCase */ + static void SetUpTestCase(void); + + /* TearDownTestCase:The test suite cleanup action is executed after the last TestCase */ + static void TearDownTestCase(void); + + /* SetUp:Execute before each test case */ + void SetUp(); + + /* TearDown:Execute after each test case */ + void TearDown(); + + /* Gets the camera Id */ + static void GetCameraId(OHOS::Media::CameraKit *cameraKit, + std::list &camList, std::string &camId); +}; +#endif // CAMERA_MODULE_TEST_H diff --git a/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/src/camera_module_test.cpp b/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/src/camera_module_test.cpp new file mode 100644 index 0000000..e39c15a --- /dev/null +++ b/frameworks/innerkitsimpl/camera/test/moduletest/cpp/camera_test/src/camera_module_test.cpp @@ -0,0 +1,494 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_module_test.h" + +using namespace std; +using namespace OHOS; +using namespace OHOS::Media; +using namespace testing::ext; + +void CameraModuleTest::SetUpTestCase(void) {} +void CameraModuleTest::TearDownTestCase(void) {} + +/* SetUp:Execute before each test case */ +void CameraModuleTest::SetUp() +{ + /* CameraSetUp */ + g_onGetCameraAbilityFlag = false; + g_onConfigureFlag = false; + g_onGetSupportedSizesFlag = false; + /* CameraDeviceCallBack */ + g_onCameraAvailableFlag = false; + g_onCameraUnavailableFlag = false; + /* CameraStateCallback */ + g_onCreatedFlag = false; + g_onCreateFailedFlag = false; + g_onConfiguredFlag = false; + g_onConfigureFailedFlag = false; + g_onReleasedFlag = false; + /* FrameStateCallback */ + g_onCaptureTriggerAbortedFlag = false; + g_onCaptureTriggerCompletedFlag = false; + g_onFrameFinishedFlag = false; + g_onGetFrameConfigureType = false; + g_onFrameErrorFlag = false; + g_onFrameProgressedFlag = false; +} + +void CameraModuleTest::TearDown(void) {} + +/* * + * Get camera Id + */ +void CameraModuleTest::GetCameraId(CameraKit *cameraKit, list &camList, + string &camId) +{ + camList = cameraKit->GetCameraIds(); + for (auto &cam : camList) { + const CameraAbility *ability = cameraKit->GetCameraAbility(cam); + ASSERT_NE(ability, nullptr); + g_onGetCameraAbilityFlag = true; + /* find camera which fits user's ability */ + list sizeList = ability->GetSupportedSizes(); + if (sizeList.size() != 0) { + g_onGetSupportedSizesFlag = true; + } + for (auto &pic : sizeList) { + if (pic.width == WIDTH && pic.height == HEIGHT) { + /* 1920:width,1080:height */ + camId = cam; + break; + } + } + } + if (camId.empty()) { + cout << "No available camera.(1080p wanted)" << endl; + return; + } +} + +class SampleFrameStateCallback : public FrameStateCallback { + void SampleSaveCapture(const char &buffer, uint32_t size) + { + ofstream pic("/data/Capture_sample.jpg", ofstream::out); + pic.write(&buffer, size); + pic.close(); + } + + void OnFrameFinished(const Camera &camera, const FrameConfig &fc, + const FrameResult &result) override + { + g_onFrameProgressedFlag = true; + if (((FrameConfig &) fc).GetFrameConfigType() == FRAME_CONFIG_CAPTURE) { + g_onGetFrameConfigureType = true; + list surfaceList = ((FrameConfig &) fc).GetSurfaces(); + for (Surface *surface : surfaceList) { + sptr buffer; + int32_t flushFence; + int64_t timestamp; + Rect damage; + SurfaceError ret = surface->AcquireBuffer(buffer, flushFence, timestamp, damage); + if (ret == SURFACE_ERROR_OK) { + char *virtAddr = static_cast(buffer->GetVirAddr()); + if (virtAddr != nullptr) { + int32_t bufferSize = stoi(surface->GetUserData("surface_buffer_size")); + SampleSaveCapture(*virtAddr, bufferSize); + } else { + g_onFrameErrorFlag = true; + } + surface->ReleaseBuffer(buffer, -1); + } else { + g_onFrameErrorFlag = true; + } + } + delete &fc; + } else { + g_onFrameErrorFlag = true; + } + g_onFrameFinishedFlag = true; + } +}; + +class SurfaceListener : public IBufferConsumerListener { +public: + void OnBufferAvailable() override {} +}; + +class SampleCameraStateMng : public CameraStateCallback { +public: + Camera *cam_ = nullptr; + SampleCameraStateMng() = delete; + explicit SampleCameraStateMng(EventHandler &eventHdlr) : eventHdlr_(eventHdlr) + { + captureConSurface = nullptr; + } + + ~SampleCameraStateMng() + { + if (cam_) { + cam_->Release(); + } + } + + void OnCreated(const Camera &c) override + { + g_onCreatedFlag = true; + CameraConfig *config = CameraConfig::CreateCameraConfig(); + if (config != nullptr) { + config->SetFrameStateCallback(fsCb_, eventHdlr_); + ((Camera &)c).Configure(*config); + g_onConfigureFlag = true; + cam_ = (Camera *) &c; + } else { + cout << "Create Camera Config return null" << endl; + } + } + + void OnCreateFailed(const std::string cameraId, int32_t errorCode) override + { + g_onCreateFailedFlag = true; + } + + void OnReleased(const Camera &c) override + { + g_onReleasedFlag = true; + } + + void OnConfigured(const Camera &c) override + { + g_onConfiguredFlag = true; + } + + void OnConfigureFailed(const std::string cameraId, int32_t errorCode) override + { + g_onConfigureFailedFlag = true; + } + + void Capture() + { + if (cam_ == nullptr) { + cout << "Camera capture is not ready." << endl; + return; + } + FrameConfig *fc = new FrameConfig(FRAME_CONFIG_CAPTURE); + + captureConSurface = Surface::CreateSurfaceAsConsumer(); + if (captureConSurface == nullptr) { + delete fc; + cout << "CreateSurface failed" << endl; + return; + } + + sptr listener = new SurfaceListener(); + captureConSurface->RegisterConsumerListener(listener); + auto refSurface = captureConSurface; // to keep the reference count + + int usage = HBM_USE_CPU_READ | HBM_USE_CPU_WRITE | HBM_USE_MEM_DMA; + captureConSurface->SetUserData("surface_width", "1920"); + captureConSurface->SetUserData("surface_height", "1080"); + captureConSurface->SetUserData("surface_stride_Alignment", "8"); + captureConSurface->SetUserData("surface_format", to_string(PIXEL_FMT_RGBA_8888)); + captureConSurface->SetUserData("surface_usage", to_string(usage)); + captureConSurface->SetUserData("surface_timeout", "0"); + fc->AddSurface(*refSurface); + int32_t ret = cam_->TriggerSingleCapture(*fc); + if (ret != MEDIA_OK) { + delete fc; + } else { + g_onCaptureTriggerCompletedFlag = true; + } + } + +private: + EventHandler &eventHdlr_; + SampleFrameStateCallback fsCb_; + sptr captureConSurface; +}; + +class SampleCameraDeviceCallback : public CameraDeviceCallback { +public: + SampleCameraDeviceCallback() {} + + ~SampleCameraDeviceCallback() {} + + void OnCameraStatus(const std::string cameraId, int32_t status) override + { + if (status == CAMERA_DEVICE_STATE_AVAILABLE) { + g_onCameraAvailableFlag = true; + } else if (status == CAMERA_DEVICE_STATE_UNAVAILABLE) { + g_onCameraUnavailableFlag = true; + } + } +}; + +/* + * Feature: Camera + * Function: GetCameraIds + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Get Camera IDs, main camera should be returned + */ +HWTEST_F(CameraModuleTest, media_camera_GetCameraId_test_001, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + EXPECT_FALSE(camId.empty()); + EXPECT_EQ("main", camId); + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: GetCameraAbility + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Camera Ability should not be null + */ +HWTEST_F(CameraModuleTest, media_camera_GetCameraAbility_test_001, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + EXPECT_EQ(g_onGetCameraAbilityFlag, true); + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: CreateCamera + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: CreateCamera should create "main" CameraImpl object successfully + */ +HWTEST_F(CameraModuleTest, media_camera_CreateCamerakit_test_001, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + sleep(1); + cameraKit->CreateCamera(camId, camStateMng, eventHdlr); + sleep(1); + EXPECT_EQ(g_onCreatedFlag, true); + EXPECT_NE(g_onCreateFailedFlag, true); + EXPECT_NE(camStateMng.cam_, nullptr); + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: CreateCamera + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: CreateCamera should not create "0" camera object + */ +HWTEST_F(CameraModuleTest, media_camera_CreateCamerakit_test_002, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + cameraKit = CameraKit::GetInstance(); + string camId = "0"; + EventHandler eventHdlr; + SampleCameraStateMng camStateMng(eventHdlr); + sleep(1); + cameraKit->CreateCamera(camId, camStateMng, eventHdlr); + sleep(1); + EXPECT_EQ(g_onCreatedFlag, false); + EXPECT_EQ(g_onCreateFailedFlag, true); + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: CameraDeviceCallback + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: creation of CameraDeviceCallback object should not fail + */ +HWTEST_F(CameraModuleTest, media_camera_DeviceCallback_test_001, TestSize.Level1) +{ + SampleCameraDeviceCallback *deviceCallback = nullptr; + deviceCallback = new SampleCameraDeviceCallback(); + EXPECT_NE(nullptr, deviceCallback); + delete deviceCallback; + deviceCallback = nullptr; +} + +/* + * Feature: Camera + * Function: RegisterCameraDeviceCallback + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Registering of CameraDeviceCallback should be success + */ +HWTEST_F(CameraModuleTest, media_camera_RegisterCameraDeviceCallback_test_001, + TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + SampleCameraDeviceCallback *deviceCallback = nullptr; + deviceCallback = new SampleCameraDeviceCallback(); + ASSERT_NE(nullptr, deviceCallback); + cameraKit->RegisterCameraDeviceCallback(*deviceCallback, eventHdlr); + sleep(1); + EXPECT_EQ(g_onCameraAvailableFlag, true); + delete deviceCallback; + deviceCallback = nullptr; + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: UnregisterCameraDeviceCallback + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Unregistering of CameraDeviceCallback should be success + */ +HWTEST_F(CameraModuleTest, media_camera_UnregisterCameraDeviceCallback_test_001, + TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + SampleCameraDeviceCallback *deviceCallback = nullptr; + deviceCallback = new SampleCameraDeviceCallback(); + ASSERT_NE(nullptr, deviceCallback); + cameraKit->RegisterCameraDeviceCallback(*deviceCallback, eventHdlr); + sleep(1); + EXPECT_EQ(g_onCameraAvailableFlag, true); + cameraKit->UnregisterCameraDeviceCallback(*deviceCallback); + sleep(1); + EXPECT_EQ(g_onCameraUnavailableFlag, false); + delete deviceCallback; + deviceCallback = nullptr; + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: GetSupportedSizes + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Checks if GetSupportedSizes returns the correct resolution + */ +HWTEST_F(CameraModuleTest, media_camera_GetSupportedSizes_test_001, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + EXPECT_EQ(g_onGetSupportedSizesFlag, true); + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: GetCameraId + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Checks if setting of cameraconfig to camera is success + */ +HWTEST_F(CameraModuleTest, media_camera_OnConfigure_test_001, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + sleep(1); + cameraKit->CreateCamera(camId, camStateMng, eventHdlr); + sleep(1); + EXPECT_EQ(g_onConfigureFlag, true); + EXPECT_NE(camStateMng.cam_, nullptr); + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: FrameConfig + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Checks if creation of FrameConfig object is success + */ +HWTEST_F(CameraModuleTest, media_camera_FrameConfig_test_001, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + cameraKit->CreateCamera(camId, camStateMng, eventHdlr); + sleep(1); + FrameConfig *fc = new FrameConfig(FRAME_CONFIG_CAPTURE); + EXPECT_NE(fc, nullptr); + delete fc; + cameraKit = nullptr; +} + +/* + * Feature: Camera + * Function: GetCameraId + * SubFunction: NA + * FunctionPoints: NA + * EnvConditions: NA + * CaseDescription: Checks if the capture is done successfully + */ +HWTEST_F(CameraModuleTest, media_camera_Capture_test_003, TestSize.Level1) +{ + CameraKit *cameraKit = CameraKit::GetInstance(); + list camList; + string camId; + EventHandler eventHdlr; + CameraModuleTest::GetCameraId(cameraKit, camList, camId); + SampleCameraStateMng camStateMng(eventHdlr); + sleep(1); + cameraKit->CreateCamera(camId, camStateMng, eventHdlr); + sleep(1); + camStateMng.Capture(); + sleep(1); + EXPECT_EQ(g_onCaptureTriggerCompletedFlag, true); + EXPECT_EQ(g_onGetFrameConfigureType, true); + EXPECT_EQ(g_onFrameFinishedFlag, true); + EXPECT_NE(g_onFrameErrorFlag, true); + cameraKit = nullptr; +} diff --git a/frameworks/innerkitsimpl/prebuilts/etcs/BUILD.gn b/frameworks/innerkitsimpl/prebuilts/etcs/BUILD.gn new file mode 100644 index 0000000..6fc8170 --- /dev/null +++ b/frameworks/innerkitsimpl/prebuilts/etcs/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +## Install cameradev.ini to /system/etc/ {{{ +ohos_prebuilt_etc("cameradev.ini") { + if (device_type == "Hi3516DV300") { + source = "cameradev_imx335.ini" + } else { + source = "cameradev_imx307.ini" + } + relative_install_dir = "." + part_name = "multimedia_camera_standard" + subsystem_name = "multimedia" +} +## Install cameradev.ini to /system/etc/ }}} diff --git a/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx307.ini b/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx307.ini new file mode 100644 index 0000000..d700e30 --- /dev/null +++ b/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx307.ini @@ -0,0 +1,256 @@ +; +; Copyright (C) 2021 Huawei Device Co., Ltd. +; Licensed under the Apache License, Version 2.0 (the "License"); +; you may not use this file except in compliance with the License. +; You may obtain a copy of the License at +; +; http://www.apache.org/licenses/LICENSE-2.0 +; +; Unless required by applicable law or agreed to in writing, software +; distributed under the License is distributed on an "AS IS" BASIS, +; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +; See the License for the specific language governing permissions and +; limitations under the License. +; +; ============= VideoMode Specified Configure ============= +[common] +mediamode = "HI_PARAM_MEDIAMODE_1080P_30" + +[common.vcap.pipe.0] +vcappipe_hdl = "0" +vivpssmode = "3"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt +[common.vcap.pipe.1] +vcappipe_hdl = "3" +vivpssmode = "0"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt + +; ============= VB Configure ============= +[vb] +max_poolcnt = 2 +[vb.pool.0] +image_width = "1920" +image_height = "1080" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +[vb.pool.1] +image_width = "1280" +image_height = "720" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +[vb.pool.2] +image_width = "1280" +image_height = "720" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "1" +default_align = "8" +blk_count = "3" +; ============= Vcapture Configure ============= + +[vcap.dev] +sensocnt = "1" +sensor_type0 = "6" +sensor_mode = "0" +sensor_width = "1920";stSize.u32Width +sensor_height = "1080";stSize.u32Width +bas_width = "1920";VI_BAS_SCALE_ATTR_S.stBasSize.u32Width +bas_height = "1080";VI_BAS_SCALE_ATTR_S.stBasSize.u32Height +wdr_mode = "0"; 0:none, 1:build in,2:qudra line, 3:2_1 line, 4:2_1 frame ;VI_WDR_ATTR_S.enWDRMode +data_type = "2"; 0:RAW_8BIT, 1:RAW_10BIT, 2:RAW_12BIT, 3: RAW_14BIT, 4:RAW_16BIT, 5:YUV420_8BIT_NORMAL, 6:YUV420_8BIT_LEGACY, 7: YUV422_8BIT, 8:DATA_TYPE_BUTT; +componentmask0 = "4293918720"; 0xFFF00000 ; au32ComponentMask +componentmask1 = "0" ; 0x00000000;au32ComponentMask +pipecnt = "2" + +[vcap.mipi] +enable = "1"; +combo_dev_t = "0";combo_dev_t +input_mode_t = "0";0:INPUT_MODE_MIPI +mipi_data_rate_t = "0";0:MIPI_DATA_RATE_X1 +img_rect_x = "0" +img_rect_y = "0" +img_rect_w = "1920" +img_rect_h = "1080" +data_type_t = "1" ;2:DATA_TYPE_RAW_12BIT +mipi_wdr_mode_t = "0" +lane_id_num = "2" +lane_id_0 = "0" +lane_id_1 = "2" +lane_id_2 = "-1" +lane_id_3 = "-1" + +[vcap.isp_pub] +enable = "1"; +stWndRect_x = "0"; +stWndRect_y = "0"; +stWndRect_w = "1920"; +stWndRect_h = "1080"; +outImageSize_x = "1920"; +outImageSize_y = "1080"; +frameRate = "30" +enBayer = "0";BAYER_RGGB +wdrMode = "0";WDR_MODE_NONE +snsMode = "0";0 + +[vcap.pipe.0] +chncnt = "1" +enPipeBypassMode = "0"; +bYuvSkip = "0"; +bIspBypass = "0"; +u32MaxW = "1920"; +u32MaxH = "1080"; +enPixFmt = "19"; +enCompressMode = "0"; +enBitWidth = "2"; +bNrEn = "1"; +enNrRefSource = "0"; +bSharpenEn = "1"; +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +bDiscardProPic = "0"; + +[vcap.pipe.0.chl.0] +out_width = "1920" +out_height = "1080" +enPixelFormat = "26"; +enDynamicRange = "0"; +enVideoFormat = "0"; +enCompressMode = "0"; +bMirror = "0" +bFlip = "0" +u32Depth = "0" +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S + +[vcap.pipe.1] +chncnt = "1" +enPipeBypassMode = "0"; +bYuvSkip = "0"; +bIspBypass = "0"; +u32MaxW = "1920"; +u32MaxH = "1080"; +enPixFmt = "19"; +enCompressMode = "0"; +enBitWidth = "2"; +bNrEn = "1"; +enNrRefSource = "0"; +bSharpenEn = "1"; +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +bDiscardProPic = "0"; + +[vcap.pipe.1.chl.0] +out_width = "1920" +out_height = "1080" +enPixelFormat = "26"; +enDynamicRange = "0"; +enVideoFormat = "0"; +enCompressMode = "0"; +bMirror = "0" +bFlip = "0" +u32Depth = "0" +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +; ============= Vprocessor Configure ============= +[vpss.0] +vportcnt = "2" +max_width = "1920" +max_height = "1080" +src_framerate = "30" +dst_framerate = "30" +pix_format = "26" +[vpss.0.vport.0] +enable = "1" +res_width = "1920" +res_height = "1080" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.vport.1] +enable = "1" +res_width = "1280" +res_height = "720" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.vport.2] +enable = "1" +res_width = "720" +res_height = "576" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.extvport.0] +enable = "0" +res_width = "160" +res_height = "120" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +; ============= Vcoder Configure ============= +[venc] +venccnt ="4" +[venc.0] +res_width = "1920" +res_height = "1080" +bufsize = "1258290"; 1920*1080*3/4 bytes +gop = "30" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "10240"; kbps +h264bitrate = "12288" +stat_time = "2"; second +[venc.1] +res_width = "640" +res_height = "360" +bufsize = "230400"; 640*480*3/4 bytes +gop = "30" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "2048"; kbps +h264bitrate = "2048" +stat_time = "2"; second +[venc.2] +res_width = "1920" +res_height = "1080" +bufsize = "1258290"; +gop = "0" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "0"; kbps +h264bitrate = "0" +stat_time = "2"; second +[venc.3] +res_width = "320" +res_height = "180" +bufsize = "57600"; bytes +gop = "0" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "0"; Kbps +h264bitrate = "0" +stat_time = "2"; second diff --git a/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx335.ini b/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx335.ini new file mode 100644 index 0000000..5c5bf80 --- /dev/null +++ b/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_imx335.ini @@ -0,0 +1,272 @@ +; +; Copyright (C) 2021 Huawei Device Co., Ltd. +; Licensed under the Apache License, Version 2.0 (the "License"); +; you may not use this file except in compliance with the License. +; You may obtain a copy of the License at +; +; http://www.apache.org/licenses/LICENSE-2.0 +; +; Unless required by applicable law or agreed to in writing, software +; distributed under the License is distributed on an "AS IS" BASIS, +; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +; See the License for the specific language governing permissions and +; limitations under the License. +; +; ============= VideoMode Specified Configure ============= +[common] +mediamode = "HI_PARAM_MEDIAMODE_1080P_30" + +[common.vcap.pipe.0] +vcappipe_hdl = "0" +vivpssmode = "0"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt +[common.vcap.pipe.1] +vcappipe_hdl = "3" +vivpssmode = "0"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt + +; ============= VB Configure ============= +[vb] +max_poolcnt = 5 +[vb.pool.0] +image_width = "2592" +image_height = "1944" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +[vb.pool.1] +image_width = "1920" +image_height = "1080" +pix_format = "19" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +[vb.pool.2] +image_width = "1280" +image_height = "720" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "1" +default_align = "8" +blk_count = "3" +[vb.pool.3] +image_width = "1944" +image_height = "2592" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "16" +[vb.pool.4] +image_width = "720" +image_height = "480" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +; ============= Vcapture Configure ============= + +[vcap.dev] +sensocnt = "1" +sensor_type0 = "12" +sensor_mode = "0" +sensor_width = "2592";stSize.u32Width +sensor_height = "1944";stSize.u32Width +bas_width = "2592";VI_BAS_SCALE_ATTR_S.stBasSize.u32Width +bas_height = "1944";VI_BAS_SCALE_ATTR_S.stBasSize.u32Height +wdr_mode = "0"; 0:none, 1:build in,2:qudra line, 3:2_1 line, 4:2_1 frame ;VI_WDR_ATTR_S.enWDRMode +data_type = "2"; 0:RAW_8BIT, 1:RAW_10BIT, 2:RAW_12BIT, 3: RAW_14BIT, 4:RAW_16BIT, 5:YUV420_8BIT_NORMAL, 6:YUV420_8BIT_LEGACY, 7: YUV422_8BIT, 8:DATA_TYPE_BUTT; +componentmask0 = "4293918720"; 0xFFF00000 ; au32ComponentMask +componentmask1 = "0" ; 0x00000000;au32ComponentMask +pipecnt = "2" + +[vcap.mipi] +enable = "1"; +combo_dev_t = "0";combo_dev_t +input_mode_t = "0";0:INPUT_MODE_MIPI +mipi_data_rate_t = "0";0:MIPI_DATA_RATE_X1 +img_rect_x = "0" +img_rect_y = "0" +img_rect_w = "2592" +img_rect_h = "1944" +data_type_t = "1" ;2:DATA_TYPE_RAW_12BIT +mipi_wdr_mode_t = "0" +lane_id_num = "4" +lane_id_0 = "0" +lane_id_1 = "1" +lane_id_2 = "2" +lane_id_3 = "3" + +[vcap.isp_pub] +enable = "1"; +stWndRect_x = "0"; +stWndRect_y = "0"; +stWndRect_w = "2592"; +stWndRect_h = "1944"; +outImageSize_x = "2592"; +outImageSize_y = "1944"; +frameRate = "30" +enBayer = "0";BAYER_RGGB +wdrMode = "0";WDR_MODE_NONE +snsMode = "0";0 + +[vcap.pipe.0] +chncnt = "1" +enPipeBypassMode = "0"; +bYuvSkip = "0"; +bIspBypass = "0"; +u32MaxW = "2592"; +u32MaxH = "1944"; +enPixFmt = "19"; +enCompressMode = "0"; +enBitWidth = "2"; +bNrEn = "1"; +enNrRefSource = "0"; +bSharpenEn = "1"; +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +bDiscardProPic = "0"; + +[vcap.pipe.0.chl.0] +out_width = "2592" +out_height = "1944" +enPixelFormat = "26"; +enDynamicRange = "0"; +enVideoFormat = "0"; +enCompressMode = "0"; +bMirror = "0" +bFlip = "0" +u32Depth = "0" +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S + +[vcap.pipe.1] +chncnt = "1" +enPipeBypassMode = "0"; +bYuvSkip = "0"; +bIspBypass = "0"; +u32MaxW = "2592"; +u32MaxH = "1944"; +enPixFmt = "19"; +enCompressMode = "0"; +enBitWidth = "2"; +bNrEn = "1"; +enNrRefSource = "0"; +bSharpenEn = "1"; +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +bDiscardProPic = "0"; + +[vcap.pipe.1.chl.0] +out_width = "2592" +out_height = "1944" +enPixelFormat = "26"; +enDynamicRange = "0"; +enVideoFormat = "0"; +enCompressMode = "0"; +bMirror = "0" +bFlip = "0" +u32Depth = "0" +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +; ============= Vprocessor Configure ============= +[vpss.0] +vportcnt = "3" +max_width = "2592" +max_height = "1944" +src_framerate = "30" +dst_framerate = "30" +pix_format = "26" +[vpss.0.vport.0] +enable = "1" +res_width = "2592" +res_height = "1944" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.vport.1] +enable = "1" +res_width = "1920" +res_height = "1080" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.vport.2] +enable = "1" +res_width = "720" +res_height = "480" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.extvport.0] +enable = "0" +res_width = "160" +res_height = "120" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +; ============= Vcoder Configure ============= +[venc] +venccnt ="4" +[venc.0] +res_width = "1920" +res_height = "1080" +bufsize = "1258290"; 1920*1080*3/4 bytes +gop = "30" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "10240"; kbps +h264bitrate = "12288" +stat_time = "2"; second +[venc.1] +res_width = "640" +res_height = "360" +bufsize = "230400"; 640*480*3/4 bytes +gop = "30" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "2048"; kbps +h264bitrate = "2048" +stat_time = "2"; second +[venc.2] +res_width = "1920" +res_height = "1080" +bufsize = "1258290"; +gop = "0" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "0"; kbps +h264bitrate = "0" +stat_time = "2"; second +[venc.3] +res_width = "320" +res_height = "180" +bufsize = "57600"; bytes +gop = "0" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "0"; Kbps +h264bitrate = "0" +stat_time = "2"; second diff --git a/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_jxf23.ini b/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_jxf23.ini new file mode 100644 index 0000000..f9ef3c3 --- /dev/null +++ b/frameworks/innerkitsimpl/prebuilts/etcs/cameradev_jxf23.ini @@ -0,0 +1,256 @@ +; +; Copyright (C) 2021 Huawei Device Co., Ltd. +; Licensed under the Apache License, Version 2.0 (the "License"); +; you may not use this file except in compliance with the License. +; You may obtain a copy of the License at +; +; http://www.apache.org/licenses/LICENSE-2.0 +; +; Unless required by applicable law or agreed to in writing, software +; distributed under the License is distributed on an "AS IS" BASIS, +; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +; See the License for the specific language governing permissions and +; limitations under the License. +; +; ============= VideoMode Specified Configure ============= +[common] +mediamode = "HI_PARAM_MEDIAMODE_1080P_30" + +[common.vcap.pipe.0] +vcappipe_hdl = "0" +vivpssmode = "3"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt +[common.vcap.pipe.1] +vcappipe_hdl = "3" +vivpssmode = "0"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt + +; ============= VB Configure ============= +[vb] +max_poolcnt = 2 +[vb.pool.0] +image_width = "1920" +image_height = "1080" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +[vb.pool.1] +image_width = "1280" +image_height = "720" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "0" +default_align = "8" +blk_count = "3" +[vb.pool.2] +image_width = "1280" +image_height = "720" +pix_format = "26" +data_bitwidth = "0" +compress_mode = "1" +default_align = "8" +blk_count = "3" +; ============= Vcapture Configure ============= + +[vcap.dev] +sensocnt = "1" +sensor_type0 = "21" +sensor_mode = "0" +sensor_width = "1920";stSize.u32Width +sensor_height = "1080";stSize.u32Width +bas_width = "1920";VI_BAS_SCALE_ATTR_S.stBasSize.u32Width +bas_height = "1080";VI_BAS_SCALE_ATTR_S.stBasSize.u32Height +wdr_mode = "0"; 0:none, 1:build in,2:qudra line, 3:2_1 line, 4:2_1 frame ;VI_WDR_ATTR_S.enWDRMode +data_type = "2"; 0:RAW_8BIT, 1:RAW_10BIT, 2:RAW_12BIT, 3: RAW_14BIT, 4:RAW_16BIT, 5:YUV420_8BIT_NORMAL, 6:YUV420_8BIT_LEGACY, 7: YUV422_8BIT, 8:DATA_TYPE_BUTT; +componentmask0 = "4293918720"; 0xFFF00000 ; au32ComponentMask +componentmask1 = "0" ; 0x00000000;au32ComponentMask +pipecnt = "2" + +[vcap.mipi] +enable = "1"; +combo_dev_t = "0";combo_dev_t +input_mode_t = "0";0:INPUT_MODE_MIPI +mipi_data_rate_t = "0";0:MIPI_DATA_RATE_X1 +img_rect_x = "0" +img_rect_y = "0" +img_rect_w = "1920" +img_rect_h = "1080" +data_type_t = "1" ;2:DATA_TYPE_RAW_12BIT +mipi_wdr_mode_t = "0" +lane_id_num = "2" +lane_id_0 = "0" +lane_id_1 = "2" +lane_id_2 = "-1" +lane_id_3 = "-1" + +[vcap.isp_pub] +enable = "1"; +stWndRect_x = "0"; +stWndRect_y = "0"; +stWndRect_w = "1920"; +stWndRect_h = "1080"; +outImageSize_x = "1920"; +outImageSize_y = "1080"; +frameRate = "30" +enBayer = "3";BAYER_BGGR +wdrMode = "0";WDR_MODE_NONE +snsMode = "0";0 + +[vcap.pipe.0] +chncnt = "1" +enPipeBypassMode = "0"; +bYuvSkip = "0"; +bIspBypass = "0"; +u32MaxW = "1920"; +u32MaxH = "1080"; +enPixFmt = "19"; +enCompressMode = "0"; +enBitWidth = "2"; +bNrEn = "1"; +enNrRefSource = "0"; +bSharpenEn = "1"; +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +bDiscardProPic = "0"; + +[vcap.pipe.0.chl.0] +out_width = "1920" +out_height = "1080" +enPixelFormat = "26"; +enDynamicRange = "0"; +enVideoFormat = "0"; +enCompressMode = "0"; +bMirror = "0" +bFlip = "0" +u32Depth = "0" +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S + +[vcap.pipe.1] +chncnt = "1" +enPipeBypassMode = "0"; +bYuvSkip = "0"; +bIspBypass = "0"; +u32MaxW = "1920"; +u32MaxH = "1080"; +enPixFmt = "19"; +enCompressMode = "0"; +enBitWidth = "2"; +bNrEn = "1"; +enNrRefSource = "0"; +bSharpenEn = "1"; +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +bDiscardProPic = "0"; + +[vcap.pipe.1.chl.0] +out_width = "1920" +out_height = "1080" +enPixelFormat = "26"; +enDynamicRange = "0"; +enVideoFormat = "0"; +enCompressMode = "0"; +bMirror = "0" +bFlip = "0" +u32Depth = "0" +src_framerate = "30";FRAME_RATE_CTRL_S +dst_framerate = "30";FRAME_RATE_CTRL_S +; ============= Vprocessor Configure ============= +[vpss.0] +vportcnt = "2" +max_width = "1920" +max_height = "1080" +src_framerate = "30" +dst_framerate = "30" +pix_format = "26" +[vpss.0.vport.0] +enable = "1" +res_width = "1920" +res_height = "1080" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.vport.1] +enable = "1" +res_width = "1280" +res_height = "720" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.vport.2] +enable = "1" +res_width = "720" +res_height = "576" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +[vpss.0.extvport.0] +enable = "0" +res_width = "160" +res_height = "120" +src_framerate = "30" +dst_framerate = "30" +video_format = "0" +pix_format = "26" +compressMode = "0" +depth = "0" +mirror = "0" +flip = "0" +; ============= Vcoder Configure ============= +[venc] +venccnt ="4" +[venc.0] +res_width = "1920" +res_height = "1080" +bufsize = "1258290"; 1920*1080*3/4 bytes +gop = "30" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "10240"; kbps +h264bitrate = "12288" +stat_time = "2"; second +[venc.1] +res_width = "640" +res_height = "360" +bufsize = "230400"; 640*480*3/4 bytes +gop = "30" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "2048"; kbps +h264bitrate = "2048" +stat_time = "2"; second +[venc.2] +res_width = "1920" +res_height = "1080" +bufsize = "1258290"; +gop = "0" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "0"; kbps +h264bitrate = "0" +stat_time = "2"; second +[venc.3] +res_width = "320" +res_height = "180" +bufsize = "57600"; bytes +gop = "0" +src_framerate = "30" +dst_framerate = "30" +h265bitrate = "0"; Kbps +h264bitrate = "0" +stat_time = "2"; second diff --git a/interfaces/innerkits/native/include/camera.h b/interfaces/innerkits/native/include/camera.h new file mode 100644 index 0000000..f3cc50e --- /dev/null +++ b/interfaces/innerkits/native/include/camera.h @@ -0,0 +1,156 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_Camera + * @{ + * + * @brief Defines the Camera class for camera-related operations. + * + * @since 1.0 + * @version 1.0 + */ + +/** + * @file camera.h + * + * @brief Declares functions in the Camera class to implement camera + * operations. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_CAMERA_H +#define OHOS_CAMERA_H + +#include +#include + +#include "camera_config.h" +#include "frame_config.h" + +namespace OHOS { +namespace Media { +/** + * + * @brief Provides functions in the Camera class to implement camera operations. + * operations. + * + * + * @since 1.0 + * @version 1.0 + */ +class Camera { +public: + /** + * @brief A destructor used to delete the Camera instance. + * + */ + virtual ~Camera() = default; + + /** + * @brief Obtains the camera ID. + * + * @return Returns the camera ID if obtained; returns the "Error" string if + * the camera fails to be created. + */ + virtual std::string GetCameraId() + { + return std::string(); + } + + /** + * @brief Obtains the camera configuration. + * You can use the obtained CameraConfig object to configure the + * camera. + * @return Returns the pointer to the CameraConfig object if obtained; + * returns NULL otherwise. + */ + virtual const CameraConfig *GetCameraConfig() const + { + return nullptr; + } + + /** + * @brief Obtains the frame configuration. + * + * @param type Indicates the type of the frame configuration. + * @return Returns the pointer to the FrameConfig object if obtained; + * returns NULL otherwise. + */ + virtual FrameConfig *GetFrameConfig(int32_t type) + { + return nullptr; + } + + /** + * @brief Configures the camera using the CameraConfig object. + * + * @param config Indicates the pointer to the CameraConfig object. + */ + virtual void Configure(CameraConfig &config) {} + + /** + * @brief Triggers looping-frame capture. + * + * @param fc Indicates the frame configuration. + * @return Returns true if the looping-frame capture is successfully + * started; returns false otherwise. + */ + virtual int32_t TriggerLoopingCapture(FrameConfig &frameConfig) + { + return -1; + } + + /** + * @brief Stops looping-frame capture. + * + * @return Returns true if the looping-frame capture is successfully + * stopped; returns false otherwise. + */ + virtual void StopLoopingCapture() {} + + /** + * @brief Starts single-frame capture. The frame parameters are set through + * the FrameConfig object, and the captured image data is stored in the + * surface of the FrameConfig object. + * + * @param fc Indicates the frame configuration. + * @return Returns true if the single-frame capture is successfully + * started and the data is stored; returns false otherwise. + */ + virtual int32_t TriggerSingleCapture(FrameConfig &frameConfig) + { + return -1; + } + + /** + * @brief Releases the Camera object and associated resources. + * + */ + virtual void Release() {} + +protected: + /** + * @brief A constructor used to create a Camera instance. + * + */ + Camera() = default; +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_H diff --git a/interfaces/innerkits/native/include/camera_ability.h b/interfaces/innerkits/native/include/camera_ability.h new file mode 100644 index 0000000..88217c1 --- /dev/null +++ b/interfaces/innerkits/native/include/camera_ability.h @@ -0,0 +1,116 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_CameraAbility + * @{ + * + * @brief Defines the camera capability set for applications to achieve and access the capabilities. + * + * @since 1.0 + * @version 1.0 + */ + +/** + * @file camera_ability.h + * + * @brief Declares functions of the CameraAbility class. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_CAMERA_ABILITY_H +#define OHOS_CAMERA_ABILITY_H + +#include "media_log.h" +#include "meta_data.h" + +#include +#include +#include +#include + +namespace OHOS { +namespace Media { +/** + * @brief Declares functions of the CameraAbility class. + * + * + * @since 1.0 + * @version 1.0 + */ +class CameraAbility { +public: + /** + * @brief A constructor used to create a CameraAbility instance. + * + */ + CameraAbility(); + + /** + * @brief A destructor used to delete the CameraAbility instance. + * + */ + virtual ~CameraAbility(); + + /** + * @brief Obtains the supported image sizes for a specified image format. + * + * @return Returns the image size list if obtained; returns empty image list otherwise. + */ + std::list GetSupportedSizes() const; + + /** + * @brief Sets value ranges for a specified parameter. + * + * @param key Indicates the parameter key. + * @param rangeList Indicates the list of parameter value ranges. + * @return Returns SUCCESS if the setting is successful; returns FAIL otherwise. + */ + template int32_t SetParameterRange(uint32_t key, std::list rangeList) + { + if (IsParameterSupport(key)) { + SetSupportParameterRange(key, rangeList); + return MEDIA_OK; + } + return MEDIA_ERR; + } + + /** + * @brief Obtains the parameter value range based on a specified parameter key. + * + * @param key Indicates the parameter key. + * @return Returns the parameter value range if obtained; returns NULL otherwise. + */ + template std::list GetParameterRange(uint32_t key) const + { + if (supportProperties_.find(key) != supportProperties_.end()) { + return GetSupportParameterRange(key); + } + } + +private: + void SetSupportParameterRange(uint32_t key, std::list &rangeList); + std::list GetSupportParameterRange(uint32_t key) const; + bool IsParameterSupport(uint32_t key) const; + + std::map> sizeMap_; + std::set supportProperties_; +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_ABILITY_H diff --git a/interfaces/innerkits/native/include/camera_config.h b/interfaces/innerkits/native/include/camera_config.h new file mode 100644 index 0000000..3404587 --- /dev/null +++ b/interfaces/innerkits/native/include/camera_config.h @@ -0,0 +1,105 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_CameraConfig + * @{ + * + * @brief Defines the CameraConfig class for operations on camera configurations. + * + * @since 1.0 + * @version 1.0 + */ + +/** + * @file camera_config.h + * + * @brief Declares functions in the CameraConfig class. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_CAMERA_CONFIG_H +#define OHOS_CAMERA_CONFIG_H + +#include "event_handler.h" +#include "frame_state_callback.h" + +namespace OHOS { +namespace Media { +/** + * + * @brief Provides functions to configure camera parameters. + * + * + * @since 1.0 + * @version 1.0 + */ +class CameraConfig { +public: + /** + * @brief A destructor used to delete the CameraAbility instance. + * + */ + virtual ~CameraConfig() {} + + /** + * @brief Creates the CameraConfig instance of this singleton class to configure + * and read the required parameters. + * + * @return Returns the CameraConfig instance if created; returns NULL otherwise. + */ + static CameraConfig *CreateCameraConfig(); + + /** + * @brief Sets a frame state callback to responds to state changes. + * + * @param callback Indicates the frame state callback. + * @param handler Indicates the event handler. + */ + virtual void SetFrameStateCallback(const FrameStateCallback &callback, const EventHandler &handler) {} + + /** + * @brief Obtains the EventHandler object. + * + * @return Returns the pointer to the EventHandler object if obtained; returns NULL otherwise. + */ + virtual EventHandler *GetEventHandler() const + { + return nullptr; + } + + /** + * @brief Obtains a FrameStateCallback object. + * + * @return Returns the pointer to the FrameStateCallback object if obtained; returns NULL otherwise. + */ + virtual FrameStateCallback *GetFrameStateCb() const + { + return nullptr; + } + +protected: + /** + * @brief A constructor used to create a CameraConfig instance. + * + */ + CameraConfig() {} +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_CONFIG_H diff --git a/interfaces/innerkits/native/include/camera_device_callback.h b/interfaces/innerkits/native/include/camera_device_callback.h new file mode 100644 index 0000000..c70422c --- /dev/null +++ b/interfaces/innerkits/native/include/camera_device_callback.h @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_CameraDeviceCallback + * @{ + * + * @brief Defines the CameraDeviceCallback class to response to device changes. + * + * @since 1.0 + * @version 1.0 + */ + +/** + * @file camera_device_callback.h + * + * @brief Declares functions in the CameraDeviceCallback class to response to device changes. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_CAMERA_DEVICE_CALLBACK_H +#define OHOS_CAMERA_DEVICE_CALLBACK_H + +#include + +namespace OHOS { +namespace Media { +constexpr int32_t CAMERA_DEVICE_STATE_AVAILABLE = 0; +constexpr int32_t CAMERA_DEVICE_STATE_UNAVAILABLE = 1; +/** + * + * @brief Provides functions to response to device changes. + * + * + * @since 1.0 + * @version 1.0 + */ +class CameraDeviceCallback { +public: + /** + * @brief A constructor used to create a CameraDeviceCallback instance. + * + */ + CameraDeviceCallback() = default; + + /** + * @brief A destructor used to delete the CameraDeviceCallback instance. + * + */ + virtual ~CameraDeviceCallback() = default; + + /** + * @brief Called when the camera state changes. + * + * @param cameraId Indicates the camera ID. + * @param status Indicates the camera state. + */ + virtual void OnCameraStatus(const std::string cameraId, int32_t status) {} +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_DEVICE_CALLBACK_H \ No newline at end of file diff --git a/interfaces/innerkits/native/include/camera_kit.h b/interfaces/innerkits/native/include/camera_kit.h new file mode 100644 index 0000000..590357b --- /dev/null +++ b/interfaces/innerkits/native/include/camera_kit.h @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_CameraKit + * @{ + * + * @brief Defines the CameraKit class for using camera functionalities. + * @since 1.0 + * @version 1.0 + */ + +/** + * @file camera_kit.h + * + * @brief Declares functions in the CameraKit class. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_CAMERA_KIT_H +#define OHOS_CAMERA_KIT_H + +#include +#include + +#include "camera_ability.h" +#include "camera_device_callback.h" +#include "camera_state_callback.h" +#include "event_handler.h" + +namespace OHOS { +namespace Media { +/** + * + * @brief Provides functions in the CameraKit class. + * + * + * @since 1.0 + * @version 1.0 + */ +class CameraKit { +public: + /** + * @brief A destructor used to delete the CameraKit instance. + * + */ + ~CameraKit(); + /** + * @brief Obtains a single instance of the CameraKit. + * @return Returns the CameraKit instance if obtained; returns NULL otherwise. + */ + static CameraKit *GetInstance(); + + /** + * @brief Obtains IDs of cameras that are currently available. + * + * @return Returns the camera IDs if obtained; returns NULL otherwise. + */ + std::list GetCameraIds(); + + /** + * @brief Obtains the camera capability, including the resolutions and frame rates. + * + * @param cameraId Indicates the camera ID. + * @return Returns the CameraAbility object. + */ + const CameraAbility *GetCameraAbility(const std::string cameraId); + + /** + * @brief Registers a camera callback for camera status changes + * and an event callback to respond to a triggered event. + * + * @param callback Indicates the camera callback to register. + * @param handler Indicates the event callback to register. + */ + void RegisterCameraDeviceCallback(CameraDeviceCallback &callback, EventHandler &handler); + + /** + * @brief Unregisters a camera callback. + * + * @param callback Indicates the camera callback to unregister. + */ + void UnregisterCameraDeviceCallback(CameraDeviceCallback &callback); + + /** + * @brief Creates a camera object. + * + * @param cameraId Indicates the camera ID. + * @param callback Indicates the camera callback. + * @param handler Indicates the event callback to register. + */ + void CreateCamera(const std::string &cameraId, CameraStateCallback &callback, EventHandler &handler); + +private: + /** + * @brief A constructor used to create a CameraDeviceCallback instance. + * + */ + CameraKit(); +}; +} // namespace Media +} // namespace OHOS + +#endif // OHOS_CAMERA_KIT_H diff --git a/interfaces/innerkits/native/include/camera_state_callback.h b/interfaces/innerkits/native/include/camera_state_callback.h new file mode 100644 index 0000000..757497b --- /dev/null +++ b/interfaces/innerkits/native/include/camera_state_callback.h @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + /** + * @addtogroup MultiMedia_CameraStateCallback + * @{ + * + * @brief Provides callbacks for camera states to configure responses to the states. + * + * @since 1.0 + * @version 1.0 + */ + /** + * @file camera_state_callback.h + * + * @brief Declares functions in the CameraStateCallback class. + * + * @since 1.0 + * @version 1.0 + */ +#ifndef OHOS_CAMERA_STATE_CALLBACK_H +#define OHOS_CAMERA_STATE_CALLBACK_H + +#include +#include "camera.h" + +namespace OHOS { +namespace Media { +/** +* +* @brief Provides functions to response to camera states. +* +* @since 1.0 +* @version 1.0 +*/ +class CameraStateCallback { +public: + /** + * @brief A constructor used to create a CameraStateCallback instance. + * + */ + CameraStateCallback() = default; + /** + * @brief A destructor used to delete the CameraStateCallback instance. + * + */ + virtual ~CameraStateCallback() {} + /** + * @brief Called when the camera is successfully created. + * + * @param c Indicates the Camera object. + */ + virtual void OnCreated(const Camera &c) {} + /** + * @brief Called when the camera fails to be created. + * + * @param cameraId Indicates the camera ID. + * @param errorCode Indicates the error code. + */ + virtual void OnCreateFailed(const std::string cameraId, int32_t errorCode) {} + /** + * @brief Called when the camera is released. + * + * @param c Indicates the Camera object. + */ + virtual void OnReleased(const Camera &c) {} + /** + * @brief Called when the camera is configured. + * @param c camera Indicates the Camera object. + */ + virtual void OnConfigured(const Camera &c) {} + /** + * @brief Called when the camera fails to be configured. + * + * @param c Indicates the Camera object. + * @param errorCode Indicates the error code. + */ + virtual void OnConfigureFailed(const std::string cameraId, int32_t errorCode) {} +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_CAMERA_STATE_CALLBACK_H diff --git a/interfaces/innerkits/native/include/event_handler.h b/interfaces/innerkits/native/include/event_handler.h new file mode 100644 index 0000000..b82fa5f --- /dev/null +++ b/interfaces/innerkits/native/include/event_handler.h @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_EVENTHANDLER_H +#define OHOS_EVENTHANDLER_H + +#include +#include +#include +#include + +namespace OHOS { +namespace Media { +class EventHandler { +public: + EventHandler(); + virtual ~EventHandler(); + /* After construct the event handler, user should check whether the thread is running before post or + * destroy this handler */ + bool IsRunning(); + + template + void Post(const F &f) + { + auto task = new PostTask(f); + std::unique_lock lock(mtx_); + msgQ_.emplace(task); + cv_.notify_all(); + } + +private: + struct EventObj { + EventObj() = default; + virtual ~EventObj(){}; + virtual void Exec(){}; + }; + + std::queue msgQ_; + std::thread *hdlThrd_; + bool running_; + std::condition_variable cv_; + std::mutex mtx_; + + template + struct PostTask : public EventObj { + PostTask(const F &f) : f_(f) {} + const F f_; + void Exec() override + { + f_(); + } + }; + + static void EventDispatch(EventHandler *hdl); +}; +} // namespace Media +} // namespace OHOS + +#endif // OHOS_EVENTHANDLER_H diff --git a/interfaces/innerkits/native/include/frame_config.h b/interfaces/innerkits/native/include/frame_config.h new file mode 100644 index 0000000..22079a5 --- /dev/null +++ b/interfaces/innerkits/native/include/frame_config.h @@ -0,0 +1,142 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_FrameConfig + * @{ + * + * @brief Defines the FrameConfig class for operations related to frame + * configurations. + * + * @since 1.0 + * @version 1.0 + */ + +/** + * @file frame_config.h + * + * @brief Declares APIs of the FrameConfig class. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_FRAME_CONFIG_H +#define OHOS_FRAME_CONFIG_H + +#include "meta_data.h" +#include "surface.h" +#include +#include + +namespace OHOS { +namespace Media { +constexpr int32_t FRAME_CONFIG_PREVIEW = 0; +constexpr int32_t FRAME_CONFIG_RECORD = 1; +constexpr int32_t FRAME_CONFIG_CAPTURE = 2; +/** + * @brief Provides functions to configure frames. + * + * + * @since 1.0 + * @version 1.0 + */ +class FrameConfig { +public: + /** + * @brief A constructor used to create a FrameConfig instance. + * + */ + FrameConfig() = delete; + /** + * @brief A constructor used to create a FrameConfig instance based on the configuration mode. + * + * @param type Indicates the frame configuration mode, which can be FRAME_CONFIG_PREVIEW, + * @FRAME_CONFIG_RECORD, or FRAME_CONFIG_CAPTURE. + */ + FrameConfig(int32_t type); + + /** + * @brief A destructor used to delete the FrameConfig instance. + * + */ + ~FrameConfig() {} + + /** + * @brief Obtains the frame configuration type. + * + * @return Returns the frame configuration type if obtained; returns -1 + * otherwise. + */ + int32_t GetFrameConfigType(); + + /** + * @brief Obtains a list of shared memories (surface objects). + * + * @return Returns the list of shared memories if obtained; returns + * NULL otherwise. + * + */ + std::list GetSurfaces(); + + /** + * @brief Adds a surface (an object of shared memory). + * + * @param surface Indicates the surface to add. + */ + void AddSurface(Surface &surface); + + /** + * @brief Removes a surface (an object of shared memory). + * You can call this function to release the surface when your + * application does not need to obtain data. + * + * @param surface Indicates the surface to remove. + */ + void RemoveSurface(Surface &surface); + + /** + * @brief Sets the common parameter. + * @param key Indicates the common parameter key to set. + * @param value Indicates the common parameter value to set. + */ + template void SetParameter(uint32_t key, const T value) + { + SetValue(key, static_cast(&value)); + } + + /** + * @brief Obtains the value of a common parameter based on its key. For + * details, see {@link CAMERA_FUC_KEY}. + * @param key Indicates the common parameter key. + */ + template void GetParameter(uint32_t key, T &value) + { + T *pvalue = static_cast(GetValue(key)); + if (pvalue != nullptr) { + value = *pvalue; + } + } +private: + int32_t type_; + std::list surfaceList_; + std::map keyMap_; + void *GetValue(uint32_t key); + void SetValue(uint32_t key, const void *value); +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_FRAME_CONFIG_H diff --git a/interfaces/innerkits/native/include/frame_state_callback.h b/interfaces/innerkits/native/include/frame_state_callback.h new file mode 100644 index 0000000..27c5558 --- /dev/null +++ b/interfaces/innerkits/native/include/frame_state_callback.h @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup MultiMedia_FrameStateCallback + * @{ + * + * @brief Provides callbacks for frame state changes, in which you can implement operations to response to the changes. + * + * @since 1.0 + * @version 1.0 + */ + +/** + * @file camera_kit.h + * + * @brief Declares functions in the FrameStateCallback class. + * + * + * @since 1.0 + * @version 1.0 + */ + +#ifndef OHOS_FRAME_STATE_CALLBACK_H +#define OHOS_FRAME_STATE_CALLBACK_H + +namespace OHOS { +namespace Media { +class Camera; +class FrameConfig; +class FrameResult {}; +/** + * @brief Provides functions to listen for frame states and response to the state changes. + * + * + * @since 1.0 + * @version 1.0 + */ +class FrameStateCallback { +public: + /** + * @brief A constructor used to create a FrameStateCallback instance. + * + */ + FrameStateCallback() = default; + + /** + * @brief A destructor used to delete the FrameStateCallback instance. + * + */ + ~FrameStateCallback() = default; + + /** + * @brief Called when the frame capture is finished. + * + * @param camera Indicates the camera. + * @param frameConfig Indicates the frame configuration. + * @param frameResult Indicates the capture results. + */ + virtual void OnFrameFinished(const Camera &camera, + const FrameConfig &frameConfig, const FrameResult &frameResult) {} + + /** + * @brief Called when the frame capture fails. + * + * @param camera Indicates the camera. + * @param frameConfig Indicates the frame configuration. + * @param errorCode Indicates the error code. + * @param frameResult Indicates the capture results. + */ + virtual void OnFrameError(const Camera &camera, const FrameConfig &frameConfig, + int32_t errorCode, const FrameResult &frameResult) {} +}; +} // namespace Media +} // namespace OHOS +#endif // OHOS_FRAME_STATE_CALLBACK_H diff --git a/interfaces/innerkits/native/include/media_log.h b/interfaces/innerkits/native/include/media_log.h new file mode 100644 index 0000000..4596dd9 --- /dev/null +++ b/interfaces/innerkits/native/include/media_log.h @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_MEDIA_LOG_H +#define OHOS_MEDIA_LOG_H + +#include + +#include "hilog/log.h" + +#undef LOG_DOMAIN +#undef LOG_TAG +#define LOG_DOMAIN 0xD002B00 +#define LOG_TAG "MultiMedia" + +#define __FILENAME__ (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE__) + +#ifndef OHOS_DEBUG +#define DECORATOR_HILOG(op, fmt, args...) \ + do { \ + op(LOG_CORE, fmt, ##args); \ + } while (0) +#else +#define DECORATOR_HILOG(op, fmt, args...) \ + do { \ + op(LOG_CORE, "{%s()-%s:%d} " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##args); \ + } while (0) +#endif + +#define MEDIA_DEBUG_LOG(fmt, ...) DECORATOR_HILOG(HILOG_DEBUG, fmt, ##__VA_ARGS__) +#define MEDIA_ERR_LOG(fmt, ...) DECORATOR_HILOG(HILOG_ERROR, fmt, ##__VA_ARGS__) +#define MEDIA_WARNING_LOG(fmt, ...) DECORATOR_HILOG(HILOG_WARN, fmt, ##__VA_ARGS__) +#define MEDIA_INFO_LOG(fmt, ...) DECORATOR_HILOG(HILOG_INFO, fmt, ##__VA_ARGS__) +#define MEDIA_FATAL_LOG(fmt, ...) DECORATOR_HILOG(HILOG_FATAL, fmt, ##__VA_ARGS__) + +#define MEDIA_OK 0 +#define MEDIA_INVALID_PARAM (-1) +#define MEDIA_INIT_FAIL (-2) +#define MEDIA_ERR (-3) +#define MEDIA_PERMISSION_DENIED (-4) + +#endif // OHOS_MEDIA_LOG_H diff --git a/interfaces/innerkits/native/include/meta_data.h b/interfaces/innerkits/native/include/meta_data.h new file mode 100644 index 0000000..ba03058 --- /dev/null +++ b/interfaces/innerkits/native/include/meta_data.h @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OHOS_META_DATA_H +#define OHOS_META_DATA_H + +#include "stdint.h" + +#ifdef __cplusplus +#if __cplusplus +extern "C" { +#endif +#endif /* End of #ifdef __cplusplus */ + +typedef struct { + int32_t x; + int32_t y; + int32_t w; + int32_t h; +} CameraRect; + +typedef struct { + uint32_t width; + uint32_t height; +} CameraPicSize; + +typedef enum { + /* Frame rate */ + CAM_FRAME_FPS = 0, + /* Auto exposure mode */ + CAM_AE_MODE, + /* Auto exposure time */ + CAM_AE_EXPO_TIME, + /* Auto exposure compensation value */ + CAM_AE_COMPENSATION, + /* Auto exposure lock */ + CAM_AE_LOCK, + /* Auto exposure region */ + CAM_AE_REGIONS, + /* White balance mode */ + CAM_AWB_MODE, + /* White balance lock */ + CAM_AWB_LOCK, + /* White balance region */ + CAM_AWB_REGION, + /* Video stabilization feature */ + CAM_VIDEO_STABILIZATION_NABLE, + /* Image luminance */ + CAM_IMAGE_LUMA, + /* Image contrast */ + CAM_IMAGE_CONTRAST, + /* Image hue */ + CAM_IMAGE_HUE, + /* Image saturation */ + CAM_IMAGE_SATURATION, + /* Hot pixel correction */ + CAM_HOT_PIXEL_ENABLE, + /* Level of hot pixel correction */ + CAM_HOT_PIXEL_LEVEL, + /* Image denoising mode */ + CAM_IMAGE_DENOISE_MODE, + /* Image denoising level */ + CAM_IMAGE_DENOISE_LEVEL, +} CameraFuncKey; + +/** + @brief Enumerates parameters for image rotation and mirroring. + */ +typedef enum { + CAM_CENTER_MIRROR = 0, /**< Central mirroring */ + CAM_HORIZONTAL_MIRROR = 1, /**< Horizontal mirroring */ + CAM_VETICALLY_MIRROR = 2, /**< Vertical mirroring */ + CAM_ROTATION_90 = 3, /**< 90-degree rotation */ + CAM_ROTATION_180 = 4, /**< 180-degree rotation */ +} CameraInvertMode; + +#define PARAM_KEY_SIZE 0 +#define PARAM_KEY_IMAGE_ENCODE_QFACTOR 1 + +#define ENCODER_TYPE 0 +typedef enum { CAM_ENCODE_JPEG, CAM_ENCODE_H264, CAM_ENCODE_H265, CAM_ENCODE_FORMAT_BUTT } CameraEncodeFormat; + +#ifdef __cplusplus +#if __cplusplus +} +#endif +#endif /* End of #ifdef __cplusplus */ +#endif // OHOS_META_DATA_H \ No newline at end of file diff --git a/interfaces/innerkits/native/test/BUILD.gn b/interfaces/innerkits/native/test/BUILD.gn new file mode 100644 index 0000000..a21e760 --- /dev/null +++ b/interfaces/innerkits/native/test/BUILD.gn @@ -0,0 +1,46 @@ +# Copyright (C) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +ohos_executable("camera_sample") { + install_enable = false + sources = [ "camera_sample.cpp" ] + cflags = [ "-Wall" ] + cflags_cc = cflags + include_dirs = [ + "//base/hiviewdfx/hilog/interfaces/native/innerkits/include/", + "//drivers/peripheral/codec/interfaces/include", + "//drivers/peripheral/display/interfaces/include", + "//foundation/graphic/standard/frameworks/surface/include", + "//foundation/graphic/standard/interfaces/kits/surface", + "//foundation/graphic/standard/window_manager/include", + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera/include", + "//foundation/multimedia/camera_standard/interfaces/innerkits/native/include", + "//utils/native/base/include", + ] + + deps = [ + "//foundation/graphic/standard:libwms_client", + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera:camera", + "//utils/native/base:utils", + ] + + external_deps = [ + "ipc:ipc_core", + "multimedia_media_standard:recorder", + ] + + part_name = "multimedia_camera_standard" + subsystem_name = "multimedia" +} diff --git a/interfaces/innerkits/native/test/camera_sample.cpp b/interfaces/innerkits/native/test/camera_sample.cpp new file mode 100644 index 0000000..573d1b0 --- /dev/null +++ b/interfaces/innerkits/native/test/camera_sample.cpp @@ -0,0 +1,529 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "camera_kit.h" +#include "display_type.h" +#include "meta_data.h" +#include "recorder.h" +#include "window_manager.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; +using namespace OHOS; +using namespace OHOS::Media; +static void SampleSaveCapture(const char &buffer, uint32_t size) +{ + cout << "Start saving picture" << endl; + struct timeval tv = {}; + gettimeofday(&tv, nullptr); + struct tm *ltm = localtime(&tv.tv_sec); + if (ltm != nullptr) { + ostringstream ss("Capture_"); + ss << "Capture" << ltm->tm_hour << "-" << ltm->tm_min << "-" << ltm->tm_sec << ".jpg"; + + ofstream pic("/data/" + ss.str(), ofstream::out | ofstream::trunc); + cout << "write " << size << " bytes" << endl; + pic.write(&buffer, size); + cout << "Saving picture end" << endl; + pic.close(); + } +} + +class SampleRecorderCallback : public RecorderCallback { +public: + void OnError(int32_t errorType, int32_t errorCode) {} + void OnInfo(int32_t type, int32_t extra) {} + virtual ~SampleRecorderCallback() {} +}; + +class SampleFrameStateCallback : public FrameStateCallback { + void OnFrameFinished(const Camera &camera, const FrameConfig &fc, const FrameResult &result) override + { + cout << "Receive frame complete inform." << endl; + if (((FrameConfig &) fc).GetFrameConfigType() == FRAME_CONFIG_CAPTURE) { + cout << "Capture frame received." << endl; + list surfaceList = ((FrameConfig &) fc).GetSurfaces(); + for (Surface *surface : surfaceList) { + sptr buffer; + int32_t flushFence; + int64_t timestamp; + Rect damage; + SurfaceError ret = surface->AcquireBuffer(buffer, flushFence, timestamp, damage); + if (ret == SURFACE_ERROR_OK) { + char *virtAddr = static_cast(buffer->GetVirAddr()); + if (virtAddr != nullptr) { + int32_t bufferSize = stoi(surface->GetUserData("surface_buffer_size")); + SampleSaveCapture(*virtAddr, bufferSize); + } + surface->ReleaseBuffer(buffer, -1); + } + } + delete &fc; + } + } +}; + +class SampleCameraStateMng : public CameraStateCallback { +public: + SampleCameraStateMng() = delete; + explicit SampleCameraStateMng(EventHandler &eventHdlr) : eventHdlr_(eventHdlr) {} + ~SampleCameraStateMng() + { + CloseRecorder(); + if (cam_) { + cam_->Release(); + } + } + void OnCreated(const Camera &c) override + { + cout << "Sample recv OnCreate camera." << endl; + if (((Camera &)c).GetCameraConfig() == nullptr) { + CameraConfig *config = CameraConfig::CreateCameraConfig(); + config->SetFrameStateCallback(fsCb_, eventHdlr_); + ((Camera &)c).Configure(*config); + } + cam_ = (Camera *) &c; + } + void OnCreateFailed(const std::string cameraId, int32_t errorCode) override {} + void OnReleased(const Camera &c) override {} + + Recorder *SampleCreateRecorder() + { + int ret = 0; + int32_t sampleRate = 48000; + int32_t channelCount = 1; + AudioCodecFormat audioFormat = AAC_LC; + AudioSourceType inputSource = AUDIO_MIC; + int32_t audioEncodingBitRate = sampleRate; + VideoSourceType source = VIDEO_SOURCE_SURFACE_ES; + int32_t frameRate = 30; + double fps = 30; + int32_t rate = 4096; + int32_t sourceId = 0; + int32_t audioSourceId = 0; + int32_t width = 1920; + int32_t height = 1080; + VideoCodecFormat encoder = HEVC; + + Recorder *recorder = new Recorder(); + if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) { + cout << "SetVideoSource failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetVideoEncoder(sourceId, encoder)) != SUCCESS) { + cout << "SetVideoEncoder failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetOutputFormat(FORMAT_MPEG_4)) != SUCCESS) { + cout << "SetOutputFormat failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetVideoSize(sourceId, width, height)) != SUCCESS) { + cout << "SetVideoSize failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetVideoFrameRate(sourceId, frameRate)) != SUCCESS) { + cout << "SetVideoFrameRate failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetVideoEncodingBitRate(sourceId, rate)) != SUCCESS) { + cout << "SetVideoEncodingBitRate failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetCaptureRate(sourceId, fps)) != SUCCESS) { + cout << "SetCaptureRate failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetAudioSource(inputSource, audioSourceId)) != SUCCESS) { + cout << "SetAudioSource failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetAudioEncoder(audioSourceId, audioFormat)) != SUCCESS) { + cout << "SetAudioEncoder failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetAudioSampleRate(audioSourceId, sampleRate)) != SUCCESS) { + cout << "SetAudioSampleRate failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetAudioChannels(audioSourceId, channelCount)) != SUCCESS) { + cout << "SetAudioChannels failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetAudioEncodingBitRate(audioSourceId, audioEncodingBitRate)) != SUCCESS) { + cout << "SetAudioEncodingBitRate failed." << ret << endl; + delete recorder; + return nullptr; + } + if ((ret = recorder->SetMaxDuration(36000)) != SUCCESS) { // 36000s=10h + cout << "SetAudioEncodingBitRate failed." << ret << endl; + delete recorder; + return nullptr; + } + std::shared_ptr recCB = std::make_shared(); + if ((ret = recorder->SetRecorderCallback(recCB)) != SUCCESS) { + delete recorder; + return nullptr; + } + + return recorder; + } + + void CloseRecorder() + { + if (recorder_ != nullptr) { + recorder_->Stop(true); + delete recorder_; + recorder_ = nullptr; + } + } + + int PrepareRecorder() + { + if (cam_ == nullptr) { + cout << "Camera is not ready." << endl; + return -1; + } + if (recorder_ == nullptr) { + recorder_ = SampleCreateRecorder(); + } + if (recorder_ == nullptr) { + cout << "Recorder not available." << endl; + return -1; + } + return SUCCESS; + } + + void StartRecord() + { + if (recordState_ == STATE_RUNNING) { + cout << "Camera is already recording." << endl; + return; + } + int ret = PrepareRecorder(); + if (ret != SUCCESS) { + cout << "PrepareRecorder failed." << endl; + CloseRecorder(); + return; + } + const string path = "/data"; + ret = recorder_->SetOutputPath(path); + if (ret != SUCCESS) { + cout << "SetOutputPath failed. ret=" << ret << endl; + CloseRecorder(); + return; + } + ret = recorder_->Prepare(); + if (ret != SUCCESS) { + cout << "Prepare failed. ret=" << ret << endl; + CloseRecorder(); + return; + } + ret = recorder_->Start(); + if (ret != SUCCESS) { + cout << "recorder start failed. ret=" << ret << endl; + CloseRecorder(); + return; + } + FrameConfig *fc = new FrameConfig(FRAME_CONFIG_RECORD); + Surface *surface = (recorder_->GetSurface(0)).get(); + + int queueSize = 10; + int oneKilobytes = 1024; + int surfaceSize = oneKilobytes * oneKilobytes; + int usage = HBM_USE_CPU_READ | HBM_USE_CPU_WRITE | HBM_USE_MEM_DMA; + surface->SetUserData("surface_width", "1920"); + surface->SetUserData("surface_height", "1080"); + surface->SetQueueSize(queueSize); + surface->SetUserData("surface_size", to_string(surfaceSize)); + surface->SetUserData("surface_stride_Alignment", "8"); + surface->SetUserData("surface_format", to_string(PIXEL_FMT_RGBA_8888)); + surface->SetUserData("surface_usage", to_string(usage)); + surface->SetUserData("surface_timeout", "0"); + + fc->AddSurface(*surface); + ret = cam_->TriggerLoopingCapture(*fc); + if (ret != 0) { + delete fc; + CloseRecorder(); + cout << "camera start recording failed. ret=" << ret << endl; + return; + } + recordConfig = fc; + recordState_ = STATE_RUNNING; + cout << "camera start recording succeed." << endl; + } + + void StartPreview() + { + if (cam_ == nullptr) { + cout << "Camera is not ready." << endl; + return; + } + if (previewState_ == STATE_RUNNING) { + cout << "Camera is already previewing." << endl; + return; + } + + WindowConfig config; + memset_s(&config, sizeof(WindowConfig), 0, sizeof(WindowConfig)); + config.height = 480; + config.width = 480; + config.format = PIXEL_FMT_RGBA_8888; + config.pos_x = 0; + config.pos_y = 0; + + WindowConfig subConfig = config; + subConfig.type = WINDOW_TYPE_VIDEO; + + int queueSize = 10; + window = WindowManager::GetInstance()->CreateWindow(&config); + sptr buffer; + int32_t releaseFence; + BufferRequestConfig requestConfig; + window->GetRequestConfig(requestConfig); + SurfaceError error = window->GetSurface()->RequestBuffer(buffer, releaseFence, requestConfig); + if (error != SURFACE_ERROR_OK) { + cout << "camera request buffer fail, ret=" << error << endl; + return; + } + uint32_t buffSize = buffer->GetSize(); + void *bufferVirAddr = buffer->GetVirAddr(); + if (bufferVirAddr == nullptr) { + cout << "bufferVirAddr is nullptr"; + return; + } + memset_s(bufferVirAddr, buffSize, 0, buffSize); + BufferFlushConfig flushConfig = { + .damage = { + .x = 0, + .y = 0, + .w = requestConfig.width, + .h = requestConfig.height, + }, + .timestamp = 0, + }; + error = window->GetSurface()->FlushBuffer(buffer, -1, flushConfig); + if (error != SURFACE_ERROR_OK) { + cout << "camera flush buffer fail, ret=" << error << endl; + return; + } + + subWindow = WindowManager::GetInstance()->CreateSubWindow(window->GetWindowID(), &subConfig); + subWindow->GetSurface()->SetQueueSize(queueSize); + sptr consumerSurface = subWindow->GetSurface(); + consumerSurface->SetUserData("surface_stride_Alignment", "8"); + consumerSurface->SetUserData("surface_format", to_string(PIXEL_FMT_YCBCR_422_SP)); + consumerSurface->SetUserData("surface_width", "720"); + consumerSurface->SetUserData("surface_height", "480"); + consumerSurface->SetUserData("region_position_x", "0"); + consumerSurface->SetUserData("region_position_y", "0"); + consumerSurface->SetUserData("region_width", "720"); + consumerSurface->SetUserData("region_height", "480"); + + FrameConfig *fc = new FrameConfig(FRAME_CONFIG_PREVIEW); + fc->AddSurface(*consumerSurface); + int32_t ret = cam_->TriggerLoopingCapture(*fc); + if (ret != 0) { + delete fc; + cout << "camera start preview failed. ret=" << ret << endl; + return; + } + previewConfig = fc; + previewState_ = STATE_RUNNING; + cout << "camera start preview succeed." << endl; + } + + class SurfaceListener : public IBufferConsumerListener { + public: + void OnBufferAvailable() override + { + cout << "SurfaceListener OnBufferAvailable"; + } + }; + + void Capture() + { + if (cam_ == nullptr) { + cout << "Camera is not ready." << endl; + return; + } + FrameConfig *fc = new FrameConfig(FRAME_CONFIG_CAPTURE); + + captureConSurface = Surface::CreateSurfaceAsConsumer(); + if (captureConSurface == nullptr) { + delete fc; + cout << "CreateSurface failed" << endl; + return; + } + + sptr listener = new SurfaceListener(); + captureConSurface->RegisterConsumerListener(listener); + auto refSurface = captureConSurface; // to keep the reference count + + int usage = HBM_USE_CPU_READ | HBM_USE_CPU_WRITE | HBM_USE_MEM_DMA; + captureConSurface->SetUserData("surface_width", "1920"); + captureConSurface->SetUserData("surface_height", "1080"); + captureConSurface->SetUserData("surface_stride_Alignment", "8"); + captureConSurface->SetUserData("surface_format", to_string(PIXEL_FMT_RGBA_8888)); + captureConSurface->SetUserData("surface_usage", to_string(usage)); + captureConSurface->SetUserData("surface_timeout", "0"); + fc->AddSurface(*refSurface); + int32_t ret = cam_->TriggerSingleCapture(*fc); + if (ret != 0) { + cout << "TriggerSingleCapture failed" << endl; + delete fc; + } + } + + void Stop() + { + if (cam_ == nullptr) { + cout << "Camera is not ready." << endl; + return; + } + cam_->StopLoopingCapture(); + if (recordState_ == STATE_RUNNING) { + CloseRecorder(); + } + if (recordConfig) { + delete recordConfig; + recordConfig = nullptr; + } + if (previewConfig) { + delete previewConfig; + previewConfig = nullptr; + } + recordState_ = STATE_IDLE; + previewState_ = STATE_IDLE; + } + +private: + enum State : int32_t { STATE_IDLE, STATE_RUNNING, STATE_BUTT }; + State previewState_ = STATE_IDLE; + State recordState_ = STATE_IDLE; + EventHandler &eventHdlr_; + Camera *cam_ = nullptr; + Recorder *recorder_ = nullptr; + SampleFrameStateCallback fsCb_; + sptr captureConSurface; + std::unique_ptr window; + std::unique_ptr subWindow; + FrameConfig *recordConfig = nullptr; + FrameConfig *previewConfig = nullptr; +}; + +class SampleCameraDeviceCallback : public CameraDeviceCallback { +}; + +inline void SampleHelp() +{ + cout << "*******************************************" << endl; + cout << "Select the behavior of avrecorder." << endl; + cout << "1: Capture" << endl; + cout << "2: Record(Press s to stop)" << endl; + cout << "3: Preview(Press s to stop)" << endl; + cout << "q: quit the sample." << endl; + cout << "*******************************************" << endl; +} + +int main() +{ + cout << "Camera sample begin." << endl; + const int supportedPixWidth = 1920; + const int supportedPixHeight = 1080; + + SampleHelp(); + CameraKit *camKit = CameraKit::GetInstance(); + if (camKit == nullptr) { + cout << "Can not get CameraKit instance" << endl; + return 0; + } + list camList = camKit->GetCameraIds(); + string camId; + for (auto &cam : camList) { + cout << "camera name:" << cam << endl; + const CameraAbility *ability = camKit->GetCameraAbility(cam); + /* find camera which fits user's ability */ + list sizeList = ability->GetSupportedSizes(); + for (CameraPicSize picSize: sizeList) { + cout<< "\npicSize.width= "<< picSize.width; + cout<< "\npicSize.height= "<< picSize.height; + if ((picSize.width == supportedPixWidth) && + (picSize.height == supportedPixHeight)) { + cout << "\nGot the 1080p camera"; + camId = cam; + break; + } + } + } + + if (camId.empty()) { + cout << "No available camera.(1080p wanted)" << endl; + return 0; + } + + EventHandler eventHdlr; // Create a thread to handle callback events + SampleCameraStateMng camStateMng(eventHdlr); + + camKit->CreateCamera(camId, camStateMng, eventHdlr); + + char input; + while (cin >> input) { + switch (input) { + case '1': + camStateMng.Capture(); + break; + case '2': + camStateMng.StartRecord(); + break; + case '3': + camStateMng.StartPreview(); + break; + case 's': + camStateMng.Stop(); + break; + case 'q': + camStateMng.Stop(); + cout << "Camera sample end." << endl; + return 0; + default: + SampleHelp(); + break; + } + } +} diff --git a/ohos.build b/ohos.build new file mode 100644 index 0000000..074d752 --- /dev/null +++ b/ohos.build @@ -0,0 +1,40 @@ +{ + "subsystem": "multimedia", + "parts": { + "multimedia_camera_standard": { + "variants": [ + "phone" + ], + "module_list": [ + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera:camera", + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/prebuilts/etcs:cameradev.ini", + "//foundation/multimedia/camera_standard/interfaces/innerkits/native/test:camera_sample" + ], + "inner_kits": [ + { + "type": "none", + "name": "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera:camera", + "header": { + "header_files": [ + "camera.h", + "camera_ability.h", + "camera_config.h", + "camera_device_callback.h", + "camera_kit.h", + "camera_state_callback.h", + "event_handler.h", + "frame_config.h", + "frame_state_callback.h", + "meta_data.h", + "media_log.h" + ], + "header_base": "//foundation/multimedia/camera_standard/interfaces/innerkits/native/include" + } + } + ], + "test_list": [ + "//foundation/multimedia/camera_standard/frameworks/innerkitsimpl/camera/test:cameramoduletest" + ] + } + } +}