The method that gamma corrects RGB separately by using GPU of i.MX6Solo

cancel
Showing results for 
Search instead for 
Did you mean: 

The method that gamma corrects RGB separately by using GPU of i.MX6Solo

Jump to solution
319 Views
yuuki
Contributor V

Dear all,

We understand that IPU of i.MX6Solo supports gamma correction.
However, that can't process R, G and B separately.

I think it's possible to process R and G separately by using GPU with Software.

Can 2D graphic engine correct gamma value of the R, G and B separately?

Best Regards,
Yuuki

Labels (1)
Tags (4)
0 Kudos
1 Solution
78 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi yuuki

in any way gpu processes data pixel by pixel.

V2D GPU supports OpenVG 1.1 graphics APIs.

Also when you are saying "RGB separately" - what do you mean exactly:

is this is standard OpenVG 1.1 API ?

Best regards

igor

View solution in original post

0 Kudos
3 Replies
78 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi yuuki

I think one can use GPU blending for modification of one color

component (not changing other components), this is described in

IMX6DQRM  sect.31.4.1.16 Alpha Blending

The GPU supports alpha blending together with ROP. The alpha blending function is

performed on ROP function result source.

The general alpha blending equations are:

Cd = Fs * Cs' + Fd * Cd'

Ad = Fs * As'' + Fd * Ad''

Where

• Cs' is the source color component (adjusted for NPM if necessary)

• Cd' is the destination color component (adjusted for NPM if necessary)

• As'' is the modified source alpha component

• Ad'' is the modified destination alpha component

• Fs is fraction of the source that contributes to the final value

• Fd is fraction of the destination that contributes to the final value

Examples can be found in IMX6_GPU_SDK : i.MX6 Graphics SDK – Includes sample

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

78 Views
yuuki
Contributor V

Dear Igor-san,

Thank you for your support.

I will refer to alpha blending function

By the way, a R2D GPU supports Color Index Input Conversion.
I think that this function can be used.

Does this function support it about RGB separately?

Best Regards,
Yuuki

0 Kudos
79 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi yuuki

in any way gpu processes data pixel by pixel.

V2D GPU supports OpenVG 1.1 graphics APIs.

Also when you are saying "RGB separately" - what do you mean exactly:

is this is standard OpenVG 1.1 API ?

Best regards

igor

View solution in original post

0 Kudos