43.6.10 White Balance (WB) Module
The White Balance (WB) module captures the vp_data bus from the PFE module when the vp_valid signal is asserted, and it generates a wb_data data along with its validity signal wb_valid.
When operating with Raw Bayer formats, and ISC_WB_CTRL.ENABLE is set, each Bayer color component (R, Gr, B, Gb) can be manually adjusted using an offset and a gain. The Bayer pattern is adjustable using ISC_WB_CFG.BAYCFG.
There are four {gain, offset} sets for each component. The output value is clipped.
ISC_WB_CTRL.ENABLE | WB_DATA Slice | Value |
---|---|---|
0 | wb_data[11:0] | vp_data[11:0] |
1 | wb_data[11:0] | clipped((vp_data[11:0]+offset)*gain) |