hi_mpi_vpc_sys_create_chn

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

☓

Function

Creates an image processing channel based on the configured channel attributes. The system returns an available channel ID to the user.

Prototype

hi_s32 hi_mpi_vpc_sys_create_chn(hi_vpc_chn *chnl, const hi_vpc_chn_attr *attr)

Parameters

Parameter

Input/Output

Description

chnl

Output

Pointer to the channel ID for image processing. After this API is called, an available channel ID is returned to the user.

Ascend 950PR/Ascend 950DT: The value range of this parameter is [0, 256). The maximum number of channels is 256.

Atlas A3 training products/Atlas A3 inference products: The value range of this parameter is [0, 256). The maximum number of channels is 256.

Atlas A2 training products/Atlas A2 inference products: The value range of this parameter is [0, 256). The maximum number of channels is 256.

Atlas 200I/500 A2 inference products: The value range of this parameter is [0, 128). The maximum number of channels is 128.

Atlas inference products: The value range of this parameter is [0, 256). The maximum number of channels is 256.

attr

Input

Pointer to the attributes of an image processing channel.

If attr is NULL, the error code HI_ERR_VPC_NULL_PTR is returned.

Returns