hi_mpi_isp_set_dp_static_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 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 × Number of ISP BE blocks in the current service scenario. The number of bright pixels bright_count ≤ count and the number of dark pixels dark_count ≤ count. If some defect pixels in the bright pixel LUT are the same as those in the dark pixel LUT (same), then bright_count + dark_count – same ≤ count. 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, 12)

dp_static_attr

Input

Attribute of the static defect pixel

Returns

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