move ImageSettings to util

This commit is contained in:
Jan Grewe 2024-03-11 14:34:53 +01:00
parent f22d3ef302
commit 8c26fb4829
2 changed files with 11 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#ifndef PYLONRECORDER_H #ifndef PYLONWRAPPER_H
#define PYLONRECORDER_H #define PYLONWRAPPER_H
#include <pylon/PylonIncludes.h> #include <pylon/PylonIncludes.h>
#include <pylon/BaslerUniversalInstantCamera.h> #include <pylon/BaslerUniversalInstantCamera.h>
@ -7,13 +7,6 @@
#include "util.h" #include "util.h"
#include "myimage.h" #include "myimage.h"
struct ImageSettings {
int64_t width = 0;
int64_t height = 0;
Pylon::EPixelType pixelType;
Pylon::EImageOrientation orientation;
};
class PylonWrapper class PylonWrapper
{ {
public: public:
@ -47,4 +40,4 @@ private:
}; };
#endif // PYLONRECORDER_H #endif // PYLONWRAPPER_H

8
util.h
View File

@ -29,4 +29,12 @@ enum class VideoFormat {
raw, raw,
mp4 mp4
}; };
struct ImageSettings {
int64_t width = 0;
int64_t height = 0;
Pylon::EPixelType pixelType;
Pylon::EImageOrientation orientation;
};
#endif /*UTIL_H*/ #endif /*UTIL_H*/