diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /k9decmpeg/k9decodethread.h | |
download | k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip |
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9decmpeg/k9decodethread.h')
-rw-r--r-- | k9decmpeg/k9decodethread.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/k9decmpeg/k9decodethread.h b/k9decmpeg/k9decodethread.h new file mode 100644 index 0000000..b98abb5 --- /dev/null +++ b/k9decmpeg/k9decodethread.h @@ -0,0 +1,52 @@ +// +// C++ Interface: k9decodethread +// +// Description: +// +// +// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2006 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef K9DECODETHREAD_H +#define K9DECODETHREAD_H +#include "k9common.h" +#include "k9vamps.h" + +#include <qthread.h> +#include <qobject.h> +#include <qwaitcondition.h> + +#include "kdecmpeg2.h" + +/** + @author Jean-Michel PETIT <k9copy@free.fr> +*/ +class k9DecodeThread : public QThread +{ +private: + kDecMPEG2 *m_decoder; + k9fifo m_fifo; + QWaitCondition wDataRead; + QWaitCondition 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 |