Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtcp::header::ReceptionReportBlock Class Reference

Reception report block. More...

#include <headers.h>

Public Member Functions

void reset ()
 Reset to initial state (all zeros). More...
 
uint32_t ssrc () const
 Get SSRC. More...
 
void set_ssrc (const uint32_t s)
 Set SSRC. More...
 
float fract_loss () const
 Get fraction lost. More...
 
void set_fract_loss (const ssize_t nlost, const size_t noverall)
 Set fractional loss. More...
 
int32_t cumloss () const
 Get cumulative loss. More...
 
void set_cumloss (int32_t l)
 Set cumulative loss. More...
 
uint32_t last_seqnum () const
 Get last seqnum. More...
 
void set_last_seqnum (const uint32_t x)
 Set last seqnum. More...
 
uint32_t jitter () const
 Get jitter. More...
 
void set_jitter (const uint32_t x)
 Set jitter. More...
 
uint32_t last_sr () const
 Get LSR. More...
 
void set_last_sr (const uint32_t x)
 Set LSR. More...
 
uint32_t delay_last_sr () const
 Get DLSR. More...
 
void set_delay_last_sr (const uint32_t x)
 Set DLSR. More...
 

Detailed Description

Reception report block.

Part of RR and SR packets.

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
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
| SSRC |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| fraction lost | cumulative number of packets lost |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| extended highest sequence number received |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| interarrival jitter |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| last SR (LSR) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| delay since last SR (DLSR) |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
uint32_t jitter() const
Get jitter.
Definition: headers.h:413

Definition at line 288 of file headers.h.

Member Function Documentation

◆ cumloss()

int32_t roc::rtcp::header::ReceptionReportBlock::cumloss ( ) const
inline

Get cumulative loss.

May be negative in case of packet repeats.

Definition at line 374 of file headers.h.

◆ delay_last_sr()

uint32_t roc::rtcp::header::ReceptionReportBlock::delay_last_sr ( ) const
inline

Get DLSR.

Definition at line 433 of file headers.h.

◆ fract_loss()

float roc::rtcp::header::ReceptionReportBlock::fract_loss ( ) const
inline

Get fraction lost.

Definition at line 344 of file headers.h.

◆ jitter()

uint32_t roc::rtcp::header::ReceptionReportBlock::jitter ( ) const
inline

Get jitter.

Definition at line 413 of file headers.h.

◆ last_seqnum()

uint32_t roc::rtcp::header::ReceptionReportBlock::last_seqnum ( ) const
inline

Get last seqnum.

Definition at line 403 of file headers.h.

◆ last_sr()

uint32_t roc::rtcp::header::ReceptionReportBlock::last_sr ( ) const
inline

Get LSR.

Definition at line 423 of file headers.h.

◆ reset()

void roc::rtcp::header::ReceptionReportBlock::reset ( )
inline

Reset to initial state (all zeros).

Definition at line 329 of file headers.h.

◆ set_cumloss()

void roc::rtcp::header::ReceptionReportBlock::set_cumloss ( int32_t  l)
inline

Set cumulative loss.

May be negative in case of packet repeats.

Definition at line 387 of file headers.h.

◆ set_delay_last_sr()

void roc::rtcp::header::ReceptionReportBlock::set_delay_last_sr ( const uint32_t  x)
inline

Set DLSR.

Definition at line 438 of file headers.h.

◆ set_fract_loss()

void roc::rtcp::header::ReceptionReportBlock::set_fract_loss ( const ssize_t  nlost,
const size_t  noverall 
)
inline

Set fractional loss.

Fractional loss is stored in Q.8 format.

Definition at line 355 of file headers.h.

◆ set_jitter()

void roc::rtcp::header::ReceptionReportBlock::set_jitter ( const uint32_t  x)
inline

Set jitter.

Definition at line 418 of file headers.h.

◆ set_last_seqnum()

void roc::rtcp::header::ReceptionReportBlock::set_last_seqnum ( const uint32_t  x)
inline

Set last seqnum.

Definition at line 408 of file headers.h.

◆ set_last_sr()

void roc::rtcp::header::ReceptionReportBlock::set_last_sr ( const uint32_t  x)
inline

Set LSR.

Definition at line 428 of file headers.h.

◆ set_ssrc()

void roc::rtcp::header::ReceptionReportBlock::set_ssrc ( const uint32_t  s)
inline

Set SSRC.

Definition at line 339 of file headers.h.

◆ ssrc()

uint32_t roc::rtcp::header::ReceptionReportBlock::ssrc ( ) const
inline

Get SSRC.

Definition at line 334 of file headers.h.


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