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 automatic mode, the AWB calculates the AWB gains of the upper and lower color temperature limits based on the corrected color temperature curve to limit the gains of the R and B channels. In manual mode, when the color temperature is high, the AWB calls high_rg_limit and high_bg_limit to limit the gains of the R and B channels. When the color temperature is low, the AWB calls low_rg_limit and low_bg_limit to limit the gains of the R and B channels.
- 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