hi_isp_awb_ct_limit_attr
Description
Defines the WB gain range.
Definition
typedef struct {
hi_bool enable;
hi_op_mode op_type;
hi_u16 high_rg_limit;
hi_u16 high_bg_limit;
hi_u16 low_rg_limit;
hi_u16 low_bg_limit;
} hi_isp_awb_ct_limit_attr;
Members
Member |
Description |
|---|---|
enable |
WB gain range enable. The options are as follows:
|
op_type |
WB gain range configured in automatic or manual mode. The options are as follows:
|
high_rg_limit |
Maximum R gain at a high color temperature in manual mode (8-bit decimal precision). Value range: [0x0, 0xFFF] |
high_bg_limit |
Minimum B gain at a high color temperature in manual mode (8-bit decimal precision). Value range: [0x0, 0xFFF] |
low_rg_limit |
Minimum R gain at a low color temperature in manual mode (8-bit decimal precision). Value range: [0x0, high_rg_limit) |
low_bg_limit |
Maximum B gain at a low color temperature in manual mode (8-bit decimal precision). Value range: (high_bg_limit, 0xFFF] |
Restrictions
- hi_isp_awb_ct_limit_attr defines the action to be taken by the AWB when the ambient color temperature does not fall within the configured color temperature range. The related parameters take effect only when the AWB detects that the ambient color temperature is greater than the upper limit or less than the lower limit.
- The automatic mode or manual mode can be selected. In auto mode, the AWB module calculates the AWB gains at the maximum and minimum color temperatures based on the corrected color temperature curve to limit the gains of R and B channels. In manual mode, the AWB module configures the high_rg_limit and high_bg_limit parameters to limit the gains of R and B channels at a high color temperature, and configures the low_rg_limit and low_bg_limit parameters to limit the gains of R and B channels at a high color temperature.
- You are advised to determine the values of high_rg_limit, high_bg_limit, low_rg_limit, and low_bg_limit after determining the color temperature range during AWB color temperature curve correction. Rg is the horizontal coordinate of the Planckian curve, and Bg is the vertical coordinate of the Planckian curve.
Parent topic: Data Types