X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fdvb.h;h=334901485585852efef45866f6e9b21cce70fe76;hp=fa1801db9a5403e0bb763e5bb057fac5984398bd;hb=849b33656dc710cfa5f644a55680fd396ab1d8d7;hpb=08d4f4729ac8c417f767628ef521dc71f232cf98 diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index fa1801d..3349014 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -135,6 +135,10 @@ class eDVBResourceManager: public iObject, public Object DECLARE_REF(eDVBResourceManager); int avail, busy; + enum { DM7025, DM800, DM500HD, DM800SE, DM8000, DM7020HD }; + + int m_boxtype; + eSmartPtrList m_adapter; eSmartPtrList m_demux; eSmartPtrList m_frontend, m_simulate_frontend; @@ -205,7 +209,7 @@ public: RESULT allocateFrontendByIndex(ePtr &fe, int slot_index); /* allocate a demux able to filter on the selected frontend. */ - RESULT allocateDemux(eDVBRegisteredFrontend *fe, ePtr &demux, int cap); + RESULT allocateDemux(eDVBRegisteredFrontend *fe, ePtr &demux, int &cap); #ifdef SWIG public: #endif @@ -255,7 +259,10 @@ public: /* iDVBPVRChannel */ RESULT playFile(const char *file); void stopFile(); - + + RESULT playSource(ePtr& source, const char *priv=NULL); + void stopSource(); + void setCueSheet(eCueSheet *cuesheet); RESULT getLength(pts_t &len); @@ -264,6 +271,7 @@ public: int getUseCount() { return m_use_count; } RESULT requestTsidOnid(ePyObject callback); + int reserveDemux(); private: ePtr m_frontend; ePtr m_demux, m_decoder_demux; @@ -291,12 +299,12 @@ private: void cueSheetEvent(int event); ePtr m_conn_cueSheetEvent; - int m_skipmode_m, m_skipmode_n; + int m_skipmode_m, m_skipmode_n, m_skipmode_frames, m_skipmode_frames_remainder; std::list > m_source_span; void getNextSourceSpan(off_t current_offset, size_t bytes_read, off_t &start, size_t &size); void flushPVR(iDVBDemux *decoding_demux=0); - + eSingleLock m_cuesheet_lock; friend class eUsePtr;