Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::rtcp::header::ReceptionReportBlock Class Reference

Reception report block. More...

#include <headers.h>

Public Member Functions

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

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:410

Definition at line 285 of file headers.h.

Constructor & Destructor Documentation

◆ ReceptionReportBlock()

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

Definition at line 321 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 371 of file headers.h.

◆ delay_last_sr()

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

Get DLSR.

Definition at line 430 of file headers.h.

◆ fract_loss()

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

Get fraction lost.

Definition at line 341 of file headers.h.

◆ jitter()

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

Get jitter.

Definition at line 410 of file headers.h.

◆ last_seqnum()

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

Get last seqnum.

Definition at line 400 of file headers.h.

◆ last_sr()

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

Get LSR.

Definition at line 420 of file headers.h.

◆ reset()

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

Reset to initial state (all zeros).

Definition at line 326 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 384 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 435 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 352 of file headers.h.

◆ set_jitter()

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

Set jitter.

Definition at line 415 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 405 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 425 of file headers.h.

◆ set_ssrc()

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

Set SSRC.

Definition at line 336 of file headers.h.

◆ ssrc()

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

Get SSRC.

Definition at line 331 of file headers.h.


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