On Tue, Feb 08, 2005 at 06:56:16PM +0100, Lucian Muresan wrote: > Stefan Lucke wrote: > >>Again, if I understood right (tm), in > >>Ville's dfbmga mplayer video output driver, the OSD is drawn (on demand, > >>that is, depending on command-line switches) as it's Matrox-specific, when > >>we want TV-output, in the subpicture layer (usualy layer 3) and the video > >>on > >>the primary layer (CRTC2 if you set primary-layer=2), and the blending is > >>done in hardware, by the graphics card. I hope this is not bulshit, what I > >>just said... :-) > > > >When my information is correct, the subpicturelayer is of depth 8bit > >with 4bit alpha and 4bit color information (-> 16 colors). So I think > >it's not much useful. > > You might be right, I don't know, I'd suggest Ville should tell us here. > If the situation is like this, I must admit, there's no fun having such > an OSD in VDR.
Yes the sub-picture layer support only ALUT44 format. That means 4 bit alpha + 4 bit palette. Furthermore the sub-picture layer only works when CRTC2 is displaying YV12/I420 data. For other pixel formats you could use an ARGB surface for the OSD which you would blit after the video frame to the CRTC2 surface. dfbmga doesn't currently do that (ie. it draws the OSD directly to CRTC2 surface. Fortunately mplayer doesn't make heavy use of OSD stuff (only subtitles, time display and some occasional status bars) so it doesn't take too much CPU power to blend them. -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/
