acl.himpi.venc_set_mod_param

C Prototype

hi_s32 hi_mpi_venc_set_mod_param(const hi_venc_mod_param *mod_param)

Python Function

ret = acl.himpi.venc_set_mod_param(mod_param)

Function Usage

Sets the encoding module parameters.

The Atlas 200/300/500 Inference Product does not support this API in the current version.

The Atlas Training Series Product does not support this API in the current version.

Input Description

mod_param: dict, dictionary of encoding module parameters. For details, see hi_venc_mod_param.

Return Value

ret: int, error code.

Restrictions

Ensure that this API is called before any channel is created. Otherwise, the error code HI_ERR_VENC_NOT_PERM is returned.

Before calling this API, it is recommended that the acl.himpi.venc_get_mod_param API be called to obtain the encoding module parameter settings of the current channel, and then set the parameters as required.