summaryrefslogtreecommitdiff
path: root/client/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/decoder.h')
-rw-r--r--client/decoder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/decoder.h b/client/decoder.h
index 6638189..0913858 100644
--- a/client/decoder.h
+++ b/client/decoder.h
@@ -31,6 +31,8 @@
#include <QSemaphore>
#include <QMutex>
+#include "dv.h"
+
class Decoder : public QThread
{
Q_OBJECT
@@ -42,6 +44,8 @@ public:
void run();
+ void snapshot(char *rgb);
+
protected:
bool eventFilter(QObject *o, QEvent *e);
@@ -49,6 +53,9 @@ private:
volatile bool running;
char *frame;
QSemaphore semaphore;
+
+ char screenshotframe[DVPACKAGE_SIZE];
+ QSemaphore screenshotsemaphore;
QMutex mutex;
};