Video synchronization class employing /dev/rtc. More...
#include <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. | |
| int | WaitForFrame (int sync_delay) |
| Waits for next a frame or field. | |
Private Attributes | |
| int | m_rtcfd |
Video synchronization class employing /dev/rtc.
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:
echo 1024 > /proc/sys/dev/rtc/max-user-freq
Definition at line 148 of file vsync.h.
| RTCVideoSync::RTCVideoSync | ( | VideoOutput * | vo, | |
| int | frame_interval, | |||
| int | refresh_interval, | |||
| bool | interlaced | |||
| ) |
| QString RTCVideoSync::getName | ( | void | ) | const [inline, virtual] |
| bool RTCVideoSync::TryInit | ( | void | ) | [virtual] |
| int RTCVideoSync::WaitForFrame | ( | int | sync_delay | ) | [virtual] |
Waits for next a frame or field.
Returns delay to real frame timing in usec
Start(void), WaitForFrame(void), and Stop(void) should always be called from same thread, to prevent bad interactions with threads.
| sync_delay | time until the desired frame or field |
Implements VideoSync.
int RTCVideoSync::m_rtcfd [private] |
Definition at line 160 of file vsync.h.
Referenced by RTCVideoSync(), TryInit(), WaitForFrame(), and ~RTCVideoSync().
1.6.3