hi_isp_dp_static_attr

Description

Defines the attribute for static defect pixel correction.

Definition

typedef struct { 
    hi_bool enable;  
    hi_u16  bright_count;
    hi_u16  dark_count;      
    hi_u32  bright_table[HI_ISP_STATIC_DP_COUNT_MAX];     
    hi_u32  dark_table[HI_ISP_STATIC_DP_COUNT_MAX];     
    hi_bool show;
} hi_isp_dp_static_attr;

Members

Member

Description

enable

Static defect pixel correction enable

  • HI_FALSE: disabled
  • HI_TRUE: enabled

bright_count

When this member acts as the input, it indicates the number of bright defect pixels. When this member acts as the output, it indicates the total number of defect pixels.

The value range is related to the width configured for the VI pipe.

If the width range is [120, 3840], the value range of this member is [0, HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [3841, 7680], the value range of this member is [0, 2 x HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [7681, 11520], the value range of this member is [0, 3 x HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [11521, 15360], the value range of this member is [0, 4 x HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [15361, 16384], the value range of this member is [0, 5 x HI_ISP_STATIC_DP_COUNT_NORMAL].

#define HI_ISP_STATIC_DP_COUNT_NORMAL         2048

dark_count

When this member acts as the input, it indicates the number of dark defect pixels. When this member acts as the output, it is invalid.

The value range is related to the width configured for the VI pipe.

If the width range is [120, 3840], the value range of this member is [0, HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [3841, 7680], the value range of this member is [0, 2 x HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [7681, 11520], the value range of this member is [0, 3 x HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [11521, 15360], the value range of this member is [0, 4 x HI_ISP_STATIC_DP_COUNT_NORMAL].

If the width range is [15361, 16384], the value range of this member is [0, 5 x HI_ISP_STATIC_DP_COUNT_NORMAL].

bright_table [HI_ISP_STATIC_

DP_COUNT_MA

X]

Coordinates of bright defect pixels. Only the lower 29 bits are valid. Bit[12:0] indicate the horizontal coordinates of defect pixels, and bit[28:16] indicate the vertical coordinates of defect pixels.

When this member acts as the input, it indicates the coordinate lookup table for bright defect pixels. When this member acts as the output, it indicates the coordinate lookup table for all defect pixels.

Value range: [0, 0x1FFF1FFF]

The valid length of the array is related to the width configured for the VI pipe.

If the width range is [120, 3840], the valid length is HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [3841, 7680], the valid length is 2 x HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [7681, 11520], the valid length is 3 x HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [11521, 15360], the valid length is 4 x HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [15361, 16384], the valid length is 5 x HI_ISP_STATIC_DP_COUNT_NORMAL.

#define HI_ISP_STATIC_DP_COUNT_NORMAL         2048
#define HI_ISP_STRIPING_MAX_NUM               5
#define HI_ISP_STATIC_DP_COUNT_MAX            (HI_ISP_STATIC_DP_COUNT_NORMAL * HI_ISP_STRIPING_MAX_NUM)

dark_table [HI_ISP_STATIC_

DP_COUNT_MA

X]

Coordinates of dark defect pixels. Only the lower 29 bits are valid. Bit[12:0] indicate the horizontal coordinates of defect pixels, and bit[28:16] indicate the vertical coordinates of defect pixels.

When this member acts as the input, it indicates the coordinate lookup table for dark defect pixels. When this member acts as the output, it is invalid.

Value range: [0, 0x1FFF1FFF]

The valid length of the array is related to the width configured for the VI pipe.

If the width range is [120, 3840], the valid length is HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [3841, 7680], the valid length is 2 x HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [7681, 11520], the valid length is 3 x HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [11521, 15360], the valid length is 4 x HI_ISP_STATIC_DP_COUNT_NORMAL.

If the width range is [15361, 16384], the valid length is 5 x HI_ISP_STATIC_DP_COUNT_NORMAL.

show

Static defect pixel display enable

  • HI_FALSE: disabled
  • HI_TRUE: enabled

Restrictions

  • enable_detect, show, and enable are mutually exclusive, and their priorities are in progressive descending order.