hi_mpi_aenc_create_chn

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Creates an AENC channel.

If the channel has been created, an error code indicating that the channel has been created is returned.

Prototype

hi_s32 hi_mpi_aenc_create_chn(hi_aenc_chn aenc_chn, const hi_aenc_chn_attr *attr)

Parameters

Parameter

Input/Output

Description

aenc_chn

Input

Channel ID. The value range is [0, 6).

attr

Input

Pointer to the AENC channel attributes.

Returns