Files
sf_daq_buffer/core-buffer/include/formats.hpp
T
babic_a 6928d931ce Add marker for invalid frame_index
So far we used 0 but this is not valid int he Eiger case
where the frame_index gets set to 0 in each acquisition.
2021-07-06 11:22:38 +02:00

39 lines
699 B
C++

#ifndef SF_DAQ_BUFFER_FORMATS_HPP
#define SF_DAQ_BUFFER_FORMATS_HPP
#define INVALID_FRAME_INDEX UINT64_C(-1)
#pragma pack(push)
#pragma pack(1)
struct ModuleFrame {
uint64_t id;
uint64_t pulse_id;
uint64_t frame_index;
uint64_t daq_rec;
uint64_t n_recv_packets;
uint64_t module_id;
uint16_t bit_depth;
uint16_t pos_y;
uint16_t pos_x;
};
#pragma pack(pop)
#pragma pack(push)
#pragma pack(1)
struct ImageMetadata {
uint64_t id;
uint64_t height;
uint64_t width;
uint64_t dtype;
uint64_t encoding;
uint64_t source_id;
uint64_t status;
uint64_t user_1;
uint64_t user_2;
};
#pragma pack(pop)
#endif //SF_DAQ_BUFFER_FORMATS_HPP