vpc_sys_create_chn

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

√

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

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

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_vpc_sys_create_chn(hi_vpc_chn *chnl, const hi_vpc_chn_attr *attr);
    
  • Python Function
    1
    chnl, ret = acl.himpi.vpc_sys_create_chn(attr)
    

Parameters

Parameter

Description

attr

Dict, dictionary of the attributes of an image processing channel. For details, see hi_vpc_chn_attr. If attr is left empty, the error code HI_ERR_VPC_NULL_PTR is returned.

Return Values

Return Value

Description

chnl

Int, image processing channel ID. This API call outputs a channel ID to the user.

ret

Int, error code.