G2D 中g2d_surface的用法

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

G2D 中g2d_surface的用法

Jump to solution
1,810 Views
stevenhuang
Contributor III

在g2d_surface这个结构,成员clrcolor的用处是什么?如何使用?

Labels (1)
0 Kudos
1 Solution
1,339 Views
jimmychan
NXP TechSupport
NXP TechSupport

It is used to clear the color. It is 32bit RGBA.  Bit[0-7] is R, Bit[8-15] is G, Bit[16-23] is B, Bit[24-31] is A.

for example : mx6/hwcomposer/hwc_composite.cpp · eb17a9d77f3b0d9e18d82000d42d41443ff0beb3 · Android / hardware · G... 

View solution in original post

0 Kudos
2 Replies
1,340 Views
jimmychan
NXP TechSupport
NXP TechSupport

It is used to clear the color. It is 32bit RGBA.  Bit[0-7] is R, Bit[8-15] is G, Bit[16-23] is B, Bit[24-31] is A.

for example : mx6/hwcomposer/hwc_composite.cpp · eb17a9d77f3b0d9e18d82000d42d41443ff0beb3 · Android / hardware · G... 

0 Kudos
1,339 Views
stevenhuang
Contributor III

这个的用法是不是类似keycolor, 就是说FG画面的这种颜色的像素会被替换为BG的的像素,也就是前景画面指定颜色的像素是完全透明的。

0 Kudos