5.8.6.12 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.

Figure 5-91. CC Block Diagram

There are three {gain, offset} sets for color component R, G, B.

ISC_CC_CTRL.ENABLECC_DATA SliceValue
0cc_data[35:24]cfa_data[11:0]
cc_data[23:12]cfa_data[11:0]
cc_data[11:0]cfa_data[11:0]
1cc_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)
RGB =RRGAINRGGAINRBGAINGRGAINGGGAINGBGAINBRGAINBGGAINBBGAIN ×cfa_data[35:24]cfa_data[23:12]cfa_data[11:0] +ROFSTGOFSTBOFST