48 lines
1.4 KiB
C
Raw Normal View History

2025-05-10 21:49:39 +08:00
/*
* Copyright 2020 Rockchip Electronics Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* author: rimon.xu@rock-chips.com
* date: 20200410
* module: task node support options
*/
#ifndef SRC_RT_TASK_TASK_GRAPH_RTTASKNODEOPTIONS_H_
#define SRC_RT_TASK_TASK_GRAPH_RTTASKNODEOPTIONS_H_
#include "rt_header.h"
#include "rt_metadata.h"
typedef struct RTTaskNodeOption {
const char *cmd;
const char *name;
const char *detail;
INT32 offset;
enum RtMetaData::Type type;
/**
* the default value for scalar options
*/
union {
INT32 i64;
double dbl;
const void *str;
} defaultVal;
double min; ///< minimum valid value for the option
double max; ///< maximum valid value for the option
} RTTaskNodeOption;
#endif // SRC_RT_TASK_TASK_GRAPH_RTTASKNODEOPTIONS_H_