overlay with two framebuffers

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

overlay with two framebuffers

1,631件の閲覧回数
tselmeci
Contributor IV

Hi all!

Having the following kernel parameters:

video=mxcdi0fb:RGB24,1920x1080M@60 video=mxcdi2fb:RGB24,1920x1080M@60 hdmi di0_primary

Writing bytes into /dev/fb0, I can see the pixels on the display, that's ok.

Writing bytes into /dev/fb2, I can't see the pixels.

cat /sys/class/graphics/fb0/name

DISP3 BG

cat /sys/class/graphics/fb2/name

DISP3 FG

So fb0 is the background and I suppose it covers the foreground pixels. I suppose somehow the alpha of background should be changed or color keying should be used to make the foreground also visible.

I'd like to implement an OSD and using multiple framebuffers (one with the video data, another one with the OSD itself) seems to be a convenient way.

How can I adjust the color keying/opacity of each framebuffer? Is this possible at all?

ラベル(3)
1 返信

739件の閲覧回数
tselmeci
Contributor IV

/dev/fb0 and /dev/fb2 can be set to the same resolution, even in different colorspaces. Using Freescale's MXCFB IOCTLs you can have such effects as global alpha or color keying.

The only problem is that it's not functional with resolutions above 1280x768. Does anybody know anything about this? Is it another frustrating limitation of iMX53? Isn't there HW support to put OSD text in full HD resolution?