计算特定色温下的白平衡增益系数。
hi_s32 hi_mpi_isp_cal_gain_by_temp(hi_vi_pipe vi_pipe, const hi_isp_wb_attr *wb_attr, hi_u16 color_temp, hi_s16 shift, hi_u16 *awb_gain)
参数名称 |
输入/输出 |
描述 |
---|---|---|
vi_pipe |
输入 |
vi_pipe 号。 取值范围:[0, 12)。 |
wb_attr |
输入 |
白平衡的参数属性。需要用到 hi_isp_awb_attr 中的 static_wb,curve_para 两组标定参数。 |
color_temp |
输入 |
色温值,单位为 Kelvin。 取值范围:[1500, 15000] |
shift |
输入 |
白点与 Planckian 曲线的位置和距离。取值范围:[-64, 64] |
awb_gain |
输出 |
预设色温下的 R, Gr, Gb, B 四个通道增益。 |