summaryrefslogtreecommitdiff
path: root/client/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/decoder.h')
-rw-r--r--client/decoder.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/client/decoder.h b/client/decoder.h
index ca684ed..3a1b30f 100644
--- a/client/decoder.h
+++ b/client/decoder.h
@@ -28,19 +28,28 @@
#define __MIAV_DECODER_H__
#include <QThread>
+#include <QSemaphore>
+#include "frame.h"
class Decoder : public QThread
{
+Q_OBJECT
public:
Decoder();
~Decoder();
- unsigned char *getFrame();
+ Frame *getFrame();
void run();
+protected:
+ bool eventFilter(QObject *o, QEvent *e);
+
private:
- unsigned char *frame;
+ volatile bool running;
+ volatile bool stopped;
+ Frame *frame;
+ QSemaphore semaphore;
};
#endif/*__MIAV_DECODER_H__*/