1 /*
2  * Copyright (c) 2023-2023 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 OHOS_CAMERA_INPUT_IMPL_H
17 #define OHOS_CAMERA_INPUT_IMPL_H
18 
19 #include "kits/native/include/camera/camera.h"
20 #include "kits/native/include/camera/camera_input.h"
21 #include "input/camera_input.h"
22 
23 struct Camera_Input {
24 public:
25     explicit Camera_Input(OHOS::sptr<OHOS::CameraStandard::CameraInput> &innerCameraInput);
26     ~Camera_Input();
27 
28     Camera_ErrorCode RegisterCallback(CameraInput_Callbacks* callback);
29 
30     Camera_ErrorCode UnregisterCallback(CameraInput_Callbacks* callback);
31 
32     Camera_ErrorCode Open();
33 
34     Camera_ErrorCode OpenSecureCamera(uint64_t* secureSeqId);
35 
36     Camera_ErrorCode Close();
37 
38     Camera_ErrorCode Release();
39 
40     OHOS::sptr<OHOS::CameraStandard::CameraInput> GetInnerCameraInput();
41 
42 private:
43     OHOS::sptr<OHOS::CameraStandard::CameraInput> innerCameraInput_;
44 };
45 #endif // OHOS_CAMERA_INPUT_IMPL_H