// // C++ Interface: k9decodethread // // Description: // // // Author: Jean-Michel PETIT , (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #ifndef K9DECODETHREAD_H #define K9DECODETHREAD_H #include "k9common.h" #include "k9vamps.h" #include #include #include #include "kdecmpeg2.h" /** @author Jean-Michel PETIT */ class k9DecodeThread : public TQThread { private: kDecMPEG2 *m_decoder; k9fifo m_fifo; TQWaitCondition wDataRead; TQWaitCondition wDataReady; bool noData; public: k9DecodeThread(); ~k9DecodeThread(); void addData(uchar *data,uint size); void setNoData(); void clear(); void sleepms(int _ms); kDecMPEG2 *getDecoder() {return m_decoder;} protected: int readData(uchar * data,uint size); void run(); }; #endif