40 lines
554 B
C++
40 lines
554 B
C++
#ifndef UTIL_H
|
|
#define UTIL_H
|
|
|
|
#include <vector>
|
|
#include <iostream>
|
|
|
|
enum class Layout {
|
|
horizontal,
|
|
vertical
|
|
};
|
|
|
|
enum class CameraMode {
|
|
single,
|
|
dual
|
|
};
|
|
|
|
struct ROI {
|
|
int x, y, width, height;
|
|
};
|
|
|
|
struct CameraLayout {
|
|
std::vector<std::string> devices;
|
|
std::vector<ROI> rois;
|
|
Layout layout;
|
|
CameraMode mode;
|
|
};
|
|
|
|
enum class VideoFormat {
|
|
raw,
|
|
mp4
|
|
};
|
|
|
|
struct ImageSettings {
|
|
int64_t width = 0;
|
|
int64_t height = 0;
|
|
Pylon::EPixelType pixelType;
|
|
Pylon::EImageOrientation orientation;
|
|
};
|
|
|
|
#endif /*UTIL_H*/ |