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_METADATA_OUTPUT_IMPL_H
17 #define OHOS_METADATA_OUTPUT_IMPL_H
18 
19 #include "kits/native/include/camera/camera.h"
20 #include "kits/native/include/camera/metadata_output.h"
21 #include "output/metadata_output.h"
22 
23 struct Camera_MetadataOutput {
24 public:
25     explicit Camera_MetadataOutput(OHOS::sptr<OHOS::CameraStandard::MetadataOutput> &innerMetadataOutput);
26     ~Camera_MetadataOutput();
27 
28     Camera_ErrorCode RegisterCallback(MetadataOutput_Callbacks* callback);
29 
30     Camera_ErrorCode UnregisterCallback(MetadataOutput_Callbacks* callback);
31 
32     Camera_ErrorCode Start();
33 
34     Camera_ErrorCode Stop();
35 
36     Camera_ErrorCode Release();
37 
38     OHOS::sptr<OHOS::CameraStandard::MetadataOutput> GetInnerMetadataOutput();
39 
40 private:
41     OHOS::sptr<OHOS::CameraStandard::MetadataOutput> innerMetadataOutput_;
42 };
43 #endif // OHOS_METADATA_OUTPUT_IMPL_H
44