add getOffset and fix pvrparse for that
[enigma2.git] / lib / dvb / tstools.h
index 55f86fbe57f23a428bb06b5aef1df667e4d8d9d5..f23d8108cf5247090056476cc6d90091e2acc39b 100644 (file)
@@ -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,9 @@ public:
                */
        int fixupPTS(const off_t &offset, pts_t &pts);
        
+               /* get (approximate) offset corresponding to PTS */
+       int getOffset(off_t &offset, pts_t &pts);
+       
        void calcBegin();
        void calcEnd();