I worked on this for a while last night.  the bottom line is that it
works, but there are some problems that may or may not be surmountable.
 Per-pixel alpha seems to require that the framebuffer supports an
alpha channel (eg. 8888 or 4444, etc.).  Xfree86 does not. so using
that method seems to only produce a black overlay or a black graphics
surface when the graphics or overlay alpha is adjusted.  global alpha
seems to work, but it is limited by the fact that the overlay is always
on top.  It mixes the graphics layer with the overlay layer.  the
problem is that the video output window is painted with the colorkey so
it blends the video with the colorkey rather than the desktop and
windows, etc. that are behind it.  I'm not sure if you can disable the
color key or not.  That might be something for app writers to take up. 
it blends with the graphics layer nicely if you obscure the overlay
with another window or adjust the overlay output position (x or y
offset) such that it displays outside the graphics colorkey window.  If
anyone has any thoughts on how to make this work better let me know. 
I'll keep working on it as time permits.  I'll post my patch once it
gets cleaned up a bit.

Alex

--- Francesco <[EMAIL PROTECTED]> wrote:
> Alex Deucher wrote:
> 
> >The video overlay on radeons can be blended with the graphics layer.
> >It's pretty simple to code.  I'm working on a patch to expose this
> >functionality as an xv attribute, "XV_ALPHA," however, I just
> recently
> >got the databooks and haven't had time to finish it yet.  
> >Also, in regard to my XV_GAMMA patch, I'm working on a new one that
> >uses the predefined gamma curves rather than directly programming
> the
> >more advanced gamma registers.
> >
> >Alex
> >
> >  
> >
> Well, you seem to be much more experienced than me. I think that I
> will 
> wait your patch.
> 
> Vladimir: I'd like to have those docs anyway when you can get them. 
> Thanks. :)
> 
> 
> PS: Sorry for the other post on this topic, sent for mistake.
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to