X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fe478efd1c354b304a3b68aa8fbcc5e5a53e7833..fbefcdd764d2b41d6f80f1e17e64bd72c79fa31d:/lib/dvb/pvrparse.h diff --git a/lib/dvb/pvrparse.h b/lib/dvb/pvrparse.h index 5ca6263d..9a0c3eb0 100644 --- a/lib/dvb/pvrparse.h +++ b/lib/dvb/pvrparse.h @@ -29,14 +29,19 @@ public: /* get delta at specific offset */ pts_t getDelta(off_t offset); - /* fixup timestamp near offset */ - pts_t fixuppts_t(off_t offset, pts_t ts); + /* fixup timestamp near offset, i.e. convert to zero-based */ + int fixupPTS(const off_t &offset, pts_t &ts); + + /* get PTS before offset */ + int getPTS(off_t &offset, pts_t &pts); /* inter/extrapolate timestamp from offset */ pts_t getInterpolated(off_t offset); off_t getAccessPoint(pts_t ts); + int getNextAccessPoint(pts_t &ts, const pts_t &start, int direction); + bool empty(); };