compressLostSamples

class compressLostSamples : public kotekan::Stage

Compresses the lost samples buffer into an array of samples_per_data_set/compression_factor values with the number of individual samples lost in each block of compression_factor values.

Buffers

  • in_buf Kotekan buffer of lost samples.

    • Format: Array of chars

  • out_buf Kotekan buffer of compressed lost samples.

    • Format: Array of uint32_t

Author

James Willis, Andre Renard

Param samples_per_data_set:

Int. No. of samples.

Param compression_factor:

Int. Number of samples to group.

Param zero_all_in_group:

bool. If this set to true then one or more samples is lost in a compression_factor group, then consider that to be a total of compression_factor lost samples for the metadata lost_samples value.

Public Functions

compressLostSamples(kotekan::Config &config_, const std::string &unique_name, kotekan::bufferContainer &buffer_container)

Constructor.

virtual ~compressLostSamples()

Destructor.

virtual void main_thread() override

Primary loop to wait for buffers, dig through data, stuff packets lather, rinse and repeat.