Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtp::Filter Class Reference

RTP filter. More...

#include <filter.h>

Inheritance diagram for roc::rtp::Filter:
Collaboration diagram for roc::rtp::Filter:

Public Member Functions

 Filter (packet::IReader &reader, audio::IFrameDecoder &decoder, const FilterConfig &config, const audio::SampleSpec &sample_spec)
 Initialize. More...
 
virtual ROC_ATTR_NODISCARD status::StatusCode read (packet::PacketPtr &pp)
 Read next packet. More...
 

Detailed Description

RTP filter.

Performs initial validation and initialization of incoming sequence of RTP packets.

  • Validates sequence of incoming RTP packets and detects disturbances, like seqnum jumps, timestamp jumps, SSRC changes, etc.
  • Populates local fields (that are not carried over network), currently packet duration (based on provided payload decoder).

Definition at line 50 of file filter.h.

Constructor & Destructor Documentation

◆ Filter()

roc::rtp::Filter::Filter ( packet::IReader reader,
audio::IFrameDecoder decoder,
const FilterConfig config,
const audio::SampleSpec sample_spec 
)

Initialize.

Parameters

  • reader is used to read input packets
  • decoder is used to query parameters of packets
  • config defines filtering parameters
  • sample_spec defines stream sample spec

Member Function Documentation

◆ read()

virtual ROC_ATTR_NODISCARD status::StatusCode roc::rtp::Filter::read ( packet::PacketPtr pp)
virtual

Read next packet.

Implements roc::packet::IReader.


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