summaryrefslogtreecommitdiff
path: root/tests/examples/videoxoverlay/gstthread.h
blob: 7e9ce5fddb88870732ad9c35a57bec390c476b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef GSTTHREAD_H
#define GSTTHREAD_H

#include <QtGui>
#include <QtCore/QThread>

#include "pipeline.h"

class GstThread : public QThread
{
    Q_OBJECT

public:
    GstThread(const WId winId = 0, QObject *parent = 0);
    ~GstThread();

public slots:
    void exposeRequested();
    void resize(int width, int height);
    void stop();

signals:
    void resizeRequested(int width, int height);
    
protected:
    void run();

private:
    const WId m_winId;
    Pipeline* m_pipeline;

};

#endif