mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 03:42:23 +02:00
Revert writer to image data
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user