I'm not sure how stopping the color key painting will help accomplish
your goal here.  It may be possible to grab the background data from the
screen position, pre-blend it into your video image, and then display it
as part of the video stream.  However that will take quiet a bit of
pre-processing.  And you would still want to use color keying to
accelerate the video display.

Some hardware does support blending of the overlay against background
data, I'm not sure if that could be used or not.

-- 
Kevin


Wei Chong wrote:
> 
> 
> I would like to make my Xvideo appear translunent by
> using alpha blending of my video image against the
> "desktop background".  However, each time before the
> before any of the Xv PutImage() is invoked, after the
> window is created, it appears that the background of
> the window has already been painted to some color,
> like black.  I would like to prevent such things from
> happening.
> 
> Thanks,
> Wei-Chong Tan.
> 
> --- Mark Vojkovich <[EMAIL PROTECTED]> wrote:
> >    Perhaps you could explain what you are trying to
> > do?
> > The driver itself is responsible for painting the
> > color
> > key, and automatic painting of the key is usually
> > optional behavior.  One gets the idea that whatever
> > you
> > are trying to do, you are going about it the wrong
> > way.
> >
> >
> >                       Mark.
> >
> > On Sun, 28 Sep 2003, Wei Chong wrote:
> >
> > > Hello,
> > >
> > > I would like to know which function is responsible
> > to
> > > paint the window's background colorkey before any
> > > video image is display in the XVideo extension?
> > >
> > > I did a crash in my PutImage() to see the stack
> > trace
> > > but i only see...
> > > main() --> Dispatch() --> ErrorMessage() -->
> > > xf86PutImage() --> my PutImage().
> > >
> > > I looked into xf86PutImage() but didn't see any
> > code
> > > that actually paint the window's background color.
> >  I
> > > would like to either:
> > > 1. Intercept the code that do actual painting and
> > > refrain it from doing so.
> > > OR
> > > 2. Obtain a snapshot of the background image being
> > > written over by the painting process before it
> > occurs.
> > >
> > > Thanks,
> > > Wei-Chong.
> > >
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to