52.6.8 Color Correction (CC) Module
RGB color correction is used to compensate for cross color bleeding in the filter used with the image sensor. The module samples the cfa_data[35:0] 36-bit bus when cfa_valid is asserted and generate a cc_data[35:0] 36-bit wide bus and a cc_valid signal.
There are three {gain, offset} sets for color component R, G, B.
| ISC_CC_CTRL.ENABLE | CC_DATA Slice | Value |
|---|---|---|
| 0 | cc_data[35:24] | cfa_data[11:0] |
| cc_data[23:12] | cfa_data[11:0] | |
| cc_data[11:0] | cfa_data[11:0] | |
| 1 | cc_data[35:24] | R=clipped(sum(cfa_data_x * gain_Rx) + offset_R) |
| cc_data[23:12] | G=clipped(sum(cfa_data_x * gain_gx) + offset_g) | |
| cc_data[11:0] | B=clipped(sum(cfa_data_x * gain_Bx) + offset_B) |
