>
>
> On Fri, 22 Feb 2002, [big5] Kevin Huang wrote:
>
> > --- Mark Vojkovich <[EMAIL PROTECTED]> ���T���G> On Fri, 22 Feb
> 2002,
> > [big5] Kevin Huang wrote:
> > >
> > > > > > Hi Mark :
> > > > > >
> > > > > > Thanks for your answer in advance!! :)
> > > > > >
> > > > > > I'm working on Xv driver for my company's graphic chip, but I
> > > > > > encounter an problem & can't fint out the reason. Everytime I
> > > > > > use other window to clip the video window or move it,
> > > > > > StopVideo will be called & makes the video flicker. This
> > > > > > doesn't happen in ATI AiW r128.
> > > > >
> > > > > That's because the other drivers don't stop the video then.
> > > > > They stop it in a few seconds if PutImage doesn't get called
> > > > > again.
> > > > >
> > > >
> > > > How does the AiW driver make it ? I trace the code of PutImage &
> > > > StopVideo in r128_video.c but find nothing special. The StopVideo
> > > > seems be called by X Server & the AiW driver seems cannot control
> > > > when StopVideo will be called. the driver only provide the
> > > > StopVideo function call for X Server.
> > >
> > >
> > > Are you saying that the ATI driver's StopVideo is not called?
> > > It should be called when the window moves.
> > >
> > >
> > > Mark.
> > >
> >
> > Yes, ATI's StopVideo is not called when the video window moves, so
> > it's video doesn't flicker during window moving. The StopVideo is only
>
> > called at the end of playing mpeg2 video file with cleanup = 1. I
> > attach part of the XFree86.0.log for reference.
>
> I see some confusion going on here.. There are two different StopVideo
> functions: one inside the driver and one in Xv library. The library
> function instructs X to call StopVideo function in the driver, but the
> latter can also be called by Xserver without request. For example, if
> you open a window and make a single PutImage or PutVideo call and then
> destroy the window Xserver will call StopVideo in the driver even though
> you did not make StopVideo call through Xv library.
>
> Does this help ?
>
> Vladimir Dergachev
>
Hi Vladimir, thanks for ur response.
Ur explanation is very clear. YES, the StopVideo in Xv library can be called by
Xserver without AP's request.
I have a DVD player AP which will use PutImage function in Xv library to
display the video. When I use our own graphic card & driver, in fact, Xserver
will call StopVideo in my driver not only when I destroy the window but also
moving or cliping the window. If I remove the flag VIDEO_OVERLAID_IMAGES in my
driver, Xserver will never call StopVideo even though I destroy the window.
In ATI's driver, it also set VIDEO_OVERLAID_IMAGES flag. But I move or clip the
video window, Xserver never call StopVideo in ATI's driver. It is only called
when the window is destroy.
My purpose is to eliminate the flicker state when moving the video window. Coz
in StopVideo function, we turn off video H/W engine; in PutImage function, we
turn on video H/W engine, the same does ATI.
If Xserver will call StopVideo during moving window, the video will flicker due
to video H/W off & on.
Why ATI can make it that Xserver doesn't call StopVideo in it's driver when I
move or clip the video window ?
Kevin
-----------------------------------------------------------------
< �C�ѳ� Yahoo!�_�� > www.yahoo.com.tw
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert