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

Decoder implementation using OpenFEC library. More...

#include <openfec_decoder.h>

Inheritance diagram for roc::fec::OpenfecDecoder:
Collaboration diagram for roc::fec::OpenfecDecoder:

Public Member Functions

 OpenfecDecoder (const CodecConfig &config, packet::PacketFactory &packet_factory, core::IArena &arena)
 Initialize. More...
 
bool is_valid () const
 Check if object is successfully constructed. More...
 
virtual size_t max_block_length () const
 Get the maximum number of encoding symbols for the scheme being used. More...
 
virtual bool begin (size_t sblen, size_t rblen, size_t payload_size)
 Start block. More...
 
virtual void set (size_t index, const core::Slice< uint8_t > &buffer)
 Store source or repair packet buffer for current block. More...
 
virtual core::Slice< uint8_t > repair (size_t index)
 Repair source packet buffer. More...
 
virtual void end ()
 Finish block. More...
 

Detailed Description

Decoder implementation using OpenFEC library.

Definition at line 40 of file openfec_decoder.h.

Constructor & Destructor Documentation

◆ OpenfecDecoder()

roc::fec::OpenfecDecoder::OpenfecDecoder ( const CodecConfig config,
packet::PacketFactory packet_factory,
core::IArena arena 
)
explicit

Initialize.

Member Function Documentation

◆ begin()

virtual bool roc::fec::OpenfecDecoder::begin ( size_t  sblen,
size_t  rblen,
size_t  payload_size 
)
virtual

Start block.

Remarks
Performs an initial setup for a block. Should be called before any operations for the block.

Implements roc::fec::IBlockDecoder.

◆ end()

virtual void roc::fec::OpenfecDecoder::end ( )
virtual

Finish block.

Remarks
Cleanups the resources allocated for the block. Should be called after all operations for the block.

Implements roc::fec::IBlockDecoder.

◆ is_valid()

bool roc::fec::OpenfecDecoder::is_valid ( ) const

Check if object is successfully constructed.

◆ max_block_length()

virtual size_t roc::fec::OpenfecDecoder::max_block_length ( ) const
virtual

Get the maximum number of encoding symbols for the scheme being used.

Implements roc::fec::IBlockDecoder.

◆ repair()

virtual core::Slice<uint8_t> roc::fec::OpenfecDecoder::repair ( size_t  index)
virtual

Repair source packet buffer.

Implements roc::fec::IBlockDecoder.

◆ set()

virtual void roc::fec::OpenfecDecoder::set ( size_t  index,
const core::Slice< uint8_t > &  buffer 
)
virtual

Store source or repair packet buffer for current block.

Implements roc::fec::IBlockDecoder.


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