ARGB overlay with local alpha

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ARGB overlay with local alpha

ソリューションへジャンプ
1,100件の閲覧回数
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 解決策
749件の閲覧回数
imxcommunitysco
Senior Contributor II
0 件の賞賛
2 返答(返信)
750件の閲覧回数
imxcommunitysco
Senior Contributor II

1_. Checkout the link which will help you

Alpha test on iMX6Q

0 件の賞賛
746件の閲覧回数
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 件の賞賛