1 /*
2 * Copyright (c) 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 #define NAPI_VERSION 8
17
18 #include "core/common/ai/image_analyzer_mgr.h"
19 #include "core/common/ai/image_analyzer_default.h"
20
21 namespace OHOS::Ace {
22
GetInstance()23 ImageAnalyzerMgr& ImageAnalyzerMgr::GetInstance()
24 {
25 static ImageAnalyzerMgr instance;
26 return instance;
27 }
28
ImageAnalyzerMgr()29 ImageAnalyzerMgr::ImageAnalyzerMgr()
30 {
31 }
32
IsImageAnalyzerSupported()33 bool ImageAnalyzerMgr::IsImageAnalyzerSupported()
34 {
35 return false;
36 }
37
BuildNodeFunc( void* pixelMap, void* config, ImageAnalyzerInnerConfig* uiConfig, void** overlayData)38 void ImageAnalyzerMgr::BuildNodeFunc(
39 void* pixelMap, void* config, ImageAnalyzerInnerConfig* uiConfig, void** overlayData)
40 {
41 }
42
BuildNodeFunc(std::string uri, void* pixelMap, int frameTimestamp, void* config, ImageAnalyzerInnerConfig* uiConfig, void** overlayData)43 void ImageAnalyzerMgr::BuildNodeFunc(std::string uri, void* pixelMap, int frameTimestamp,
44 void* config, ImageAnalyzerInnerConfig* uiConfig, void** overlayData)
45 {
46 }
47
UpdateImage( void** overlayData, void* pixelMap, void* config, ImageAnalyzerInnerConfig* uiConfig)48 void ImageAnalyzerMgr::UpdateImage(
49 void** overlayData, void* pixelMap, void* config, ImageAnalyzerInnerConfig* uiConfig)
50 {
51 }
52
UpdateImage(void** overlayData, std::string uri, void* pixelMap, int frameTimestamp, void* config, ImageAnalyzerInnerConfig* uiConfig)53 void ImageAnalyzerMgr::UpdateImage(void** overlayData, std::string uri, void* pixelMap,
54 int frameTimestamp, void* config, ImageAnalyzerInnerConfig* uiConfig)
55 {
56 }
57
UpdateConfig(void** overlayData, void* config)58 void ImageAnalyzerMgr::UpdateConfig(void** overlayData, void* config)
59 {
60 }
61
UpdateInnerConfig(void** overlayData, ImageAnalyzerInnerConfig* config)62 void ImageAnalyzerMgr::UpdateInnerConfig(void** overlayData, ImageAnalyzerInnerConfig* config)
63 {
64 }
65
Release(void** overlayData)66 void ImageAnalyzerMgr::Release(void** overlayData)
67 {
68 }
69
UpdatePressOverlay(void** overlayData, ImageAnalyzerInnerConfig* config)70 void ImageAnalyzerMgr::UpdatePressOverlay(void** overlayData, ImageAnalyzerInnerConfig* config)
71 {
72 }
73
UpdateOverlayStatus(void** overlayData, ImageAnalyzerInnerConfig* config)74 void ImageAnalyzerMgr::UpdateOverlayStatus(void** overlayData, ImageAnalyzerInnerConfig* config)
75 {
76 }
77
UpdateOverlayActiveStatus(void** overlayData, bool status)78 void ImageAnalyzerMgr::UpdateOverlayActiveStatus(void** overlayData, bool status)
79 {
80 }
81
UpdateAIButtonConfig(void** overlayData, AIButtonConfig* config)82 void ImageAnalyzerMgr::UpdateAIButtonConfig(void** overlayData, AIButtonConfig* config)
83 {
84 }
85 }