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

LDPC Repair FEC Payload ID. More...

#include <headers.h>

Public Member Functions

void clear ()
 Clear header. More...
 
uint16_t sbn () const
 Get source block number. More...
 
void set_sbn (uint16_t val)
 Set source block number. More...
 
uint16_t esi () const
 Get encoding symbol ID. More...
 
void set_esi (uint16_t val)
 Set encoding symbol ID. More...
 
uint16_t k () const
 Get source block length. More...
 
void set_k (uint16_t val)
 Set source block length. More...
 
uint16_t n () const
 Get number encoding symbols. More...
 
void set_n (uint16_t val)
 Set number encoding symbols. More...
 

Static Public Member Functions

static packet::FecScheme fec_scheme ()
 Get FEC scheme to which these packets belong to. More...
 

Detailed Description

LDPC Repair FEC Payload ID.

0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Block Number (SBN) | Encoding Symbol ID (ESI) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Block Length (k) | Number Encoding Symbols (n) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
uint16_t k() const
Get source block length.
Definition: headers.h:166
uint16_t n() const
Get number encoding symbols.
Definition: headers.h:176
@ Source
Source packet header of footer.
Definition: headers.h:26

Definition at line 120 of file headers.h.

Member Function Documentation

◆ clear()

void roc::fec::LDPC_Repair_PayloadID::clear ( )
inline

Clear header.

Definition at line 141 of file headers.h.

◆ esi()

uint16_t roc::fec::LDPC_Repair_PayloadID::esi ( ) const
inline

Get encoding symbol ID.

Definition at line 156 of file headers.h.

◆ fec_scheme()

static packet::FecScheme roc::fec::LDPC_Repair_PayloadID::fec_scheme ( )
inlinestatic

Get FEC scheme to which these packets belong to.

Definition at line 136 of file headers.h.

◆ k()

uint16_t roc::fec::LDPC_Repair_PayloadID::k ( ) const
inline

Get source block length.

Definition at line 166 of file headers.h.

◆ n()

uint16_t roc::fec::LDPC_Repair_PayloadID::n ( ) const
inline

Get number encoding symbols.

Definition at line 176 of file headers.h.

◆ sbn()

uint16_t roc::fec::LDPC_Repair_PayloadID::sbn ( ) const
inline

Get source block number.

Definition at line 146 of file headers.h.

◆ set_esi()

void roc::fec::LDPC_Repair_PayloadID::set_esi ( uint16_t  val)
inline

Set encoding symbol ID.

Definition at line 161 of file headers.h.

◆ set_k()

void roc::fec::LDPC_Repair_PayloadID::set_k ( uint16_t  val)
inline

Set source block length.

Definition at line 171 of file headers.h.

◆ set_n()

void roc::fec::LDPC_Repair_PayloadID::set_n ( uint16_t  val)
inline

Set number encoding symbols.

Definition at line 181 of file headers.h.

◆ set_sbn()

void roc::fec::LDPC_Repair_PayloadID::set_sbn ( uint16_t  val)
inline

Set source block number.

Definition at line 151 of file headers.h.


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