X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Ftstools.h;h=9d66efc175ec06a6d7dfa26e8b0eac5147f0968e;hp=ed8b9241f285c74189a6078cc778621dc8ecc8ae;hb=fe619dbed1c9bf14a0d442cc16d7e968769bbcc0;hpb=089c965d09e2af09a4731ff164e1b68b3daf8047 diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h index ed8b924..9d66efc 100644 --- a/lib/dvb/tstools.h +++ b/lib/dvb/tstools.h @@ -19,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); @@ -71,14 +74,13 @@ public: return values are the new offset, the length of the found frame (both unaligned), and the (signed) number of frames skipped. */ - int findFrame(off_t &offset, size_t &len, int &direction, int frame_types = frametypeI); + int findFrame(off_t &_iframe_offset, off_t &offset, size_t &len, int &direction, int frame_types = frametypeI); int findNextPicture(off_t &offset, size_t &len, int &distance, int frame_types = frametypeAll); private: int m_pid; int m_maxrange; - eSingleLock m_file_lock; - eRawFile m_file; + ePtr m_source; int m_begin_valid, m_end_valid; pts_t m_pts_begin, m_pts_end;