mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 01:02:42 +02:00
Use H5 filters instead of custom variables
This commit is contained in:
@@ -6,9 +6,6 @@
|
||||
#include <H5Cpp.h>
|
||||
#include "buffer_config.hpp"
|
||||
|
||||
// Bitshuffle LZ4.
|
||||
const H5Z_filter_t BSHUF_H5FILTER = 32008;
|
||||
|
||||
struct ImageMetadata
|
||||
{
|
||||
uint64_t pulse_id;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "WriterH5Writer.hpp"
|
||||
#include <sstream>
|
||||
#include <bitshuffle/bshuf_h5filter.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
@@ -28,8 +29,8 @@ WriterH5Writer::WriterH5Writer(
|
||||
H5::DSetCreatPropList image_dataset_properties;
|
||||
image_dataset_properties.setChunk(3, image_dataset_chunking);
|
||||
|
||||
// block_size, 2==LZ4 compression
|
||||
uint compression_prop[] = {MODULE_N_PIXELS, 2};
|
||||
// block_size, compression type
|
||||
uint compression_prop[] = {MODULE_N_PIXELS, BSHUF_H5_COMPRESS_LZ4};
|
||||
H5Pset_filter(image_dataset_properties.getId(),
|
||||
BSHUF_H5FILTER,
|
||||
H5Z_FLAG_MANDATORY,
|
||||
|
||||
Reference in New Issue
Block a user