hi_mpi_isp_set_fmw_state

Description

Sets the ISP firmware status.

Prototype

hi_s32 hi_mpi_isp_set_fmw_state(hi_vi_pipe vi_pipe, const hi_isp_fmw_state state)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID

Value range: [0, 8)

state

Input

ISP firmware status

  • When state is HI_ISP_FMW_STATE_FREEZE, some algorithms of the ISP firmware are frozen, and the sensor registers are not configured any more and their values before freezing are retained. The algorithms include the 3A algorithm, sharpen algorithm, dynamic range compression (DRC) algorithm, crosstalk removal algorithm, NR algorithm, dehazing algorithm, demosaic algorithm, black level algorithm, fixed pattern noise (FPN) removal algorithm, and WDR algorithm.
  • If state is HI_ISP_FMW_STATE_RUN, the ISP firmware runs properly.

Returns

  • 0: success
  • Other values: failure. For details, see Error Codes.