DirectFB - Home of the pragmatist Roadmap

[directfb-dev] Video overlay questions
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-dev] Video overlay questions

Hi guys,

I'm working on overlays, and a couple of problems have come up. Can someone
please straighten out some of the question marks for me? Thanks!


-------Question #1--------

Does the VESA fb-driver support the FBIO_WAITFORVSYNC ioctl?
If not, i'm thinking of using code from waitretrace() in fbdev.c instead.

Does this line of code wait for the VBI to happen, or wait until the VBI is

while (!(inb (0x3da) & 0x8));

-------Problem #2--------

I'm running this test program from DFB examples v0.9.18:

./df_layer test.mpg

test.mpg is a short mpeg2 stream I found here:

First, the default buffer mode is set to DLBM_FRONTONLY (by my InitLayer
function in the driver)
Result: Works nicely, (although with lots of framedrops)

Then, the default buffer mode is changed to DLBM_BACKVIDEO, and the driver
is recompiled.
Result: No video - the overlay is black.

It turns out that df_layer doesn't call the layer's FlipBuffers function...

So, what could be missing?

-------Problem #3--------

The hardware supports a kind of alpha blending, where the video engine takes
the alpha channel in the graphics layer and uses it as the alpha channel for
the video overlay. For example, if the alpha in a graphics pixel is 255, the
video pixel on top of it is 100% opaque. If the alpha is 0, video is

Is there support for this in the framework? Could I use DLCAPS_ALPHACHANNEL
for example?

Info:  To unsubscribe send a mail to with 
"unsubscribe directfb-dev" as subject.

Home | Main Index | Thread Index / Development / Old Archives