![]() |
Belle II Software
release-05-02-19
|
ECL waveform compression/decompression to/from the BitStream storage based on the Discrete Cosine Transform (DCT) More...
#include <ECLCompress.h>


Public Member Functions | |
| ECLDCTCompress (double scale, double c0, width_t *w) | |
| Constructor for DCT based compression algorithm. More... | |
| void | compress (BitStream &out, const int *adc) override |
| Compress the ECL waveform. More... | |
| void | uncompress (BitStream &out, int *adc) override |
| Decompress the ECL waveform. More... | |
Protected Attributes | |
| const double | m_scale |
| Scale factor for quantization. | |
| const double | m_c0 |
| Average waveform amplitude. | |
| const width_t * | m_widths |
| Bit widths for the DCT coefficients for prefix encoding. | |
ECL waveform compression/decompression to/from the BitStream storage based on the Discrete Cosine Transform (DCT)
Definition at line 157 of file ECLCompress.h.
| ECLDCTCompress | ( | double | scale, |
| double | c0, | ||
| width_t * | w | ||
| ) |
Constructor for DCT based compression algorithm.
| scale | scale factor for quantization. |
| c0 | average waveform amplitude. @w DCT coefficient probability density based bit widths for quantized coefficients |
Definition at line 240 of file ECLCompress.cc.
|
overridevirtual |
Compress the ECL waveform.
| out | – where we stream the compressed data |
| adc | – the waveform to compress |
Implements ECLCompress.
Definition at line 242 of file ECLCompress.cc.
|
overridevirtual |
Decompress the ECL waveform.
| in | – the stream from which we fetch the compressed data |
| adc | – the decompressed waveform |
Implements ECLCompress.
Definition at line 260 of file ECLCompress.cc.