X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ca329d3e86a98aacb0597d8581f5354cc99542e4..a9efd192b545113282c7c7891a231570f49f27e6:/lib/dvb/pvrparse.h diff --git a/lib/dvb/pvrparse.h b/lib/dvb/pvrparse.h index 7b586331..b2ddd23d 100644 --- a/lib/dvb/pvrparse.h +++ b/lib/dvb/pvrparse.h @@ -19,7 +19,10 @@ public: /* timestampDelta is in fact the difference between */ /* the PTS in the stream and a real PTS from 0..max */ std::map m_timestamp_deltas; - + + /* these are non-fixed up pts value (like m_access_points), just used to accelerate stuff. */ + std::multimap m_pts_to_offset; + int save(const char *filename); int load(const char *filename); @@ -38,7 +41,9 @@ public: /* inter/extrapolate timestamp from offset */ pts_t getInterpolated(off_t offset); - off_t getAccessPoint(pts_t ts); + off_t getAccessPoint(pts_t ts, int marg=0); + + int getNextAccessPoint(pts_t &ts, const pts_t &start, int direction); bool empty(); };