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...
 
packet::stream_source_t ssrc () const
 Get SSRC. More...
 
void set_ssrc (const packet::stream_source_t s)
 Set SSRC. More...
 
float fract_loss () const
 Get fraction lost. More...
 
void set_fract_loss (float fract_loss)
 Set fractional loss. Fractional loss is stored in Q.8 format. More...
 
int64_t cum_loss () const
 Get cumulative loss. May be negative in case of packet duplications. More...
 
void set_cum_loss (int64_t cum_loss)
 Set cumulative loss. May be negative in case of packet duplications. More...
 
packet::ext_seqnum_t last_seqnum () const
 Get last seqnum. More...
 
void set_last_seqnum (const packet::ext_seqnum_t x)
 Set last seqnum. More...
 
packet::stream_timestamp_t jitter () const
 Get jitter. More...
 
void set_jitter (const packet::stream_timestamp_t x)
 Set jitter. More...
 
packet::ntp_timestamp_t last_sr () const
 Get LSR. More...
 
void set_last_sr (const packet::ntp_timestamp_t x)
 Set LSR. Stores only the middle 32 bits out of 64 in the NTP timestamp. More...
 
packet::ntp_timestamp_t delay_last_sr () const
 Get DLSR. More...
 
void set_delay_last_sr (const packet::ntp_timestamp_t x)
 Set DLSR. Stores only the middle 32 bits out of 64 in the NTP timestamp. More...
 

Detailed Description

Reception report block.

Part of RR and SR packets.

RFC 3550 6.4.1: "SR: Sender Report RTCP Packet" RFC 3550 6.4.2: "RR: Receiver Report RTCP Packet"

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) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
packet::stream_timestamp_t jitter() const
Get jitter.
Definition: headers.h:461

Definition at line 333 of file headers.h.

Member Function Documentation

◆ cum_loss()

int64_t roc::rtcp::header::ReceptionReportBlock::cum_loss ( ) const
inline

Get cumulative loss. May be negative in case of packet duplications.

Definition at line 420 of file headers.h.

◆ delay_last_sr()

packet::ntp_timestamp_t roc::rtcp::header::ReceptionReportBlock::delay_last_sr ( ) const
inline

Get DLSR.

Definition at line 482 of file headers.h.

◆ fract_loss()

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

Get fraction lost.

Definition at line 388 of file headers.h.

◆ jitter()

packet::stream_timestamp_t roc::rtcp::header::ReceptionReportBlock::jitter ( ) const
inline

Get jitter.

Definition at line 461 of file headers.h.

◆ last_seqnum()

packet::ext_seqnum_t roc::rtcp::header::ReceptionReportBlock::last_seqnum ( ) const
inline

Get last seqnum.

Definition at line 451 of file headers.h.

◆ last_sr()

packet::ntp_timestamp_t roc::rtcp::header::ReceptionReportBlock::last_sr ( ) const
inline

Get LSR.

Definition at line 471 of file headers.h.

◆ reset()

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

Reset to initial state (all zeros).

Definition at line 371 of file headers.h.

◆ set_cum_loss()

void roc::rtcp::header::ReceptionReportBlock::set_cum_loss ( int64_t  cum_loss)
inline

Set cumulative loss. May be negative in case of packet duplications.

Definition at line 436 of file headers.h.

◆ set_delay_last_sr()

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

Set DLSR. Stores only the middle 32 bits out of 64 in the NTP timestamp.

Definition at line 488 of file headers.h.

◆ set_fract_loss()

void roc::rtcp::header::ReceptionReportBlock::set_fract_loss ( float  fract_loss)
inline

Set fractional loss. Fractional loss is stored in Q.8 format.

Definition at line 399 of file headers.h.

◆ set_jitter()

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

Set jitter.

Definition at line 466 of file headers.h.

◆ set_last_seqnum()

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

Set last seqnum.

Definition at line 456 of file headers.h.

◆ set_last_sr()

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

Set LSR. Stores only the middle 32 bits out of 64 in the NTP timestamp.

Definition at line 477 of file headers.h.

◆ set_ssrc()

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

Set SSRC.

Definition at line 383 of file headers.h.

◆ ssrc()

packet::stream_source_t roc::rtcp::header::ReceptionReportBlock::ssrc ( ) const
inline

Get SSRC.

Definition at line 378 of file headers.h.


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