DirectFB - Home of the pragmatist Roadmap


[directfb-users] Re: YUY2 video + RGBA osd alpha blending
Mailing List archive

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

[directfb-users] Re: YUY2 video + RGBA osd alpha blending



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.

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/




Home | Main Index | Thread Index


directfb.org / Development / Old Archives