#include <vsync.h>

Non-phase-maintaining. There may occasionally be short periods of jitter that eventually go away.
You may need to issue the following command before this will work:
Definition at line 238 of file vsync.h.
Public Member Functions | |
| RTCVideoSync (VideoOutput *, int frame_interval, int refresh_interval, bool interlaced) | |
| ~RTCVideoSync () | |
| QString | getName (void) const |
| Returns name of instanciated VSync method. | |
| bool | TryInit (void) |
| Tries to initialize VSync method. | |
| void | WaitForFrame (int sync_delay) |
| Waits for next a frame or field. | |
| void | AdvanceTrigger (void) |
| Use the next frame or field for CalcDelay(void) and WaitForFrame(int). | |
Private Attributes | |
| int | m_rtcfd |
| RTCVideoSync::RTCVideoSync | ( | VideoOutput * | vo, | |
| int | frame_interval, | |||
| int | refresh_interval, | |||
| bool | interlaced | |||
| ) |
| QString RTCVideoSync::getName | ( | void | ) | const [inline, virtual] |
| bool RTCVideoSync::TryInit | ( | void | ) | [virtual] |
| void RTCVideoSync::WaitForFrame | ( | int | sync_delay | ) | [virtual] |
Waits for next a frame or field.
Start(void), WaitForFrame(void), and Stop(void) should always be called from same thread, to prevent bad interactions with pthreads.
| sync_delay | time until the desired frame or field |
Implements VideoSync.
| void RTCVideoSync::AdvanceTrigger | ( | void | ) | [virtual] |
int RTCVideoSync::m_rtcfd [private] |
Definition at line 251 of file vsync.h.
Referenced by RTCVideoSync(), TryInit(), WaitForFrame(), and ~RTCVideoSync().
1.5.5