On Sonntag, 18. Juli 2004 22:33, Ville Syrj�l� wrote: > On Sun, Jul 18, 2004 at 12:36:21PM +0200, Stefan Lucke wrote: > > Hi, > > > > I'm trying to blend and osd with alpha over an yuy2 video source. > <snip> > > > > Surfaces are allocated by: > > dsc.flags = (DFBSurfaceDescriptionFlags) (DSDESC_CAPS | > > DSDESC_PIXELFORMAT); > > dsc.caps = DSCAPS_NONE; > > DFB_ADD_SURFACE_CAPS(dsc.caps, DSCAPS_FLIPPING); > > DFB_ADD_SURFACE_CAPS(dsc.caps, DSCAPS_PRIMARY); > > DFB_ADD_SURFACE_CAPS(dsc.caps, DSCAPS_VIDEOONLY); > > dsc.pixelformat = DSPF_ARGB; > > > > osdSurface = dfb->CreateSurface (dsc); > > screen = dfb->CreateSurface (dsc); > > You're creating two primary surfaces.
Thanks, meanwhile this code moved. Width and height of OSD are now limited. Removed DSCAPS_PRIMARY for OSD surface creation and it WORKS as expected. Alpha blended OSD with vdr-softdevice on my G550 :-)) . Thank you very much. Stefan Lucke
