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
UpdateImage(void ** overlayData,void * pixelMap,void * config,ImageAnalyzerInnerConfig * uiConfig)43 void ImageAnalyzerMgr::UpdateImage(
44 void** overlayData, void* pixelMap, void* config, ImageAnalyzerInnerConfig* uiConfig)
45 {
46 }
47
UpdateConfig(void ** overlayData,void * config)48 void ImageAnalyzerMgr::UpdateConfig(void** overlayData, void* config)
49 {
50 }
51
UpdateInnerConfig(void ** overlayData,ImageAnalyzerInnerConfig * config)52 void ImageAnalyzerMgr::UpdateInnerConfig(void** overlayData, ImageAnalyzerInnerConfig* config)
53 {
54 }
55
Release(void ** overlayData)56 void ImageAnalyzerMgr::Release(void** overlayData)
57 {
58 }
59
UpdatePressOverlay(void ** overlayData,ImageAnalyzerInnerConfig * config)60 void ImageAnalyzerMgr::UpdatePressOverlay(void** overlayData, ImageAnalyzerInnerConfig* config)
61 {
62 }
63
UpdateOverlayStatus(void ** overlayData,ImageAnalyzerInnerConfig * config)64 void ImageAnalyzerMgr::UpdateOverlayStatus(void** overlayData, ImageAnalyzerInnerConfig* config)
65 {
66 }
67
UpdateOverlayActiveStatus(void ** overlayData,bool status)68 void ImageAnalyzerMgr::UpdateOverlayActiveStatus(void** overlayData, bool status)
69 {
70 }
71
UpdateAIButtonConfig(void ** overlayData,AIButtonConfig * config)72 void ImageAnalyzerMgr::UpdateAIButtonConfig(void** overlayData, AIButtonConfig* config)
73 {
74 }
75 }