]> Pileus Git - ~andy/gtk/commit
video-timer: add simple example of PLL-style clock adjustment
authorOwen W. Taylor <otaylor@fishsoup.net>
Fri, 16 Nov 2012 15:47:17 +0000 (10:47 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 14 Feb 2013 22:19:51 +0000 (17:19 -0500)
commit40fa28de3d4ab1d5759fc34e6245b9c396db48d0
treec8ce07d1d11eae80367d9b8a070bd91c8f7ca93e
parente77a96a0ea3365d6e899b2058520f96cfddd0143
video-timer: add simple example of PLL-style clock adjustment

The first version of the video-timer simply played back the video
according to the wall clock, and showed each frame at the neareste
presentatin time. But an alternative strategy for playing back
video is that if the frame-rate is an integer-divisor of the
display refresh rate, or very close to that, is to change the playback
speed to complete avoid frame drops and changes in latency.
(This would require resampling audio if present.)

Demonstrate this technique by adding a --pll option to the
video-timer demo.

https://bugzilla.gnome.org/show_bug.cgi?id=685460
tests/video-timer.c