X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0af11516cabc973907890f548925a66313c8d18c..3c2c648735df18576453aa52f0d8441793619dc7:/lib/dvb/tstools.h diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h index 4ec4b66a..509946de 100644 --- a/lib/dvb/tstools.h +++ b/lib/dvb/tstools.h @@ -9,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 { @@ -26,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;