hi_isp_dp_dynamic_attr
Description
Defines the attribute for dynamic defect pixel correction.
Definition
typedef struct {
hi_bool enable;
hi_bool sup_twinkle_en;
hi_s8 soft_thr;
hi_u8 soft_slope;
hi_op_mode op_type;
hi_isp_dp_dynamic_manual_attr manual_attr;
hi_isp_dp_dynamic_auto_attr auto_attr;
} hi_isp_dp_dynamic_attr;
Members
Member |
Description |
|---|---|
enable |
Dynamic defect pixel correction enable
|
op_type |
Working mode of dynamic DPC
|
manual_attr |
Dynamic defect pixel correction parameter in manual mode. For details, see hi_isp_dp_dynamic_manual_attr. |
auto_attr |
Dynamic defect pixel correction parameter in automatic mode. For details, see hi_isp_dp_dynamic_auto_attr. |
sup_twinkle_en |
Twinkle suppression function enable
|
soft_thr |
Twinkle suppression threshold. A smaller value indicates more pixels to be processed and a blurrier image. Value range: [0, 127] |
soft_slope |
Correction controlling parameter of the pixels whose deviation is smaller than soft_thr. A larger value indicates more pixels to be corrected and a blurrier image. Value range: [0, 255] |
Restrictions
- The twinkle suppression function is associated with the strength parameter of hi_isp_dp_dynamic_auto_attr or hi_isp_dp_dynamic_manual_attr. If the values of soft_thr and soft_slope are inappropriate, when the value of strength is adjusted, the correction effect may change suddenly between certain levels of strength. Therefore, on the prerequisite that the configured values of soft_thr and soft_slope do not significantly affect the image definition, it is recommended that the value of strength be adjusted to obverse the DPC effect and twinkle suppression effect.
- If soft_slope is set to a too large value, the image will be blurred and side effects such as false color may occur. Therefore, soft_slope must be set to a value that does not obviously affect the definition of the image.