Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::fec::CodecMap Class Reference

FEC codec map. More...

#include <codec_map.h>

Inheritance diagram for roc::fec::CodecMap:
Collaboration diagram for roc::fec::CodecMap:

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...
 
IBlockEncodernew_encoder (const CodecConfig &config, core::BufferFactory< uint8_t > &buffer_factory, core::IArena &arena) const
 Create a new block encoder. More...
 
IBlockDecodernew_decoder (const CodecConfig &config, core::BufferFactory< uint8_t > &buffer_factory, core::IArena &arena) const
 Create a new block decoder. More...
 

Static Public Member Functions

static CodecMapinstance ()
 Get instance. More...
 

Friends

class core::Singleton< CodecMap >
 

Detailed Description

FEC codec map.

Definition at line 27 of file codec_map.h.

Member Function Documentation

◆ instance()

static CodecMap& roc::fec::CodecMap::instance ( )
inlinestatic

Get instance.

Definition at line 30 of file codec_map.h.

◆ is_supported()

bool roc::fec::CodecMap::is_supported ( packet::FecScheme  scheme) const

Check whether given FEC scheme is supported.

◆ new_decoder()

IBlockDecoder* roc::fec::CodecMap::new_decoder ( const CodecConfig config,
core::BufferFactory< uint8_t > &  buffer_factory,
core::IArena arena 
) const

Create a new block decoder.

Remarks
The codec type is determined by config.
Returns
NULL if parameters are invalid or given codec support is not enabled.

◆ new_encoder()

IBlockEncoder* roc::fec::CodecMap::new_encoder ( const CodecConfig config,
core::BufferFactory< uint8_t > &  buffer_factory,
core::IArena arena 
) const

Create a new block encoder.

Remarks
The codec type is determined by config.
Returns
NULL if parameters are invalid or given codec support is not enabled.

◆ nth_scheme()

packet::FecScheme roc::fec::CodecMap::nth_scheme ( size_t  n) const

Get FEC scheme ID by index.

◆ num_schemes()

size_t roc::fec::CodecMap::num_schemes ( ) const

Get number of supported FEC schemes.


The documentation for this class was generated from the following file: