Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
FEC codec map. More...
#include <codec_map.h>
Public Member Functions | |
bool | is_supported (packet::FecScheme scheme) const |
Check whether given FEC scheme is supported. More... | |
size_t | num_schemes () const |
Get number of supported FEC schemes. More... | |
packet::FecScheme | nth_scheme (size_t n) const |
Get FEC scheme ID by index. More... | |
IBlockEncoder * | new_encoder (const CodecConfig &config, packet::PacketFactory &packet_factory, core::IArena &arena) const |
Create a new block encoder. More... | |
IBlockDecoder * | new_decoder (const CodecConfig &config, packet::PacketFactory &packet_factory, core::IArena &arena) const |
Create a new block decoder. More... | |
Static Public Member Functions | |
static CodecMap & | instance () |
Get instance. More... | |
Friends | |
class | core::Singleton< CodecMap > |
FEC codec map.
Definition at line 27 of file codec_map.h.
|
inlinestatic |
Get instance.
Definition at line 30 of file codec_map.h.
bool roc::fec::CodecMap::is_supported | ( | packet::FecScheme | scheme | ) | const |
Check whether given FEC scheme is supported.
IBlockDecoder* roc::fec::CodecMap::new_decoder | ( | const CodecConfig & | config, |
packet::PacketFactory & | packet_factory, | ||
core::IArena & | arena | ||
) | const |
Create a new block decoder.
config
.IBlockEncoder* roc::fec::CodecMap::new_encoder | ( | const CodecConfig & | config, |
packet::PacketFactory & | packet_factory, | ||
core::IArena & | arena | ||
) | const |
Create a new block encoder.
config
.packet::FecScheme roc::fec::CodecMap::nth_scheme | ( | size_t | n | ) | const |
Get FEC scheme ID by index.
size_t roc::fec::CodecMap::num_schemes | ( | ) | const |
Get number of supported FEC schemes.