#include <vsync.h>

Polls /dev/nvidia0 to wait for retrace. Phase-maintaining, meaning WaitForFrame should always return approximately the same time after a vertical retrace. This does not work with version 50 or later of the nVidia vendor drivers.
Definition at line 163 of file vsync.h.
Public Member Functions | |
| nVidiaVideoSync (VideoOutput *, int frame_interval, int refresh_interval, bool interlaced) | |
| ~nVidiaVideoSync () | |
| QString | getName (void) const |
| Returns name of instanciated VSync method. | |
| bool | TryInit (void) |
| Tries to initialize VSync method. | |
| void | Start (void) |
| Start VSync; must be called from main thread. | |
| 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 Member Functions | |
| bool | dopoll (void) const |
Private Attributes | |
| int | m_nvidia_fd |
Static Private Attributes | |
| static char * | sm_nvidia_dev = "/dev/nvidia0" |
| nVidiaVideoSync::nVidiaVideoSync | ( | VideoOutput * | vo, | |
| int | frame_interval, | |||
| int | refresh_interval, | |||
| bool | interlaced | |||
| ) |
| QString nVidiaVideoSync::getName | ( | void | ) | const [inline, virtual] |
| bool nVidiaVideoSync::TryInit | ( | void | ) | [virtual] |
| void nVidiaVideoSync::Start | ( | void | ) | [virtual] |
Start VSync; must be called from main thread.
Start(void), WaitForFrame(void), and Stop(void) should always be called from same thread, to prevent bad interactions with pthreads.
Reimplemented from VideoSync.
| void nVidiaVideoSync::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 nVidiaVideoSync::AdvanceTrigger | ( | void | ) | [virtual] |
| bool nVidiaVideoSync::dopoll | ( | void | ) | const [private] |
int nVidiaVideoSync::m_nvidia_fd [private] |
char * nVidiaVideoSync::sm_nvidia_dev = "/dev/nvidia0" [static, private] |
1.5.5