Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
FEC reader. More...
#include <reader.h>
Public Member Functions | |
Reader (const ReaderConfig &config, packet::FecScheme fec_scheme, IBlockDecoder &decoder, packet::IReader &source_reader, packet::IReader &repair_reader, packet::IParser &parser, packet::PacketFactory &packet_factory, core::IArena &arena) | |
Initialize. More... | |
bool | is_valid () const |
Check if object is successfully constructed. More... | |
bool | is_started () const |
Did decoder catch block beginning? More... | |
bool | is_alive () const |
Is decoder alive? More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | read (packet::PacketPtr &) |
Read packet. More... | |
roc::fec::Reader::Reader | ( | const ReaderConfig & | config, |
packet::FecScheme | fec_scheme, | ||
IBlockDecoder & | decoder, | ||
packet::IReader & | source_reader, | ||
packet::IReader & | repair_reader, | ||
packet::IParser & | parser, | ||
packet::PacketFactory & | packet_factory, | ||
core::IArena & | arena | ||
) |
Initialize.
Parameters
config
contains FEC scheme parametersdecoder
specifies FEC codec implementation;source_reader
specifies input queue with data packets;repair_reader
specifies input queue with FEC packets;parser
specifies packet parser for restored packets.arena
is used to initialize a packet array bool roc::fec::Reader::is_alive | ( | ) | const |
Is decoder alive?
bool roc::fec::Reader::is_started | ( | ) | const |
Did decoder catch block beginning?
bool roc::fec::Reader::is_valid | ( | ) | const |
Check if object is successfully constructed.
|
virtual |
Read packet.
Implements roc::packet::IReader.