2 * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "ml_instance.h"
19 #include "common/logger.h"
20 #include "common/picojson.h"
25 using namespace common;
27 MlInstance::MlInstance() {
29 using namespace std::placeholders;
31 #define REGISTER_METHOD(M) RegisterSyncHandler(#M, std::bind(&MlInstance::M, this, _1, _2))
33 // Common ML API begin
45 #undef REGISTER_METHOD
48 MlInstance::~MlInstance() {
52 // Common ML API begin
61 // PipelineManager::createPipeline() begin
63 // PipelineManager::createPipeline() end
65 // Pipeline::state begin
67 // Pipeline::state end
69 // Pipeline::start() begin
71 // Pipeline::start() end
73 // Pipeline::stop() begin
75 // Pipeline::stop() end
77 // Pipeline::dispose() begin
79 // Pipeline::dispose() end
81 // Pipeline::getNodeInfo() begin
83 // Pipeline::getNodeInfo() end
85 // Pipeline::getSource() begin
87 // Pipeline::getSource() end
89 // Pipeline::getSwitch() begin
91 // Pipeline::getSwitch() end
93 // Pipeline::getValve() begin
95 // Pipeline::getValve() end
97 // Pipeline::registerSinkCallback() begin
99 // Pipeline::registerSinkCallback() end
101 // Pipeline::unregisterSinkCallback() begin
103 // Pipeline::unregisterSinkCallback() end
105 // Pipeline::registerCustomFilter() begin
107 // Pipeline::registerCustomFilter() end
109 // Pipeline::unregisterCustomFilter() begin
111 // Pipeline::unregisterCustomFilter() end
113 // NodeInfo::getProperty() begin
115 // NodeInfo::getProperty() end
117 // NodeInfo::setProperty() begin
119 // NodeInfo::setProperty() end
121 // Source::inputTensorsInfo begin
123 // Source::inputTensorsInfo end
125 // Source::inputData() begin
127 // Source::inputData() end
129 // Switch::getPadList() begin
131 // Switch::getPadList() end
133 // Valve::setOpen() begin
135 // Valve::setOpen() end
139 } // namespace extension