hi_mpi_isp_set_fpn_attr

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

×

Atlas A3 training products/Atlas A3 inference products

×

Atlas A2 training products/Atlas A2 inference products

×

Atlas 200I/500 A2 inference products

√

Atlas inference products

×

Atlas training products

×

Description

Sets the FPN removal attribute.

Prototype

hi_s32 hi_mpi_isp_set_fpn_attr(hi_vi_pipe vi_pipe, const hi_isp_fpn_attr *fpn_attr)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID

Value range: [0, 12)

fpn_attr

Input

Pointer to the FPN removal attribute

Returns

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

Constraints

  • Correction in block mode is not supported.
  • FPN correction is not supported in WDR mode.
  • FPN correction is not supported in compression mode and can be performed only in non-compressed mode.
  • The minimum resolution of the black frame for correction is 120 × 120, and the maximum resolution is 4096 × 4096.
  • During correction, you need to enter the black frame information, offset, and ISO saved during calibration.
  • During calibration, hi_mpi_vi_pipe_get_buffer needs to be called to apply for memory. The length of the applied memory cannot be less than the length of the black frame saved during calibration.