acl.himpi.vpc_create_chn

C Prototype

hi_s32 hi_mpi_vpc_create_chn(hi_vpc_chn chn, const hi_vpc_chn_attr *attr);

Python Function

ret = acl.himpi.vpc_create_chn(chn, attr)

Function Usage

Creates an image processing channel based on the configured channel attributes. The channel ID is specified by the user.

For the Atlas 200/300/500 Inference Product, this API is reserved in the current version.

For the Atlas Training Series Product, this API is reserved in the current version.

Input Description

chn: int, image processing channel ID.

attr: dict, dictionary of the attributes of an image processing channel. For details, see hi_vpc_chn_attr.

Return Value

ret: int, error code.

Restrictions

  • If attr is left empty, the error code HI_ERR_VPC_NULL_PTR is returned.
  • Before this API call, ensure that a channel has not been created yet or has been destroyed. Otherwise, a failure is returned.