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

Reed-Solomon Source or Repair Payload ID (for m=8). More...

#include <headers.h>

Public Member Functions

void clear ()
 Clear header. More...
 
uint32_t sbn () const
 Get source block number. More...
 
void set_sbn (uint32_t val)
 Set source block number. More...
 
uint8_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)
 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

Reed-Solomon Source or Repair Payload ID (for m=8).

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 (24 bits) | Enc. Symb. ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Block Length (k) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Definition at line 197 of file headers.h.

Member Function Documentation

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

Clear header.

Definition at line 215 of file headers.h.

uint8_t roc::fec::RSm8_PayloadID::esi ( ) const
inline

Get encoding symbol ID.

Definition at line 233 of file headers.h.

static packet::FECScheme roc::fec::RSm8_PayloadID::fec_scheme ( )
inlinestatic

Get FEC scheme to which these packets belong to.

Definition at line 210 of file headers.h.

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

Get source block length.

Definition at line 244 of file headers.h.

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

Get number encoding symbols.

Definition at line 254 of file headers.h.

uint32_t roc::fec::RSm8_PayloadID::sbn ( ) const
inline

Get source block number.

Definition at line 220 of file headers.h.

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

Set encoding symbol ID.

Definition at line 238 of file headers.h.

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

Set source block length.

Definition at line 249 of file headers.h.

void roc::fec::RSm8_PayloadID::set_n ( uint16_t  )
inline

Set number encoding symbols.

Definition at line 259 of file headers.h.

void roc::fec::RSm8_PayloadID::set_sbn ( uint32_t  val)
inline

Set source block number.

Definition at line 225 of file headers.h.


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