-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProducerDisplayThread.h
More file actions
36 lines (32 loc) · 843 Bytes
/
ProducerDisplayThread.h
File metadata and controls
36 lines (32 loc) · 843 Bytes
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
35
#pragma once
#include "ProducerThread.h"
#include "qwidget.h"
#include "PixmapReadyObject.h"
class ProducerDisplayThread :
public ProducerThread
{
public:
ProducerDisplayThread(int bufsize, MicroscopeManager* mm, QObject* mainWindow, int* targetFrameInfo);
~ProducerDisplayThread();
void StartThreads();
void WaitForThread();
void processPixmap();
private:
void CheckFrameInfo();
void Display();
std::thread disThd_;
unsigned char* disBuf_;
QObject* mainWindow_;
int* targetFrameInfo_;
unsigned long long width;
unsigned long long height;
float framerate;
std::atomic_bool pixmapProcessed;
PixmapReadyObject* pix_;
unsigned long long bufferCount_;
bool endDisplay_;
int frameCount_;
int currentFrame_;
int framesToDrop_;
std::thread frameThd_;
};