mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 15:44:12 +02:00
Rename struct variable
This commit is contained in:
@@ -19,7 +19,7 @@ WriterH5Writer::WriterH5Writer(
|
||||
current_write_index_(0)
|
||||
{
|
||||
|
||||
bshuf_register_h5filter();
|
||||
// bshuf_register_h5filter();
|
||||
|
||||
file_ = H5::H5File(output_file, H5F_ACC_TRUNC);
|
||||
|
||||
@@ -33,16 +33,16 @@ WriterH5Writer::WriterH5Writer(
|
||||
H5::DSetCreatPropList image_dataset_properties;
|
||||
image_dataset_properties.setChunk(3, image_dataset_chunking);
|
||||
|
||||
// block_size, compression type
|
||||
uint compression_prop[] =
|
||||
{MODULE_N_PIXELS, //block size
|
||||
BSHUF_H5_COMPRESS_LZ4}; // Compression type
|
||||
|
||||
H5Pset_filter(image_dataset_properties.getId(),
|
||||
BSHUF_H5FILTER,
|
||||
H5Z_FLAG_MANDATORY,
|
||||
2,
|
||||
&(compression_prop[0]));
|
||||
// // block_size, compression type
|
||||
// uint compression_prop[] =
|
||||
// {MODULE_N_PIXELS, //block size
|
||||
// BSHUF_H5_COMPRESS_LZ4}; // Compression type
|
||||
//
|
||||
// H5Pset_filter(image_dataset_properties.getId(),
|
||||
// BSHUF_H5FILTER,
|
||||
// H5Z_FLAG_MANDATORY,
|
||||
// 2,
|
||||
// &(compression_prop[0]));
|
||||
|
||||
image_dataset_ = file_.createDataSet(
|
||||
"image",
|
||||
@@ -114,7 +114,7 @@ void WriterH5Writer::write(const ImageMetadata* metadata, const char* data) {
|
||||
H5P_DEFAULT,
|
||||
BSHUF_H5FILTER,
|
||||
image_offset,
|
||||
metadata->compressed_image_size,
|
||||
metadata->data_n_bytes,
|
||||
data))
|
||||
{
|
||||
throw runtime_error("Cannot write image dataset.");
|
||||
|
||||
Reference in New Issue
Block a user