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 AIE_CLIENT_CONST_H 17 #define AIE_CLIENT_CONST_H 18 19 #include <string> 20 21 #include "protocol/plugin_config/aie_algorithm_type.h" 22 23 /** 24 * ConfigInfo 25 */ 26 const char * const CONFIG_DESCRIPTION = "Config information"; 27 28 /** 29 * ClientInfo 30 */ 31 const int CLIENT_VERSION_VALID = 1; 32 const int CLIENT_VERSION_INVALID = 2; 33 const int CLIENT_ID_INIT = -1; 34 const int SESSION_ID_INIT = -1; 35 const char * const CLIENT_EXTEND_MSG = "Client extend message"; 36 37 /** 38 * AlgorithmInfo 39 */ 40 // 0, sync demo plugin defined in aie_algorithm_type.h 41 const int ALGORITHM_TYPE_SYNC = OHOS::AI::ALGORITHM_TYPE_SAMPLE_PLUGIN_1; 42 // 1, async demo plugin defined in aie_algorithm_type.h 43 const int ALGORITHM_TYPE_ASYNC = OHOS::AI::ALGORITHM_TYPE_SAMPLE_PLUGIN_2; 44 const int ALGORITHM_TYPE_INVALID = 66; 45 const int ALGORITHM_VERSION_VALID = 1; 46 const char * const ALGORITHM_EXTEND_MSG = "Algorithm extend message"; 47 48 /** 49 * DataInfo 50 */ 51 const char * const DATA_INFO_DEFAULT = "Default data info"; 52 const char * const INPUT_INFO_PREPARE = "Prepare input data"; 53 const char * const INPUT_INFO_SYNC_PROCESS = "Sync process input data"; 54 const char * const INPUT_INFO_ASYNC_PROCESS = "Async process input data"; 55 const char * const INPUT_INFO_RELEASE = "Release input data"; 56 const char * const INPUT_INFO_SET_OPTION = "Set option input data"; 57 const char * const INPUT_INFO_GET_OPTION = "Get option input data"; 58 59 /** 60 * Consts for Performance Test of AieClient 61 */ 62 const int EXECUTE_TIMES = 100; 63 const std::string INTERFACE_GROUP_TAG = "AieClient"; 64 const std::string AIE_CLIENT_PERF_RESULT_FILEPATH = "AieClientPerformanceTest.txt"; 65 const std::string AIE_CLIENT_PERF_RESULT_FILEPATH_BAK = "AieClientPerformanceTestBak.txt"; 66 const bool isSavePerfResult = true; 67 68 #endif // AIE_CLIENT_CONST_H