#include <vsync.h>

Calls usleep() for the entire remaining frame interval. Horribly inaccurate on < Linux 2.6 kernels; not very accurate there either. Not phase-maintaining. Not tried automatically.
This only used when NVP's 'disablevideo' is true (i.e. for commercial flagging and for transcoding), since it doesn't waste CPU cycles busy-waiting like BusyWaitVideoSync.
Definition at line 293 of file vsync.h.
Public Member Functions | |
| USleepVideoSync (VideoOutput *, int frame_interval, int refresh_interval, bool interlaced) | |
| ~USleepVideoSync () | |
| 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). | |
| USleepVideoSync::USleepVideoSync | ( | VideoOutput * | vo, | |
| int | frame_interval, | |||
| int | refresh_interval, | |||
| bool | interlaced | |||
| ) |
| QString USleepVideoSync::getName | ( | void | ) | const [inline, virtual] |
| bool USleepVideoSync::TryInit | ( | void | ) | [virtual] |
| void USleepVideoSync::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 USleepVideoSync::AdvanceTrigger | ( | void | ) | [virtual] |
1.5.5