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_ISP_CONTROLLER_H
17 #define HOS_CAMERA_ISP_CONTROLLER_H
18 
19 #include <map>
20 #include "icontroller.h"
21 #include "device_manager_adapter.h"
22 
23 namespace OHOS::Camera {
24 class IspController : public IController {
25 public:
26     IspController();
27     explicit IspController(std::string hardwareName);
28     virtual ~IspController();
29     RetCode Init();
30     RetCode Configure(std::shared_ptr<CameraMetadata> meta);
31     RetCode PowerUp();
32     RetCode PowerDown();
33     RetCode Stop();
34     RetCode Start();
SetAbilityMetaDataTag(std::vector<int32_t> abilityMetaDataTag)35     void SetAbilityMetaDataTag(std::vector<int32_t> abilityMetaDataTag)
36     {
37         (void)abilityMetaDataTag;
38         return;
39     }
GetAbilityMetaData(std::shared_ptr<CameraMetadata> meta)40     RetCode GetAbilityMetaData(std::shared_ptr<CameraMetadata> meta)
41     {
42         (void)meta;
43         return RC_OK;
44     }
45 private:
46     std::mutex startIsplock_;
47     bool startIspState_ = false;
48 };
49 } // namespace OHOS::Camera
50 #endif
51