-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsem_capture_info.h
39 lines (34 loc) · 1.04 KB
/
sem_capture_info.h
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
37
38
39
#ifndef S2500_IMAGE_VIEWER_SEM_CAPTURE_INFO_H
#define S2500_IMAGE_VIEWER_SEM_CAPTURE_INFO_H
#include <cstdint>
class SequenceWriter;
enum CaptureStatus {
STATUS_RUNNING,
STATUS_PAUSED,
STATUS_ERROR,
STATUS_UNINITIALIZED,
};
struct SEMCapture {
uint16_t *dataBuffer = nullptr;
// const uint16_t BUF_SIZE_SAMPLES = 1024;
const uint16_t BUF_SIZE_SAMPLES = 8192;
const uint16_t BUF_SIZEOF_BYTES = sizeof(uint16_t) * BUF_SIZE_SAMPLES;
int datafile = 0;
uint16_t sourceWidth = 4096; // must be divisible by 4
uint16_t sourceHeight = 4096;
double syncDuration = 0;
double frameDuration = 0;
uint8_t scanMode = 0;
double minSync = 65535;
double maxSync = 0;
double syncAverage = 0;
uint32_t syncNum = 0;
double bytesRead = 0;
uint8_t newFrame = 0;
CaptureStatus status = STATUS_UNINITIALIZED;
uint8_t heartbeat = 0;
bool shouldCapture = false;
bool bufferReadyForWrite = true;
double lastRowDurationMicroseconds = -1;
};
#endif //S2500_IMAGE_VIEWER_SEM_CAPTURE_INFO_H