Revert writer to image data

This commit is contained in:
2020-04-28 09:06:10 +02:00
parent a2168edfd0
commit 824157f13b
2 changed files with 3 additions and 11 deletions
+3 -8
View File
@@ -15,8 +15,7 @@ SFWriter::SFWriter(
const size_t n_modules) :
n_frames_(n_frames),
n_modules_(n_modules),
current_write_index_(0),
image_buffer_count_(0)
current_write_index_(0)
{
file_ = H5::H5File(output_file, H5F_ACC_TRUNC);
@@ -58,10 +57,6 @@ SFWriter::SFWriter(
"n_received_packets",
H5::PredType::NATIVE_UINT16,
metadata_dataspace);
image_buffer_ = make_unique<char[]>(
n_modules_ * MODULE_N_BYTES * WRITER_BUFFER_SIZE);
image_buffer_count_ = 0;
}
SFWriter::~SFWriter()
@@ -108,8 +103,8 @@ void SFWriter::write(shared_ptr<DetectorFrame> metadata, char* data) {
H5P_DEFAULT,
0,
offset,
MODULE_N_BYTES * n_modules_ * WRITER_BUFFER_SIZE,
image_buffer_.get()))
MODULE_N_BYTES * n_modules_,
data))
{
stringstream error_message;
using namespace date;