BufferSplit

class BufferSplit : public kotekan::Stage

Splits the input buffer into multiple output frames in a round robin fashion.

Uses zero copy operations if this stage is the only consumer, if not it uses a deep copy. This stage must be the only producer of the output buffers

Buffers

  • in_buf The source buffer

    • Format: Matches the output buffers

    • Metadata: Matches the output buffers

  • out_bufs Array of buffers to fill with frames from in_buf

    • Format: any, but all must be the same type and match in_buf

    • Metadata: any, but all must be the same type match in_buf

Author

Andre Renard

Public Functions

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

Constructor.

~BufferSplit()

Destructor.

virtual void main_thread() override

Thread for splitting the frames over the output buffers.