X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fdvb.h;h=334901485585852efef45866f6e9b21cce70fe76;hp=1a773efadb4d8a1f6b00a473061f58acb1c2412b;hb=849b33656dc710cfa5f644a55680fd396ab1d8d7;hpb=0c59a4279f93f08fe95fca5f2e55f3e025f0cceb diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index 1a773ef..3349014 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -10,8 +10,11 @@ #include #include #include +#include #include +#include + class eDVBChannel; /* we do NOT handle resource conflicts here. instead, the allocateChannel @@ -132,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; @@ -184,7 +191,7 @@ public: }; RESULT connectChannelAdded(const Slot1 &channelAdded, ePtr &connection); - int canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore); + int canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore, bool simulate=false); /* allocate channel... */ RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel, bool simulate=false); @@ -202,11 +209,11 @@ 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 - int canAllocateFrontend(ePtr &feparm); + int canAllocateFrontend(ePtr &feparm, bool simulate=false); bool canMeasureFrontendInputPower(); PSignal1 frontendUseMaskChanged; SWIG_VOID(RESULT) allocateRawChannel(eUsePtr &SWIG_OUTPUT, int slot_index); @@ -252,13 +259,19 @@ 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); RESULT getCurrentPosition(iDVBDemux *decoding_demux, pts_t &pos, int mode); int getUseCount() { return m_use_count; } + + RESULT requestTsidOnid(ePyObject callback); + int reserveDemux(); private: ePtr m_frontend; ePtr m_demux, m_decoder_demux; @@ -286,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; @@ -299,6 +312,12 @@ private: oRefCount m_use_count; void AddUse(); void ReleaseUse(); + + /* for tsid/onid read */ + ePyObject m_tsid_onid_callback; + ePtr m_tsid_onid_demux; + ePtr > m_SDT; + void SDTready(int err); }; #endif // SWIG