hi_isp_nr_attr

Description

Defines the ISP NR attribute.

Definition

typedef struct {
    hi_bool  enable;

    hi_bool  nr_lsc_enable;

    hi_u8    bnr_lsc_max_gain;
    hi_u16   bnr_lsc_cmp_strength;
    hi_u16   coring_ratio[HI_ISP_BAYERNR_LUT_LENGTH];
    hi_op_mode op_type;
    hi_isp_nr_auto_attr auto_attr;
    hi_isp_nr_manual_attr manual_attr;
    hi_isp_nr_wdr_attr  wdr_attr;
} hi_isp_nr_attr;

Members

Member

Description

enable

NR module enable.

The options are as follows:

  • HI_FALSE: disabled
  • HI_TRUE: enabled

nr_lsc_enable

LSC gain-referenced NR enable. The LSC gain-referenced NR function can be used when the LSC module is enabled. When the LSC module is disabled, LSC gain-referenced NR does not take effect.

The options are as follows:

  • HI_FALSE: disabled
  • HI_TRUE: enabled

bnr_lsc_max_gain

Maximum multiple of reference to the LSC gain

Value range: [0x0, 0xBF]

bnr_lsc_cmp_strength

Strength of reference to the LSC gain

Value range: [0x0, 0x100]

coring_ratio[HI_ISP_BAYERNR_LUT_LENGTH]

Noise reservation strength, which can be obtained from the coring_ratio array based on the luminance. A larger value indicates that more luminance noise is reserved. A smaller value indicates that less luminance noise is reserved.

Value range: [0x0, 0x3FF]

#define HI_ISP_BAYERNR_LUT_LENGTH       33

op_type

NR working mode.

  • HI_OP_MODE_AUTO: automatic
  • HI_OP_MODE_MANUAL: manual

auto_attr

Automatic NR attribute

manual_attr

Manual NR attribute

wdr_attr

NR attribute in WDR mode.

In WDR mode, the overall NR parameter wdr_attr takes effect.