X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fdvb%2Ftstools.h;h=4bc04729c42056c3ab645ce46cb5a56249f0cb2f;hb=a34ef895210161a8820e96829ac87806566e7858;hp=71e00df968242573c5aa48efe44a03a64c1cadb4;hpb=fe5b6c2f255b91bfe2fb512576082afb9d0fd84a;p=vuplus_dvbapp diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h index 71e00df..4bc0472 100644 --- a/lib/dvb/tstools.h +++ b/lib/dvb/tstools.h @@ -18,7 +18,7 @@ public: eDVBTSTools(); ~eDVBTSTools(); - int openFile(const char *filename); + int openFile(const char *filename, int nostreaminfo = 0); void closeFile(); void setSyncPID(int pid); @@ -40,7 +40,7 @@ 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 getOffset(off_t &offset, pts_t &pts, int marg=0); int getNextAccessPoint(pts_t &ts, const pts_t &start, int direction); @@ -52,6 +52,7 @@ public: int calcBitrate(); /* in bits/sec */ void takeSamples(); + int takeSample(off_t off, pts_t &p); int findPMT(int &pmt_pid, int &service_id); private: