hi_mpi_venc_set_mod_param

The Atlas 200/300/500 Inference Product does not support this API.

The Ascend 910 AI Processor does not support this API.

Description

Sets the the encoding module parameters.

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 users call the hi_mpi_venc_get_mod_param API to obtain the encoding module parameter settings of the current channel, and then set the parameters as required.
  • This API is set at the global level. In the multi-process scenario:
    • After this API is called in a process to set parameters, the parameters take effect in other processes.
    • If process B calls hi_mpi_venc_set_mod_param after process A creates a channel, process B returns an error, indicating that the setting is invalid. However, process B continues encoding based on the default value or the parameter value that is successfully set in other processes. In this case, if process B is required to call the hi_mpi_venc_set_mod_param API to adjust parameter values, the channels in other processes must be destroyed first.

Prototype

hi_s32 hi_mpi_venc_set_mod_param(const hi_venc_mod_param *mod_param)

Parameters

Parameter

Input/Output

Description

mod_param

Input

Pointer to the encoding module parameters.

Returns