IPU CSC [DP] matrix setting

cancel
Showing results for 
Search instead for 
Did you mean: 

IPU CSC [DP] matrix setting

Jump to solution
1,390 Views
gauthamkanthara
Contributor IV

Hello All,

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.

Regards,

Gautham

Tags (2)
0 Kudos
1 Solution
916 Views
joanxie
NXP TechSupport
NXP TechSupport

you also can refer to this source code as below

i.MX6 CSC setting sample source code

View solution in original post

0 Kudos
6 Replies
916 Views
joanxie
NXP TechSupport
NXP TechSupport

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.

0 Kudos
916 Views
gauthamkanthara
Contributor IV

joanxie​,

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?

0 Kudos
917 Views
joanxie
NXP TechSupport
NXP TechSupport

you also can refer to this source code as below

i.MX6 CSC setting sample source code

0 Kudos
916 Views
gauthamkanthara
Contributor IV

joanxie​,

Thank you for the information and link to CSC setting sample source code.

0 Kudos
916 Views
joanxie
NXP TechSupport
NXP TechSupport

great, if you think we can close this tread, please click the Correct Answer button. Thank you!

0 Kudos
916 Views
joanxie
NXP TechSupport
NXP TechSupport

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

0 Kudos