On Sun, Sep 23, 2001 at 02:14:00PM +0200, Matthias Dahl wrote:
> > What card do you have?
> Matrax G400 MAX (and quite happy with the DH stuff *grin*)
k.
> Back to the original topic again. :) As Mark Vojkovich kindly pointed out, X
> does not provide any way to check the vsync pulse. :(
As he also pointed out that hardware automatically does this.
At least ATI seems to do it when using monitor (but it fsckes up when I use
tvout).
Anyway, I tried getting it working on my ATI with tvout, and I found a
register in the docs that signals retrace status, however it still doesn't
mix.
> I consider video output sync with the vsync pulse as quite important,
> especially if you wanna watch high-quality video material on your home
> computer. :(
Indeed.
I suggest you do what I did: look the register number in docs and add
something like this code into MGAPutImage just before MGADisplay422 is called,
or perhaps directly to the beginning of MGADisplay422 function:
while (inreg(blah) == retrace_in_progress);
while (inreg(blah) != retrace_in_progress);
This will end at the beginning of retrace cycle. I've been told by other
developers that inreg is so slow that this also ensures the "while" isn't
called millions of times and eat up cpu.
This ensures that when using XV to watch videos, the picture drawing is
adapted to retrace and should get rid of blinking.
This should work on mga. I still have to figure out why it doesn't work on my
ATI and TVout. The code seems to synchronize to SOMETHING, but definitely not
to TV's retrace.
If you are interested on high-quality video watching on mga, you can join
the avifile mailing list or perhaps even directly ask Zdenek Kabelac or A'rpi.
> So long, Matt ]) [EMAIL PROTECTED], GPG key available at public keyservers ([
Bye,
Peter Surda (Shurdeek) <[EMAIL PROTECTED]>, ICQ 10236103, +436505122023
--
I believe the technical term is "Oops!"
PGP signature