mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-07 14:34:12 +02:00
Refactoring file format change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user