Alpha blending support on i.MX6ULL

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

Alpha blending support on i.MX6ULL

922 次查看
namanthaker
Contributor IV

Hello,
I am using a i.MX6ULL processor to display two Framebuffer streams on a LCDIF simultaneously. The use-case is to display a camera stream and a GUI with various controls through two FB on a single LCDIF.

I have below queries regarding the use-case implementation:
1. Can I use MXCFB_SET_GBL_ALPHA ioctl on i.MX6ULL to set/enable the Global alpha settings?
2. I understand that i.MX6ULL supports alpha blending through PXP through the IMX6ULLCEC datasheet, but I could not find any example code or command to use the PXP for alpha blending. Could anyone help to provide some example code to use the alpha blending feature on i.MX6ULL ?
3. Are there any other methods available on i.MX6ULL aside from PXP or MXC_FB ioctl to achieve the use-case requirement ?

标签 (1)
0 项奖励
回复
3 回复数

902 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 项奖励
回复

807 次查看
namanthaker
Contributor IV

Hello @Bio_TICFSL ,

Thank you for suggesting the imx-test application. I was able to use the pxp_v4l2_test application from imx-test package for setting global alpha.
I am writing a RGB pattern onto fb0, which will be the GUI. Then I am using the pxp_v4l2_test application to play a YUV video with global alpha value of 100. Here is the command I am using for pxp_v4l2_test application:
pxp_v4l2_test -sx 800 -sy 480 -res 352:240 -a 100 /tmp/fb-352x240.yuv BLANK

With this I can see the RGB and the YUV video simultaneously as seen in the attached image. But both are translucent, so we see blended image of both. I am trying to make both buffers opaque so that I can properly display the YUV video over the RGB image. I have tried the ALPHA_OVERRIDE bit in AS_CTRL register, but they did not affect the outcome.

Could you suggest some way to achieve opaque video over the image?

0 项奖励
回复

753 次查看
namanthaker
Contributor IV

@Bio_TICFSL,

Could you please help to update on above query?

0 项奖励
回复