xref: /OK3568_Linux_fs/external/rockit/tgi/sdk/include/RTTaskNodeOptions.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright 2020 Rockchip Electronics Co. LTD
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  * author: rimon.xu@rock-chips.com
17  *   date: 20200410
18  * module: task node support options
19  */
20 
21 #ifndef SRC_RT_TASK_TASK_GRAPH_RTTASKNODEOPTIONS_H_
22 #define SRC_RT_TASK_TASK_GRAPH_RTTASKNODEOPTIONS_H_
23 
24 #include "rt_header.h"
25 #include "rt_metadata.h"
26 
27 typedef struct RTTaskNodeOption {
28     const char *cmd;
29     const char *name;
30     const char *detail;
31     INT32       offset;
32 
33     enum RtMetaData::Type type;
34 
35     /**
36      * the default value for scalar options
37      */
38     union {
39         INT32 i64;
40         double dbl;
41         const void *str;
42     } defaultVal;
43     double min;                 ///< minimum valid value for the option
44     double max;                 ///< maximum valid value for the option
45 } RTTaskNodeOption;
46 
47 #endif  // SRC_RT_TASK_TASK_GRAPH_RTTASKNODEOPTIONS_H_
48