Hi All,
Processor : IMX6Q (MCIMX6Q6AVT10AD)
Linux Kernel : 4.9.11
Kernel reference : wandboard_imx_4.9.11_1.0.0_ga
May be description looks little confusing so let me know if you have any questions or query or any more information is required from my side.
Thanks,
Jignesh
for default settings, dev/fb0 is for BG(UI) and dev/fb1 for FG(video playing),if you need to switch them, try to refer to it:
"The IPU DP has two plane: full plane(fb0) and partial plane(fb1), their order can be changed in register IPUx_DP_COM_CONF_SYNC, bit 1 DP_GWSEL_SYNC, when you set alpha to fb0, then the BSP will set fb0 to background, this is default setting for BSP. The customer can also set alpha to fb1, in this case, fb1 will be the background."
Hi Joan,
Thanks for input. You are correct, I have verified it and it is working as per your input.
Our QT GUI is running on FB0. Preview application running on FB1 and we set global alpha 0 so that default GUI is on top. Now I want to set transparency of GUI using color key or local alpha. So that on specified window only preview on FB1 is visible on LCD.
Currently only global alpha setting works for transparency using ioctl "MXCFB_SET_GBL_ALPHA".
I tried color key using following source code on FB0 layer to make black graphics pixel as transparent for overlay but it is not working.
struct mxcfb_color_key ckey;
ckey.enable = 1;
ckey.color_key = 0x000000;
result = ioctl( _fd, MXCFB_SET_CLR_KEY, & ckey );
Also I tried local alpha of graphics using following source code on FB0 layer but this also not working.
struct mxcfb_loc_alpha l_alpha;
l_alpha.enable = 1;
l_alpha.alpha_in_pixel = 1;
result = ioctl( _fd, MXCFB_SET_LOC_ALPHA, & l_alpha );
Can you please help us to enable local alpha and color key setting ?
Thanks,
Jignesh Patel
I manage to get transparency working. I set global alpha 255 and color key then it works as our requirement. So marking this thread as done