X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ca329d3e86a98aacb0597d8581f5354cc99542e4..c64e82c8bad3393edd88becd31ec1047755f7836:/lib/dvb/tstools.h diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h index 55f86fbe..76128071 100644 --- a/lib/dvb/tstools.h +++ b/lib/dvb/tstools.h @@ -25,7 +25,7 @@ public: /* get first PTS *after* the given offset. */ /* pts values are zero-based. */ - int getPTS(off_t &offset, pts_t &pts); + int getPTS(off_t &offset, pts_t &pts, int fixed=0); /* this fixes up PTS to end up in a [0..len) range. discontinuities etc. are handled here. @@ -38,6 +38,11 @@ public: */ int fixupPTS(const off_t &offset, pts_t &pts); + /* get (approximate) offset corresponding to PTS */ + int getOffset(off_t &offset, pts_t &pts); + + int getNextAccessPoint(pts_t &ts, const pts_t &start, int direction); + void calcBegin(); void calcEnd();