Re: DirectFB Overlay Help
Marc Strämke <[email protected]> Sat, 26 Jul 2003 22:04:07 +0200
| Newsgroups | gmane.comp.embedded.stk.gui.devel |
|---|---|
| Message-ID | <[email protected]> |
Darren Vincent Hart wrote: > On Fri, 2003-07-25 at 10:07, Marc Strämke wrote: > >>Darren Vincent Hart wrote: >> >>>I'm getting a little frustrated with the dfb overlay. I don't think I >>>understand how DFBLayers come into play. We only seem to have layer 0, >> >>If you only have layer 0 then your video card doesnt support overlays, >>quite simple :) (or the driver doesnt, its the same too dfb) > > > 1) What is the difference between a surface and a layer in the DirectFB > context? > > 2) If I can't get a new hardware YUV surface, I should be able to have > xine convert to rgb and use an rgb surface. > > 3) Am I making a mistake to distinguish between overlays and surfaces in > libstk? Perhaps create_surface should receive a format parameter, SDL > would create an SDL_Overlay, but DirectFB doesn't seem to distinguish > between surfaces and overlays. It does!! You only have one primary surface, the screen. But you might have different layers, the bsae layer (where we draw to) and your overlays, but in Directfb there is no software emulation if your backend doesnt support hardware overlays you dont get any, so you need software conversion to RGB and blit every frame :( > > > >>>even after I create another surface. What are the layers for? For som >>>reason after I blit the overlay's surface to the screen surface it isn't >>>showing up. The video plays to completion (you can hear the audio) but >>>not a single frame is displayed. >>> >>>The xine driver changed the configuration of layer 0 at each >>>frame_format_update, which seems wrong to me (and DFB agrees with me, it >>>won't accept the change - see commented out section of the overlay_dfb >>>constructor). >>> >>>If anyone has more dfb experience than I and can shed a bit a light on >>>this I'd appreciate it. >>> >>>Thanks, >>> >>>Darren >> >> >> >>_______________________________________________ >>Libstk mailing list >>Libstk@Óq«LD" >>http://www.dvhart.com/cgi-bin/mailman/listinfo/libst > > k L