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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
952 次查看
yuuki
Senior Contributor II

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

标签 (1)
标记 (4)
0 项奖励
1 解答
711 次查看
igorpadykov
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
3 回复数
711 次查看
igorpadykov
NXP Employee
NXP Employee

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!

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

711 次查看
yuuki
Senior Contributor II

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 项奖励
712 次查看
igorpadykov
NXP Employee
NXP Employee

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

0 项奖励