From: Antonino Daplas <adaplas@pol.net>
To: Fredrik Noring <noring@nocrew.org>
Cc: "Michel Dänzer" <michel@daenzer.net>,
"James Simmons" <jsimmons@infradead.org>,
"Linux Fbdev development list"
<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Vertical retrace interrupts?
Date: 31 Jan 2003 09:35:45 +0800 [thread overview]
Message-ID: <1043976897.1017.24.camel@localhost.localdomain> (raw)
In-Reply-To: <1043972211.17160.35.camel@h9n1fls20o980.telia.com>
On Fri, 2003-01-31 at 08:16, Fredrik Noring wrote:
> Hi Antonino,
>
> fre 2003-01-31 klockan 00.22 skrev Antonino Daplas:
> > However, at least 3 people have mailed me that they are using their
> > somewhat old pc as a set top box with mplayer, DirectFB and i810fb. No
> > X. The image instability is noticeable because they are driving
> > big-screen TV's, especially because DirecFB is double-buffered, with
> > triple-buffering in the TODO list.
>
> I don't think vertical retrace synchronisation is strictly necessary
> for excellent video playback on low-grade systems. Reason is that I
> believe most graphics cards delay the flip automatically in hardware
> using shadow registers which load the real registers during retrace.
This is true if you have triple, or more, buffers -- (buffer currently
being displayed, buffer waiting to be displayed, and buffer being
decoded to) and if the display refresh rate is faster than the video
frame frate. In this case, you can just simply rely on the hardware
doing the actual buffer flip during vblank since you are guaranteed that
the next frame will not arrive until at least one vertical retrace
later.
With double buffers, you still need to synchronize with the retrace
signal, otherwise the video decoder will write to the buffer currently
being displayed (because the actual flip was delayed by the hardware).
Polling for the VGA registers will be enough in most cases, but will not
work correctly with some hardware.
>
> The software only needs to flip the buffers with approximately the same
> frequency, and it'll work fine.
Right, the software will flip the buffers at the correct frequency.
However, decoding will occur immediately after returning from the flip
command.
>
> I've sent a few patches to the Xine (video player) developers to improve
> the frame buffer driver and player. The new driver allocates as many
> buffers as possible natively in video RAM. Thus, with a 16 MB TNT card
> you'll get about 9 buffers at 768x576x32 (PAL DVD) resolution. That
> should give the driver plenty of margins to deal with occasional
> scheduling problems etc. because the only essential thing it needs to
> do meanwhile is flipping buffers using the FBIOPAN_DISPLAY ioctl. This
> can be done with the regular Linux kernel frame buffer drivers.
Ahh, you have a lot of buffers here, so vretrace synchronization is not
a problem. I was referring to DirectFB which is only double-buffered.
Tony
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
next prev parent reply other threads:[~2003-01-31 1:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-26 1:51 Vertical retrace interrupts? Fredrik Noring
2003-01-28 19:21 ` James Simmons
2003-01-30 2:34 ` Antonino Daplas
2003-01-30 11:45 ` Michel Dänzer
2003-01-30 23:22 ` Antonino Daplas
2003-01-31 0:16 ` Fredrik Noring
2003-01-31 1:35 ` Antonino Daplas [this message]
2003-01-31 11:24 ` Michel Dänzer
2003-01-31 11:55 ` Ville Syrjälä
2003-01-31 18:35 ` Antonino Daplas
2003-01-31 19:12 ` Michel Dänzer
2003-01-31 21:32 ` Sven Luther
2003-01-31 23:34 ` Antonino Daplas
2003-02-01 15:45 ` Michel Dänzer
2003-02-01 16:50 ` Antonino Daplas
2003-02-12 20:21 ` James Simmons
2003-02-12 20:08 ` James Simmons
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=1043976897.1017.24.camel@localhost.localdomain \
--to=adaplas@pol.net \
--cc=jsimmons@infradead.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=michel@daenzer.net \
--cc=noring@nocrew.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).