hi_mpi_vdec_create_chn

Description

Creates a decoding channel based on the configured channel attributes.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

Restrictions

Prototype

hi_s32 hi_mpi_vdec_create_chn(hi_vdec_chn chn, const hi_vdec_chn_attr *attr)

Parameters

Parameter

Input/Output

Description

chn

Input

Decoding channel ID.

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

attr

Input

Pointer to the decoding channel attributes.

If attr is left empty, the error code HI_ERR_VDEC_NULL_PTR is returned.

When a setting in the channel attributes pointed by attr exceeds the decoding capability set, the error code HI_ERR_VDEC_ILLEGAL_PARAM is returned.

Returns

See Also

For the API call sequence, see JPEGD and VDEC.