Quoting Alex Song: > hi, > > i would like to play multiple videos at the same time using DirectFB on YUV > overlays. > there are many ways to approach this: > > 1. i could manage each video myself and write to whole overlay. > 2. i could use subsurfaces to the overlay and write each video to one. > 3. i could use windows on overlays and write each video to one. > 4. something else. > > the decision difficulty lies with the fact that these videos may have > different frame rates and i would like to display them in a double buffer > like manner so there won't be any rips. i don't know enough about the > implementation of subsurfaces and windows to decide whether they will be > efficient for my use. so it would be great if the DirectFB core people or > anyone who knows the DirecfFB internals could shed some light on this :)
Using sub surfaces is equal to writing to a portion of the surface. I would try the first proposal you made. Use the video overlay in triple buffering mode and construct a whole frame for each vertical sync of the output device. Use Flip() with DSFLIP_ONSYNC only, without specifying a region to be flipped. Each frame should be "blitted together" from the offscreen surface of each playing video. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH
