merge with current ram_buffer branch

This commit is contained in:
2021-02-17 16:22:39 +01:00
43 changed files with 1052 additions and 779 deletions
+7 -2
View File
@@ -51,9 +51,14 @@ namespace BufferUtils
void create_destination_folder(const std::string& output_file);
void* bind_socket(
void* ctx, const std::string& detector_name, const int source_id);
void* ctx,
const std::string& detector_name,
const std::string& stream_name);
void* connect_socket(
void* ctx, const std::string& detector_name, const int source_id);
void* ctx,
const std::string& detector_name,
const std::string& stream_name);
DetectorConfig read_json_config(const std::string& filename);
}
+3 -1
View File
@@ -30,7 +30,9 @@ public:
const uint64_t module_id,
ModuleFrame &meta,
char *data) const;
char* read_image(const uint64_t pulse_id, ImageMetadata &image_meta) const;
char* read_image(const uint64_t pulse_id) const;
void assemble_image(
const uint64_t pulse_id, ImageMetadata &image_meta) const;
};
+5 -3
View File
@@ -20,15 +20,17 @@ namespace buffer_config {
const size_t FOLDER_MOD = 100000;
// Extension of our file format.
const std::string FILE_EXTENSION = ".bin";
// Number of pulses between each statistics print out.
const size_t STATS_MODULO = 100;
// Number of pulses between each statistics print out (buffer_writer, stream2vis...)
const size_t STATS_MODULO = 1000;
// Number of seconds after which statistics is print out (udp_recv)
const size_t STATS_TIME = 10;
// If the RB is empty, how much time to wait before trying to read it again.
const size_t RB_READ_RETRY_INTERVAL_MS = 5;
// How many frames to read at once from file.
const size_t BUFFER_BLOCK_SIZE = 100;
const size_t BUFFER_UDP_N_RECV_MSG = 64;
const size_t BUFFER_UDP_N_RECV_MSG = 128;
// Size of UDP recv buffer
const int BUFFER_UDP_RCVBUF_N_SLOTS = 100;
// 8246 bytes for each UDP packet.