hi_mpi_rgn_set_display_attr
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
☓ |
|
|
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
Function Description
Sets the channel display attributes of a region. You are advised to obtain the attributes before setting them.
This API is not supported in the
Prototype
hi_s32 hi_mpi_rgn_set_display_attr(hi_rgn_handle handle, const hi_mpp_chn *chn, const hi_rgn_chn_attr *chn_attr)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
handle |
Input |
Region handle ID. Value range: [0, 1024) |
|
chn |
Input |
Pointer to the channel structure. The parameter cannot be null. For details about how to set this parameter, see Table 2. |
|
chn_attr |
Input |
Pointer to the channel display attributes of a region. The parameter cannot be empty. Static attributes cannot be modified, but dynamic attributes can be modified. |
Returns
- 0: success.
- Other values: failure. For details, see 19.18.5-Region Management Return Codes.
Restrictions
- The regions must be created before you call this API.
- Before calling this API, you must call the hi_mpi_rgn_attach_to_chn API to overlay the region on the channel.