Move buffer dataset names as variables

This commit is contained in:
2020-05-14 11:03:47 +02:00
parent caa6e53075
commit f5d67c2ff8
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -51,6 +51,13 @@ namespace core_buffer {
// HWM for live stream from buffer.
const int BUFFER_ZMQ_SNDHWM = 100;
// Name of the dataset where we store the images.
const std::string BUFFER_H5_FRAME_DATASET = "image";
// Name of the dataset where we store metadata.
const std::string BUFFER_H5_METADATA_DATASET = "metadata";
// IPC address of the live stream.
const std::string BUFFER_LIVE_IPC_URL = "ipc:///tmp/sf-live-";
// N of IO threads to receive data from modules.
+2 -2
View File
@@ -38,7 +38,7 @@ void BufferH5Writer::create_file(const string& filename)
data_dset_prop.setChunk(3, data_dset_chunking);
current_image_dataset_ = h5_file_.createDataSet(
"image",
BUFFER_H5_FRAME_DATASET,
H5::PredType::NATIVE_UINT16,
data_dspace,
data_dset_prop);
@@ -49,7 +49,7 @@ void BufferH5Writer::create_file(const string& filename)
meta_dset_prop.setChunk(2, meta_dset_chunking);
current_metadata_dataset_ = h5_file_.createDataSet(
"metadata",
BUFFER_H5_METADATA_DATASET,
H5::PredType::NATIVE_UINT64,
meta_dspace,
meta_dset_prop);