ee77bf65f9e72d01ebf2334994fb37b48d2b32eb
[platform/core/api/mediavision.git] / mv_machine_learning / inference / include / DimInfo.h
1 /**
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __DIM_INFO_H__
18 #define __DIM_INFO_H__
19
20 #include <vector>
21 #include <dlog.h>
22
23 namespace mediavision
24 {
25 namespace inference
26 {
27 struct DimInfo {
28         std::vector<int> dims;
29
30         std::vector<int> GetValidIndexAll() const
31         {
32                 LOGI("ENTER");
33
34                 LOGI("LEAVE");
35                 return dims;
36         }
37
38         void SetValidIndex(int index)
39         {
40                 LOGI("ENTER");
41
42                 dims.push_back(index);
43
44                 LOGI("LEAVE");
45         }
46 };
47 } /* Inference */
48 } /* MediaVision */
49
50 #endif