hi_mpi_isp_set_dp_static_attr

Description

Sets the static defect pixel attribute, combines defect pixel tables, and writes the coordinates and number of defect pixels to the system memory.

Prototype

hi_s32 hi_mpi_isp_set_dp_static_attr(hi_vi_pipe vi_pipe, const hi_isp_dp_static_attr *dp_static_attr)

Constraints

The maximum number of static defect pixels supported by each ISP BE is HI_ISP_STATIC_DP_COUNT_NORMAL(HI_ISP_STATIC_DP_COUNT_NORMAL = 2048). Therefore, the maximum number of static defect pixels supported by the DPC module is calculated as follows: count = HI_ISP_STATIC_DP_COUNT_NORMAL x (Number of ISP BE blocks in the current service scenario). The number of bright pixels bright_countcount and the number of dark pixels dark_countcount. If some defect pixels in the bright pixel LUT are the same as those in the dark pixel LUT (same), then bright_count + dark_countsamecount. For the number of ISP BE blocks, see "block_num" in the ISP proc information.

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID

Value range: [0, 8)

dp_static_attr

Input

Attribute of the static defect pixel

Returns

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