Refactoring file format change

This commit is contained in:
2020-05-25 11:30:32 +02:00
parent 536f841ce2
commit 02c30a54e0
4 changed files with 15 additions and 14 deletions
+13
View File
@@ -2,6 +2,7 @@
#define SF_DAQ_BUFFER_FORMATS_HPP
#include "buffer_config.hpp"
#include "jungfrau.hpp"
struct ImageMetadataBuffer
{
@@ -22,4 +23,16 @@ struct ImageMetadata
uint64_t data_n_bytes;
};
#pragma pack(push)
#pragma pack(1)
struct ReplayModuleFrameBuffer {
ModuleFrame frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
bool is_frame_present[core_buffer::REPLAY_READ_BUFFER_SIZE];
bool is_good_frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
uint16_t module_id;
uint64_t data_n_bytes;
uint16_t n_frames;
};
#pragma pack(pop)
#endif //SF_DAQ_BUFFER_FORMATS_HPP
-12
View File
@@ -51,18 +51,6 @@ struct ModuleFrame {
};
#pragma pack(pop)
#pragma pack(push)
#pragma pack(1)
struct ReplayModuleFrameBuffer {
ModuleFrame frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
bool is_frame_present[core_buffer::REPLAY_READ_BUFFER_SIZE];
bool is_good_frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
uint16_t module_id;
uint64_t data_n_bytes;
uint16_t n_frames;
};
#pragma pack(pop)
struct ModuleFrameBuffer {
ModuleFrame module[JUNGFRAU_N_MODULES];
};
+1 -1
View File
@@ -2,7 +2,7 @@
#define SF_DAQ_BUFFER_REPLAYH5READER_HPP
#include <string>
#include "jungfrau.hpp"
#include "formats.hpp"
#include <H5Cpp.h>
#include <memory>
#include "buffer_config.hpp"
+1 -1
View File
@@ -3,10 +3,10 @@
#include <iostream>
#include <thread>
#include <cstring>
#include <sstream>
#include <zmq.h>
#include "buffer_config.hpp"
#include "jungfrau.hpp"
using namespace std;
using namespace core_buffer;