TestDropFrames

class TestDropFrames : public kotekan::Stage

Config-driven dropping of frames.

This stage can be interposed between two buffers to drop frames specified in the configuration.

Buffers

  • in_buf Input kotekan buffer, to be (selectively) copied over to out_buf

    • Format: Array of any

    • Metadata: none, or a class derived from kotekanMetadata

  • out_buf Output kotekan buffer, with config-specified frames from in_buf missing

    • Format: Array of datatype

    • Metadata: none, or a class derived from kotekanMetadata

Author

James Willis, Davor Cubranic

Param missing_frames:

Vector of UInt32 (Default: empty). Frames to drop.

Param drop_frame_chance:

Double (Default: 0). Chance of dropping a frame if not in the missing_frames list.

Public Functions

TestDropFrames(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)

Constructor.

~TestDropFrames() = default
virtual void main_thread() override