SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <rtcpscheduler.h>
Public Member Functions | |
RTCPSchedulerParams () | |
~RTCPSchedulerParams () | |
int | SetRTCPBandwidth (double bw) |
double | GetRTCPBandwidth () const |
int | SetSenderBandwidthFraction (double fraction) |
double | GetSenderBandwidthFraction () const |
int | SetMinimumTransmissionInterval (const RTPTime &t) |
RTPTime | GetMinimumTransmissionInterval () const |
void | SetUseHalfAtStartup (bool usehalf) |
bool | GetUseHalfAtStartup () const |
void | SetRequestImmediateBYE (bool v) |
bool | GetRequestImmediateBYE () const |
Private Attributes | |
double | bandwidth |
double | senderfraction |
RTPTime | mininterval |
bool | usehalfatstartup |
bool | immediatebye |
Describes parameters used by the RTCPScheduler class.
Definition at line 56 of file rtcpscheduler.h.
qrtplib::RTCPSchedulerParams::RTCPSchedulerParams | ( | ) |
Definition at line 46 of file rtcpscheduler.cpp.
References bandwidth, qrtplib::RTPTimeInitializerObject::Dummy(), immediatebye, RTCP_DEFAULTHALFATSTARTUP, RTCP_DEFAULTIMMEDIATEBYE, RTCP_DEFAULTSENDERFRACTION, senderfraction, qrtplib::timeinit, and usehalfatstartup.
qrtplib::RTCPSchedulerParams::~RTCPSchedulerParams | ( | ) |
Definition at line 56 of file rtcpscheduler.cpp.
|
inline |
Returns the minimum RTCP transmission interval (default is 5 seconds).
Definition at line 84 of file rtcpscheduler.h.
Referenced by qrtplib::RTCPScheduler::CalculateBYETransmissionInterval(), and qrtplib::RTCPScheduler::CalculateDeterministicInterval().
|
inline |
Returns if the scheduler will schedule a BYE packet to be sent immediately if allowed (default is true
).
Definition at line 112 of file rtcpscheduler.h.
Referenced by qrtplib::RTCPScheduler::ScheduleBYEPacket().
|
inline |
Returns the used RTCP bandwidth in bytes per second (default is 1000).
Definition at line 66 of file rtcpscheduler.h.
Referenced by qrtplib::RTCPScheduler::CalculateBYETransmissionInterval(), and qrtplib::RTCPScheduler::CalculateDeterministicInterval().
|
inline |
Returns the fraction of the RTCP bandwidth reserved for senders (default is 25%).
Definition at line 75 of file rtcpscheduler.h.
Referenced by qrtplib::RTCPScheduler::CalculateBYETransmissionInterval(), and qrtplib::RTCPScheduler::CalculateDeterministicInterval().
|
inline |
Returns true
if only half the minimum interval should be used before sending the first RTCP compound packet (defualt is true
).
Definition at line 98 of file rtcpscheduler.h.
Referenced by qrtplib::RTCPScheduler::CalculateBYETransmissionInterval(), and qrtplib::RTCPScheduler::CalculateDeterministicInterval().
int qrtplib::RTCPSchedulerParams::SetMinimumTransmissionInterval | ( | const RTPTime & | t | ) |
Sets the minimum (deterministic) interval between RTCP compound packets to t
.
Definition at line 76 of file rtcpscheduler.cpp.
References ERR_RTP_SCHEDPARAMS_BADMINIMUMINTERVAL, qrtplib::RTPTime::GetDouble(), mininterval, and RTCPSCHED_MININTERVAL.
Referenced by qrtplib::RTPSession::InternalCreate().
|
inline |
If v
is true
, the scheduler will schedule a BYE packet to be sent immediately if allowed.
Definition at line 104 of file rtcpscheduler.h.
Referenced by qrtplib::RTPSession::InternalCreate().
int qrtplib::RTCPSchedulerParams::SetRTCPBandwidth | ( | double | bw | ) |
Sets the RTCP bandwidth to be used to bw
(in bytes per second).
Definition at line 60 of file rtcpscheduler.cpp.
References bandwidth, and ERR_RTP_SCHEDPARAMS_INVALIDBANDWIDTH.
Referenced by qrtplib::RTPSession::InternalCreate(), and qrtplib::RTPSession::SetSessionBandwidth().
int qrtplib::RTCPSchedulerParams::SetSenderBandwidthFraction | ( | double | fraction | ) |
Sets the fraction of the RTCP bandwidth reserved for senders to fraction
.
Definition at line 68 of file rtcpscheduler.cpp.
References ERR_RTP_SCHEDPARAMS_BADFRACTION, and senderfraction.
Referenced by qrtplib::RTPSession::InternalCreate().
|
inline |
If usehalf
is true
, only use half the minimum interval before sending the first RTCP compound packet.
Definition at line 90 of file rtcpscheduler.h.
Referenced by qrtplib::RTPSession::InternalCreate().
|
private |
Definition at line 117 of file rtcpscheduler.h.
Referenced by RTCPSchedulerParams(), and SetRTCPBandwidth().
|
private |
Definition at line 121 of file rtcpscheduler.h.
Referenced by RTCPSchedulerParams().
|
private |
Definition at line 119 of file rtcpscheduler.h.
Referenced by SetMinimumTransmissionInterval().
|
private |
Definition at line 118 of file rtcpscheduler.h.
Referenced by RTCPSchedulerParams(), and SetSenderBandwidthFraction().
|
private |
Definition at line 120 of file rtcpscheduler.h.
Referenced by RTCPSchedulerParams().