@@ -126,8 +126,11 @@ class sz_plugin: public libpressio_compressor_plugin {
126126 set (options, " sz:accelerate_pw_rel_compression" , confparams_cpr->accelerate_pw_rel_compression );
127127 set_type (options, " sz:prediction_mode" , pressio_option_int32_type);
128128 set_type (options, " sz:data_type" , pressio_option_double_type);
129- #if PRESSIO_SZ_VERSION_GREATEREQ(2,1,9,0)
130- set (options, " sz:exafel:peaks" , exafel_peaks);
129+ #if PRESSIO_SZ_VERSION_GREATEREQ(2,1,11,1)
130+ set (options, " sz:exafel:peaks_segs" , exafel_peaks_segs);
131+ set (options, " sz:exafel:peaks_rows" , exafel_peaks_rows);
132+ set (options, " sz:exafel:peaks_cols" , exafel_peaks_cols);
133+ set (options, " sz:exafel:num_peaks" , static_cast <unsigned int >(exafel_params.numPeaks ));
131134 set (options, " sz:exafel:calib_panel" , exafel_calibPanel);
132135 set (options, " sz:exafel:tolerance" , exafel_params.tolerance );
133136 set (options, " sz:exafel:bin_size" , static_cast <unsigned int >(exafel_params.binSize ));
@@ -186,16 +189,25 @@ class sz_plugin: public libpressio_compressor_plugin {
186189 get (options, " sz:data_type" , &confparams_cpr->dataType );
187190 get (options, " sz:app" , &app);
188191 get (options, " sz:user_params" , &user_params);
189- #if PRESSIO_SZ_VERSION_GREATEREQ(2,1,9,0 )
192+ #if PRESSIO_SZ_VERSION_GREATEREQ(2,1,11,1 )
190193{
191- if (get (options, " sz:exafel:peaks" , &exafel_peaks) == pressio_options_key_set) {
192- exafel_params.peaks = static_cast <uint8_t *>(exafel_peaks.data ());
194+ unsigned int temp;
195+ if (get (options, " sz:exafel:peaks_segs" , &exafel_peaks_segs) == pressio_options_key_set) {
196+ exafel_params.peaksSegs = static_cast <uint16_t *>(exafel_peaks_segs.data ());
197+ }
198+ if (get (options, " sz:exafel:peaks_rows" , &exafel_peaks_rows) == pressio_options_key_set) {
199+ exafel_params.peaksRows = static_cast <uint16_t *>(exafel_peaks_rows.data ());
200+ }
201+ if (get (options, " sz:exafel:peaks_cols" , &exafel_peaks_cols) == pressio_options_key_set) {
202+ exafel_params.peaksCols = static_cast <uint16_t *>(exafel_peaks_cols.data ());
203+ }
204+ if (get (options, " sz:exafel:num_peaks" , &temp) == pressio_options_key_set) {
205+ exafel_params.numPeaks =static_cast <uint64_t >(temp);
193206 }
194207 if (get (options, " sz:exafel:calib_panel" , &exafel_calibPanel) == pressio_options_key_set) {
195208 exafel_params.calibPanel = static_cast <uint8_t *>(exafel_calibPanel.data ());
196209 }
197210 get (options, " sz:exafel:tolerance" , &exafel_params.tolerance );
198- unsigned int temp;
199211 if (get (options, " sz:exafel:bin_size" , &temp) == pressio_options_key_set) {
200212 exafel_params.binSize =static_cast <uint8_t >(temp);
201213 }
@@ -336,8 +348,10 @@ class sz_plugin: public libpressio_compressor_plugin {
336348 std::string sz_version;
337349 std::string app = " SZ" ;
338350 void * user_params = nullptr ;
339- #if PRESSIO_SZ_VERSION_GREATEREQ(2,1,9,0)
340- pressio_data exafel_peaks;
351+ #if PRESSIO_SZ_VERSION_GREATEREQ(2,1,11,1)
352+ pressio_data exafel_peaks_segs;
353+ pressio_data exafel_peaks_rows;
354+ pressio_data exafel_peaks_cols;
341355 pressio_data exafel_calibPanel;
342356 exafelSZ_params exafel_params{};
343357#endif
0 commit comments