How to adjust Contrast in IPU DP module for i.MX6Quad

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to adjust Contrast in IPU DP module for i.MX6Quad

613 Views
yuuki
Senior Contributor II

Dear all,

We refer to the following document.

http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0223.pdf
 - p24 IPUv3 Color Space Conversion

http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf
 - p49 DP (Display Processor)

We understand that we can coordinate Contrast by IPU DP module.

How to achieve  contrast adjustment under condition RGBA input and RGBA output using IPU DP module ?
Please provide sample code and  document of the code.

Best Regards,
Yuuki

Labels (2)
0 Kudos
2 Replies

453 Views
b36401
NXP Employee
NXP Employee

It can be performed with IPU Image Converter color conversion:

Y’=Y*k + b
Cb’= (Cb-128)*k+128 = k*cb+128(1-k)
Cr’= (Cr-128)*k+128 = k*Cr+128(1-k)

here "k" is contrast factor and "b" is brightness level.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

453 Views
yuuki
Senior Contributor II

b36401


Dear Victor-san,

Thank you for your response.

Would you tell me a procedure and the method to perform it in Image Converter?
Is there the sample code?

Is there the method to perform this in IPU Display Processor?
Is there the sample code?

Best Regards,
Yuuki

0 Kudos