+ /* pts values are zero-based. */
+ 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.
+
+ input:
+ offset - approximate offset in file to resolve ambiguities
+ pts - video-pts (i.e. current STC of video decoder)
+ output:
+ pts - zero-based PTS value
+ */
+ 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);