-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDisplayThread.h
More file actions
37 lines (32 loc) · 848 Bytes
/
DisplayThread.h
File metadata and controls
37 lines (32 loc) · 848 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
36
#pragma once
#include "MMThread.h"
#include "MicroscopeManager.h"
#include "ui_MicroscopeManagerGUI.h"
#include "PixmapReadyObject.h"
class DisplayThread :
public MMThread
{
public:
DisplayThread(unsigned long long bufferCount, MicroscopeManager* mm, QObject* mainWindow, int* targetFrameInfo);
~DisplayThread();
void WaitForThread();
private:
void Display();
void CheckFrameInfo();
unsigned long long bufferCount_;
std::thread disThd_;
std::thread frameThd_;
MicroscopeManager* mm_;
unsigned char* buf_;
int* targetFrameInfo_;
QObject* mainWindow_;
unsigned long long width;
unsigned long long height;
float framerate;
std::atomic_bool pixmapProcessed;
PixmapReadyObject* pix_;
int frameCount_;
int volumeCount_;
int currentFrame_;
int framesToDrop_;
};