Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::fec::CodecMap Class Reference

FEC codec map. More...

#include <codec_map.h>

Inheritance diagram for roc::fec::CodecMap:
roc::core::NonCopyable< T >

Public Member Functions

bool is_supported (packet::FecScheme scheme) const
 Check whether given FEC scheme is supported.
 
size_t num_schemes () const
 Get number of supported FEC schemes.
 
packet::FecScheme nth_scheme (size_t n) const
 Get FEC scheme ID by index.
 
IBlockEncodernew_encoder (const CodecConfig &config, core::BufferFactory< uint8_t > &buffer_factory, core::IArena &arena) const
 Create a new block encoder.
 
IBlockDecodernew_decoder (const CodecConfig &config, core::BufferFactory< uint8_t > &buffer_factory, core::IArena &arena) const
 Create a new block decoder.
 

Static Public Member Functions

static CodecMapinstance ()
 Get instance.
 

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.

Friends And Related Symbol Documentation

◆ core::Singleton< CodecMap >

friend class core::Singleton< CodecMap >
friend

Definition at line 61 of file codec_map.h.


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