Macro: HIAI_DEFINE_PROCESS
You can directly call the number of input and output ports of the engine in the macro definition. This macro is defined in engine.h.
This macro encapsulates the following function:
HIAI_StatusT Engine::InitQueue(const uint32_t& in_port_num, const uint32_t& out_port_num);
Related macro:
This macro is called before HIAI_IMPL_ENGINE_PROCESS(name, engineClass, inPortNum).
Syntax
HIAI_DEFINE_PROCESS (inputPortNum, outputPortNum)
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
inputPortNum |
Number of input ports of an engine |
- |
outputPortNum |
Number of output ports of an engine |
- |
Calling Example
#define FRAMEWORK_ENGINE_INPUT_SIZE 1 #define FRAMEWORK_ENGINE_OUTPUT_SIZE 1 * @[in]: Defines an input port and an output port. */ HIAI_DEFINE_PROCESS(FRAMEWORK_ENGINE_INPUT_SIZE, FRAMEWORK_ENGINE_OUTPUT_SIZE)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot