ARGB overlay with local alpha

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

ARGB overlay with local alpha

跳至解决方案
1,089 次查看
FTO
Contributor I

Hi,

 

I try to mix YUV420P video with RGB overlay with lib IPU (11.09.01) on IMX53 running Linux.

 

In the final application, video frames will come either from CSI or from VPU in YUV420P format (this part is working, and can be displayed)
RGB overlay will be constructed with cairo in ARGB format (this part is also working, but overlay composition is bugged [wrong colors])

The application will be the only one running on the system (excluding obviously Linux kernel, drivers, daemons...).

 

For the sake of this discussion, I have built a simple example that can be compiled, based on my actual code (see attachment).

 

1)

When executed, I expect this code to produce 4 bands of plain color on the (VGA) display : A black band, a blue one, a green one and finally a red one.

But I see a a black band, a green one, a red one and finally a black one again.

Where is my mistake ?

 

2)

Unfortunately, ARGB seems to be the only format cairo is able to produce, but this one is not supported by the IPU library.

Will I have to modify IPU library and kernel driver (if only it is possible) ?

Original Attachment has been moved to: test_ipu.c.zip

标签 (3)
0 项奖励
1 解答
738 次查看
imxcommunitysco
Senior Contributor II
0 项奖励
2 回复数
739 次查看
imxcommunitysco
Senior Contributor II

1_. Checkout the link which will help you

Alpha test on iMX6Q

0 项奖励
735 次查看
FTO
Contributor I

Finally, I have found a solution working directly with <ipu.h> ioctl wrappers instead of high level <mxc_ipu_hl_lib.h>

I didn't saw your post, but I arrived to a similar solution.

Thanks anyway.

0 项奖励