RTCVideoSync Class Reference

#include <vsync.h>

Inheritance diagram for RTCVideoSync:

VideoSync

List of all members.


Detailed Description

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

Constructor & Destructor Documentation

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

Definition at line 712 of file vsync.cpp.

RTCVideoSync::~RTCVideoSync (  ) 

Definition at line 718 of file vsync.cpp.


Member Function Documentation

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

Returns name of instanciated VSync method.

Implements VideoSync.

Definition at line 245 of file vsync.h.

bool RTCVideoSync::TryInit ( void   )  [virtual]

Tries to initialize VSync method.

Implements VideoSync.

Definition at line 724 of file vsync.cpp.

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.

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

Implements VideoSync.

Definition at line 752 of file vsync.cpp.

void RTCVideoSync::AdvanceTrigger ( void   )  [virtual]

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

Implements VideoSync.

Definition at line 766 of file vsync.cpp.


Member Data Documentation

int RTCVideoSync::m_rtcfd [private]

Definition at line 251 of file vsync.h.

Referenced by RTCVideoSync(), TryInit(), WaitForFrame(), and ~RTCVideoSync().


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

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