hi_mpi_sys_bind
The Ascend 310 AI Processor does not support this API.
The Ascend 910 AI Processor does not support this API.
Description
Establishes the association between a data receiver and a data source. A data receiver can be bound to only one data source. After the binding, the data generated by the data source is automatically sent to the receiver.
Restrictions
- Currently, the following binding relationships between data sources and data receivers are supported:
Data Source
Data Receiver
Description
VI
VPSS
VPSS group ID range: [256, 268)
VDEC
VPSS
VPSS group ID range: [0, 256)
VPSS
VO
VPSS group ID range: [0, 256)
ADEC
AO
-
AI
AENC
-
- Except for the following scenarios where the device ID or channel ID can be set to 0, set the device ID or channel ID based on the actual situation.
- As the data source, the VI and VDEC use the channel as the sender to transmit data to other modules. If src_chn.dev_id is set to 0, the SDK does not check the input device ID.
- When the VPSS functions as the data receiver, the device (GROUP) is used as the receiver to receive data from other modules. In this case, set dst_chn.chn_id to 0.
Prototype
hi_s32 hi_mpi_sys_bind(const hi_mpp_chn *src_chn, const hi_mpp_chn *dest_chn)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
src_chn |
Input |
Pointer to the source channel. |
dest_chn |
Input |
Pointer to the destination channel. |
Returns
- 0: success
- Other values: failure. For details, see Common Return Codes.
Parent topic: Common APIs