USleepVideoSync Class Reference

#include <vsync.h>

Inheritance diagram for USleepVideoSync:

VideoSync

List of all members.


Detailed Description

Video synchronization classes employing only usleep().

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).

Constructor & Destructor Documentation

USleepVideoSync::USleepVideoSync ( VideoOutput vo,
int  frame_interval,
int  refresh_interval,
bool  interlaced 
)

Definition at line 824 of file vsync.cpp.

USleepVideoSync::~USleepVideoSync (  ) 

Definition at line 830 of file vsync.cpp.


Member Function Documentation

QString USleepVideoSync::getName ( void   )  const [inline, virtual]

Returns name of instanciated VSync method.

Implements VideoSync.

Definition at line 301 of file vsync.h.

bool USleepVideoSync::TryInit ( void   )  [virtual]

Tries to initialize VSync method.

Implements VideoSync.

Definition at line 834 of file vsync.cpp.

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.

Parameters:
sync_delay time until the desired frame or field
See also:
CalcDelay(void), KeepPhase(void)

Implements VideoSync.

Definition at line 839 of file vsync.cpp.

void USleepVideoSync::AdvanceTrigger ( void   )  [virtual]

Use the next frame or field for CalcDelay(void) and WaitForFrame(int).

Implements VideoSync.

Definition at line 849 of file vsync.cpp.


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:13 2010 for MythTV by  doxygen 1.5.5