From: Dirk Thierbach <dthierbach-Mmb7MZpHnFY@public.gmane.org>
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: Syncing to vblank for interlaced video modes
Date: Mon, 15 Jun 2009 12:43:52 +0200 [thread overview]
Message-ID: <20090615104352.GA5974@feanor> (raw)
In-Reply-To: <3d374d00906150044h7ea2a845y189e070026ee9fc8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Mon, Jun 15, 2009 at 08:44:26AM +0100, Alistair Buxton wrote:
> 2009/6/15 Dirk Thierbach <dthierbach-Mmb7MZpHnFY@public.gmane.org>:
> > On Sun, Jun 14, 2009 at 11:56:45PM +0100, Alistair Buxton wrote:
> >> Stupid question: Given the presence of a register which indicates the
> >> current field, why can't NVWaitVSync simply wait until the end of the
> >> second field, by doing whatever it does twice iff it is called during
> >> the first field?
> >
> > Because then you'd effectively halve the frame rate in interlaced
> > modes, unless you somehow queue all the information for the second
> > half-frame.
> That isn't a problem, because you show both fields at the same time,
> and let the video card cut them up. You still get 50 fields per
> second, same as source.
Ok, I think I understand now what you mean.
But that will only work in the very particular case that you're
displaying a video full-screen, with the *intention* to let the
hardware do the interlacing. Which doesn't match the usual usage
of Xv, for example. So you're introducing a special case without
marking it as a special case explicitely. That's a bad idea in
my book. KISS.
> mplayer and vlc both do it.
But only when displaying video full-screen and they know the card
is in interlaced mode, I assume? Otherwise, that would be plain stupid,
because it will generate artifacts for every other use. Like displaying
the movie in a window.
> They can also split the fields and scale vertically as you describe
> (vlc calls it bob deinterlacing) but at extra CPU cost.
Not if Xv does the scaling via hardware.
> > If you just combine two adjacent half-frames, you get the typical
> > comb-style ragged edges on fast moving objects.
>
> That's what happens on a none-interlaced display. On an interlaced
> display it will look fine of course. So I can't see any problems with
> this method.
See above. It's a very special case, it behaves different in that special
case, it will break if the client doesn't know it behaves different and
wants to use it for other purpose (say, displaying a non-interlaced
source on an interlaced display).
Why not use a method that works in all cases? Which is to give the
client explicit knowledge about which half-field is displayed
currently. Then the client can decide what to do.
- Dirk
next prev parent reply other threads:[~2009-06-15 10:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-14 18:34 Syncing to vblank for interlaced video modes Dirk Thierbach
2009-06-14 18:58 ` Alistair Buxton
[not found] ` <3d374d00906141158h28a7d688re1133b656dcdb6c5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-14 22:56 ` Alistair Buxton
[not found] ` <3d374d00906141556y44d5d493j330cc1ebf79e5968-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-15 7:03 ` Dirk Thierbach
[not found] ` <3d374d00906150044h7ea2a845y189e070026ee9fc8@mail.gmail.com>
[not found] ` <3d374d00906150044h7ea2a845y189e070026ee9fc8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-15 10:43 ` Dirk Thierbach [this message]
2009-06-15 13:01 ` Alistair Buxton
[not found] ` <3d374d00906150601t5ddd1592i47b1323e0956967b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-15 14:14 ` Jamie Smith
[not found] ` <20090616001405.b4242c25.hutts-CkBdp7X+a1oIQCUVoCVjmQ@public.gmane.org>
2009-06-15 15:13 ` Maarten Maathuis
2009-06-18 9:44 ` Dirk Thierbach
2010-02-09 17:50 ` Alistair Buxton
[not found] ` <3d374d01002090950k45d60933k9aac481b87b62d4f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-09 18:21 ` Younes Manton
[not found] ` <586c2acd1002091021s4cfcc1b3h55d27459ee6d43a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-10 1:16 ` Alistair Buxton
-- strict thread matches above, loose matches on Subject: below --
2009-06-14 12:32 Jamie Smith
[not found] ` <20090614223218.a3b6ce8e.hutts-CkBdp7X+a1oIQCUVoCVjmQ@public.gmane.org>
2009-06-14 14:39 ` Younes Manton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090615104352.GA5974@feanor \
--to=dthierbach-mmb7mzphnfy@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.