Belle II Software development
|
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. | |
void | compress (BitStream &out, const int *adc) override |
function to compress | |
void | uncompress (BitStream &in, int *adc) override |
function to decompress | |
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 84 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 241 of file ECLCompress.cc.
|
overridevirtual |
function to compress
Implements ECLCompress.
Definition at line 243 of file ECLCompress.cc.
|
overridevirtual |
function to decompress
Implements ECLCompress.
Definition at line 261 of file ECLCompress.cc.
|
protected |
Average waveform amplitude.
Definition at line 102 of file ECLCompress.h.
|
protected |
Scale factor for quantization.
Definition at line 101 of file ECLCompress.h.
|
protected |
Bit widths for the DCT coefficients for prefix encoding.
Definition at line 103 of file ECLCompress.h.