28 lines
494 B
C++
28 lines
494 B
C++
#ifndef STREAM_READER_H
|
|
#define STREAM_READER_H
|
|
|
|
#include <QThread>
|
|
#include <QDebug>
|
|
#include <PvDevice.h>
|
|
#include <PvStream.h>
|
|
#include <PvPipeline.h>
|
|
|
|
class StreamReader : public QThread
|
|
{
|
|
Q_OBJECT;
|
|
|
|
void run();
|
|
|
|
public:
|
|
StreamReader(PvDevice *Device, PvStream *Stream, PvPipeline *Pipeline);
|
|
|
|
signals:
|
|
void NewImage(int width, int height, uint8_t *imgPointer);
|
|
|
|
private:
|
|
PvDevice *Device = NULL;
|
|
PvStream *Stream = NULL;
|
|
PvPipeline *Pipeline = NULL;
|
|
};
|
|
|
|
#endif |