diff --git a/core-buffer/include/buffer_config.hpp b/core-buffer/include/buffer_config.hpp index 1d06cdc..e1e26dc 100644 --- a/core-buffer/include/buffer_config.hpp +++ b/core-buffer/include/buffer_config.hpp @@ -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. diff --git a/core-buffer/src/BufferH5Writer.cpp b/core-buffer/src/BufferH5Writer.cpp index eb492a6..1f3d021 100644 --- a/core-buffer/src/BufferH5Writer.cpp +++ b/core-buffer/src/BufferH5Writer.cpp @@ -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);