Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
FEC writer. More...
#include <writer.h>
Public Member Functions | |
Writer (const WriterConfig &config, packet::FecScheme fec_scheme, IBlockEncoder &encoder, packet::IWriter &writer, packet::IComposer &source_composer, packet::IComposer &repair_composer, packet::PacketFactory &packet_factory, core::IArena &arena) | |
Initialize. More... | |
bool | is_valid () const |
Check if object is successfully constructed. More... | |
bool | is_alive () const |
Check if writer is still working. More... | |
bool | resize (size_t sblen, size_t rblen) |
Set number of source packets per block. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | write (const packet::PacketPtr &) |
Write packet. More... | |
roc::fec::Writer::Writer | ( | const WriterConfig & | config, |
packet::FecScheme | fec_scheme, | ||
IBlockEncoder & | encoder, | ||
packet::IWriter & | writer, | ||
packet::IComposer & | source_composer, | ||
packet::IComposer & | repair_composer, | ||
packet::PacketFactory & | packet_factory, | ||
core::IArena & | arena | ||
) |
Initialize.
Parameters
config
contains FEC scheme parametersencoder
is used to encode repair packetswriter
is used to write source and repair packetssource_composer
is used to format source packetsrepair_composer
is used to format repair packetspacket_factory
is used to allocate repair packetsbuffer_factory
is used to allocate buffers for repair packetsarena
is used to initialize a packet array bool roc::fec::Writer::is_alive | ( | ) | const |
Check if writer is still working.
bool roc::fec::Writer::is_valid | ( | ) | const |
Check if object is successfully constructed.
bool roc::fec::Writer::resize | ( | size_t | sblen, |
size_t | rblen | ||
) |
Set number of source packets per block.
|
virtual |
Write packet.
Implements roc::packet::IWriter.