add a blinking point to the infobar
[enigma2.git] / lib / dvb / tstools.h
index a50ab4419a05c3b040a3cb96ebb794c4dbf819f0..509946de6edcdfb2ffc942dda5a790bd3a2328c9 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __lib_dvb_tstools_h
 #define __lib_dvb_tstools_h
 
+#include <config.h>
 #include <sys/types.h>
 
 /*
@@ -8,7 +9,7 @@
  * thus we're not evaluating PES headers, not adaption fields.
  */
 
-typedef unsigned long long pts_t;
+typedef long long pts_t;
 
 class eDVBTSTools
 {
@@ -25,11 +26,15 @@ public:
                /* get first PTS *after* the given offset. */
        int getPTS(off_t &offset, pts_t &pts);
        
+       int getPosition(off_t &offset, pts_t &pts);
+       
        void calcBegin();
        void calcEnd();
        
        int calcLen(pts_t &len);
        
+       int calcBitrate(); /* in bits/sec */
+       
 private:
        int m_fd, m_pid;
        int m_maxrange;