X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fe813cde98c0c550137b47dd7a75ec2d4d9e6f34..d3f4cf09ab23a7a8945730679b1d3b36e41cf870:/lib/dvb/tstools.h diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h index a50ab441..509946de 100644 --- a/lib/dvb/tstools.h +++ b/lib/dvb/tstools.h @@ -1,6 +1,7 @@ #ifndef __lib_dvb_tstools_h #define __lib_dvb_tstools_h +#include #include /* @@ -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;