summaryrefslogtreecommitdiff
path: root/dxr3sysclock.h
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-08-05 23:05:21 +0000
committeraustriancoder <austriancoder>2004-08-05 23:05:21 +0000
commitc47666d42f7972e1b51f9de61ce0fa27c72f3127 (patch)
treee34a87e37901b7f892fb6f330ccb15bcba30039b /dxr3sysclock.h
downloadvdr-plugin-dxr3-c47666d42f7972e1b51f9de61ce0fa27c72f3127.tar.gz
vdr-plugin-dxr3-c47666d42f7972e1b51f9de61ce0fa27c72f3127.tar.bz2
initial import
Diffstat (limited to 'dxr3sysclock.h')
-rw-r--r--dxr3sysclock.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/dxr3sysclock.h b/dxr3sysclock.h
new file mode 100644
index 0000000..50c5540
--- /dev/null
+++ b/dxr3sysclock.h
@@ -0,0 +1,36 @@
+#ifndef _DXR3_SYSCLOCK_H_
+#define _DXR3_SYSCLOCK_H_
+
+//#include <stdint.h>
+#include "dxr3vdrincludes.h"
+#include <linux/em8300.h>
+
+// ==================================
+// work with dxr3's clock
+class cDxr3SysClock
+{
+public:
+ cDxr3SysClock(int fd_control, int fd_video, int fd_spu) : m_fdcontrol(fd_control),
+ m_fdvideo(fd_video), m_fdspu(fd_spu), m_offset(0) {};
+
+ virtual ~cDxr3SysClock() {};
+
+public:
+ void SetSysClock(uint32_t scr);
+ uint32_t GetSysClock(void);
+ void SetPts(uint32_t pts);
+ void SetSpuPts(uint32_t pts);
+
+protected:
+ int m_fdcontrol;
+ int m_fdvideo;
+ int m_fdspu;
+ uint32_t m_offset;
+ cMutex mutex;
+
+protected:
+ cDxr3SysClock(); // you are not allowed to use this contructor
+ cDxr3SysClock(cDxr3SysClock&); // no copy constructor
+};
+
+#endif /*_DXR3_SYSCLOCK_H_*/