You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
905 B
53 lines
905 B
//
|
|
// 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 <tqthread.h>
|
|
#include <tqobject.h>
|
|
#include <tqwaitcondition.h>
|
|
|
|
#include "kdecmpeg2.h"
|
|
|
|
/**
|
|
@author Jean-Michel PETIT <k9copy@free.fr>
|
|
*/
|
|
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
|