On Fri, 22 Feb 2002, [big5] Kevin Huang wrote:

>  --- Mark Vojkovich <[EMAIL PROTECTED]> 的訊息:> 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

>
>                                        Kevin
> ====
>
> XFree86 Version 4.1.0 / X Window System
> (protocol Version 11, revision 0, vendor release 6510)
> Release Date: 2 June 2001
>       If the server is older than 6-12 months, or if your card is
>       newer than the above date, look for a newer version before
>       reporting problems.  (See http://www.XFree86.Org/FAQ)
> Build Operating System: Linux 2.4.9-13custom i686 [ELF]
> Module Loader present
> (==) Log file: "/var/log/XFree86.0.log", Time: Fri Feb 22 14:16:39 2002
> (==) Using config file: "/etc/X11/XF86Config"
> Markers: (--) probed, (**) from config file, (==) default setting,
>          (++) from command line, (!!) notice, (II) informational,
>          (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) ServerLayout "Simple Layout"
> (**) |-->Screen "Screen 1" (0)
> (**) |   |-->Monitor "My Monitor"
> (**) |   |-->Device "ATI All-in-Wonder"
> (**) |-->Input Device "Mouse1"
> (**) |-->Input Device "Keyboard1"
>
> (.........skip........)
>
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=56 drw_y=100 drw_w=720 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=257 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=258 drw_y=114 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=271 drw_y=134 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=356 drw_y=203 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=357 drw_y=203 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=357 drw_y=203 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=374 drw_y=245 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=62 drw_y=156 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=114 drw_y=86 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=114 drw_y=86 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=136 drw_y=66 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=144 drw_y=58 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=158 drw_y=50 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128StopVideo, Exit=1
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=230 drw_y=38 drw_w=640 drw_h=480 width=720
> height=480 sync=0
> (II) r128(0): R128StopVideo, Exit=1
> (II) r128(0): R128QueryImageAttributesG
> (II) r128(0): R128PutImage src_x=0 src_y=0 src_w=719 src_h=479
> (II) r128(0):              drw_x=266 drw_y=38 drw_w=640 drw_h=480 width=720
> height=480 sync=0
>
>
> -----------------------------------------------------------------
> < 每天都 Yahoo!奇摩 >  www.yahoo.com.tw
> _______________________________________________
> Xpert mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xpert
>

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to