1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef HOS_CAMERA_VPSS_CONTROLLER_H 17 #define HOS_CAMERA_VPSS_CONTROLLER_H 18 19 #include "icontroller.h" 20 #include "ivpss_object.h" 21 #include "device_manager_adapter.h" 22 #include "mpi_adapter.h" 23 24 namespace OHOS { 25 namespace Camera { 26 class VpssController : public IController { 27 public: 28 VpssController(); 29 explicit VpssController(std::string hardwareName); 30 virtual ~VpssController(); 31 RetCode Init(); GetStartVpssState()32 bool GetStartVpssState() 33 { 34 return startVpssState_; 35 } 36 RetCode PowerUp(CameraId cameraId); 37 RetCode PowerDown(CameraId cameraId); 38 RetCode ConfigVpss(); 39 RetCode StartVpss(); 40 RetCode StopVpss(); SetAbilityMetaDataTag(std::vector<int32_t> abilityMetaDataTag)41 void SetAbilityMetaDataTag(std::vector<int32_t> abilityMetaDataTag) 42 { 43 (void)abilityMetaDataTag; 44 return; 45 } Configure(std::shared_ptr<CameraMetadata> meta)46 RetCode Configure(std::shared_ptr<CameraMetadata> meta) 47 { 48 (void)meta; 49 return RC_OK; 50 } GetMetaDataFlag()51 bool GetMetaDataFlag() 52 { 53 return false; 54 } GetAbilityMetaData(std::shared_ptr<CameraMetadata> camMeta)55 RetCode GetAbilityMetaData(std::shared_ptr<CameraMetadata> camMeta) 56 { 57 (void)camMeta; 58 return RC_OK; 59 } SetMetaDataFlag(bool metaDataFlag)60 void SetMetaDataFlag(bool metaDataFlag) 61 { 62 (void)metaDataFlag; 63 return; 64 } 65 66 private: 67 std::shared_ptr<IVpssObject> vpssObject_ = nullptr; 68 std::mutex startVpsslock_; 69 bool startVpssState_ = false; 70 }; 71 } // namespace Camera 72 } // namespace OHOS 73 #endif