MythTV  0.26-pre
Public Member Functions | Private Attributes
RTCVideoSync Class Reference

Video synchronization class employing /dev/rtc. More...

#include <vsync.h>

Inheritance diagram for RTCVideoSync:
VideoSync

List of all members.

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

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 148 of file vsync.h.


Constructor & Destructor Documentation

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

Definition at line 338 of file vsync.cpp.

Definition at line 344 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 155 of file vsync.h.

bool RTCVideoSync::TryInit ( void  ) [virtual]

Tries to initialize VSync method.

Implements VideoSync.

Definition at line 350 of file vsync.cpp.

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.

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

Implements VideoSync.

Definition at line 378 of file vsync.cpp.


Member Data Documentation

Definition at line 160 of file vsync.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends