X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/dba614edd2aad3c17e244914eaef3809d8300cb1..4aa7b11f525aaa22b3ad6b0d247ea67f39b498de:/lib/dvb/decoder.h diff --git a/lib/dvb/decoder.h b/lib/dvb/decoder.h index b566df89..d1f040ec 100644 --- a/lib/dvb/decoder.h +++ b/lib/dvb/decoder.h @@ -11,9 +11,17 @@ private: ePtr m_demux; int m_fd, m_fd_demux; public: + enum {aMPEG, aAC3, aDTS }; eDVBAudio(eDVBDemux *demux, int dev); - int startPid(int pid); + int startPid(int pid, int type); void stop(); +#if HAVE_DVB_API_VERSION < 3 + void start(); + void stopPid(); +#endif + void flush(); + void freeze(); + void unfreeze(); virtual ~eDVBAudio(); }; @@ -23,21 +31,45 @@ DECLARE_REF(eDVBVideo); private: ePtr m_demux; int m_fd, m_fd_demux; + + int m_is_slow_motion, m_is_fast_forward; public: eDVBVideo(eDVBDemux *demux, int dev); int startPid(int pid); void stop(); +#if HAVE_DVB_API_VERSION < 3 + void start(); + void stopPid(); +#endif + void flush(); + void freeze(); + int setSlowMotion(int repeat); + int setFastForward(int skip); + void unfreeze(); virtual ~eDVBVideo(); }; -class eTSMPEGDecoder: public iTSMPEGDecoder +class eDVBPCR: public iObject +{ +DECLARE_REF(eDVBPCR); +private: + ePtr m_demux; + int m_fd_demux; +public: + eDVBPCR(eDVBDemux *demux); + int startPid(int pid); + void stop(); + virtual ~eDVBPCR(); +}; + +class eTSMPEGDecoder: public Object, public iTSMPEGDecoder { DECLARE_REF(eTSMPEGDecoder); private: ePtr m_demux; ePtr m_audio; ePtr m_video; - + ePtr m_pcr; int m_vpid, m_apid, m_atype, m_pcrpid; enum { @@ -47,6 +79,9 @@ private: }; int m_changed; int setState(); + ePtr m_demux_event; + + void demux_event(int event); public: enum { pidNone = -1 }; eTSMPEGDecoder(eDVBDemux *demux, int decoder); @@ -60,7 +95,9 @@ public: RESULT unfreeze(); RESULT setSinglePictureMode(int when); RESULT setPictureSkipMode(int what); + RESULT setFastForward(int frames_to_skip); RESULT setSlowMotion(int repeat); RESULT setZoom(int what); + RESULT flush(); }; #endif