X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Ftstools.h;h=99827921f84fc20e21fc6e1e172bae88f3e9d3a9;hp=c230a341e580f8e914de48cda41370f7681153a4;hb=a600a785717d30f1f9729592e6e8d9d5b3b9bb38;hpb=3e45b153a93894c4c382d3ba5ded974c738e9589 diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h index c230a34..9982792 100644 --- a/lib/dvb/tstools.h +++ b/lib/dvb/tstools.h @@ -4,6 +4,7 @@ #include #include #include +#include /* * Note: we're interested in PTS values, not STC values. @@ -18,9 +19,12 @@ public: eDVBTSTools(); ~eDVBTSTools(); + void setSource(ePtr &source, const char *streaminfo_filename=NULL); + void closeSource(); + int openFile(const char *filename, int nostreaminfo = 0); void closeFile(); - + void setSyncPID(int pid); void setSearchRange(int maxrange); @@ -75,9 +79,9 @@ public: private: int m_pid; int m_maxrange; - - eRawFile m_file; - + + ePtr m_source; + int m_begin_valid, m_end_valid; pts_t m_pts_begin, m_pts_end; off_t m_offset_begin, m_offset_end;