We have enabled the CSC in the DP, for RGB->RGB, using a identity CSC matrix, image look good. Problem is that, we are not sure, how to calculate and update the CSC identity matrix to incorporate real time changes in brightness, contrast, saturation and hue parameters.
Thank you in advance.
Solved! Go to Solution.
you don't need to know hwo the csc calculate, csc would work refer to the algorithm depends on what your demands.
yuv to yuv, rgb to yuv or yuv to rgb. this is hardware module, you can set it depends on your case.
Conversion btw yuv to rgb, rgb to yuv is fine. My question is, if I pass hue, brightness, saturation or contrast parameter value then how CSC matrix will be computed and equation used to compute the CSC matrix?
refer to the Reference Manual, you can set the regiseter IPUx_DP_COM_CONF_ASYNC0, more detailed information, you also can refer to the linux/linux/drivers/mxc/ipu3/ipu_disp.c