On Fri, Mar 21, 2003 at 01:23:50PM +0100, Denis Oliver Kropp wrote: > The sub picture layer supports ALUTRGB1555? 1bit alpha lookup plus rgb15?
Unfortunately no. I was referring to the CRTC2 mode. When the CRTC2 layer is a in mode other than I420/YV12 the sub-picture can only be a constant color all through. So the sub-picture surface won't do anything then. In CRTC2 ARGB modes the sub-picture opacity can come from the underlying pixel alpha or from SetOpacity(). If you take a look at section 4.14.6 of G400 specs there's a table of the supported values. 32bpp mode is obviosly fine already but for ARGB1555 we need a way to set the 15 bpp alpha values. Everything else is already set via SetOpacity() and DLOP_OPACITY/DLOP_ALPHACHANNEL. Now that I think of it the rgb only palette stuff doesn't really matter since it should only affect lookups. We can still set the alpha for the entries and sub-picture layer's SetPalette can do it's stuff with them. I've not really tested if the sub-picture behaves as I think it should in these modes. Well I did some testing by accident when I was wondering why I couldn't see the picture I was drawing to the sub-picture surface. I could only see the CRTC2 surface with a semi-transparent color on it. Turned out I had CRTC2 in ARGB mode. -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
