Source

kinect-playground / hidecam2 / workerthread.h

#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H

#include <QThread>
#include <QtDebug>
#include "cv.h"
#include "kinectbinding.h"

class WorkerThread : public QThread
{
    Q_OBJECT
public:
    explicit WorkerThread(QObject *parent = 0);
    void stop();

private:
    void run();
    bool running;
    KinectBinding *kbinding;

    void img2yuyv(IplImage *img, char *dest);

signals:
    void ImageChanged(IplImage *img);

public slots:


};

#endif // WORKERTHREAD_H