41 #define RTCPSCHED_MININTERVAL 1.0 70 if (fraction < 0.0 || fraction > 1.0)
88 sources(s), nextrtcptime(0, 0), prevrtcptime(0, 0), rtprand(r)
209 bool aresender =
false;
224 if (checktime <= currenttime)
243 bool aresender =
false;
266 double sfraction = ((double) numsenders) / ((double) numtotal);
274 n = (double) numsenders;
279 n = (double) (numtotal - numsenders);
285 n = (double) numtotal;
294 double ntimesC = n * C;
295 double Td = (tmin > ntimesC) ? tmin : ntimesC;
312 T = (td * mul) / 1.21828;
352 diff2 = (((double) members) / ((double) pmembers)) * tc_min_tp.
GetDouble();
416 double ntimesC = n * C;
417 double Td = (tmin > ntimesC) ? tmin : ntimesC;
420 double T = (Td * mul) / 1.21828;
int SetSenderBandwidthFraction(double fraction)
void ActiveMemberDecrease()
virtual double GetRandomDouble()=0
int GetSenderCount() const
RTPSourceData * GetOwnSourceInfo()
RTPTimeInitializerObject timeinit
bool GetRequestImmediateBYE() const
std::size_t avgbyepacketsize
int SetRTCPBandwidth(double bw)
int SetMinimumTransmissionInterval(const RTPTime &t)
RTCPPacket * GetNextPacket()
RTPTime CalculateBYETransmissionInterval()
#define RTCP_DEFAULTIMMEDIATEBYE
double GetRTCPBandwidth() const
bool GetUseHalfAtStartup() const
RTCPScheduler(RTPSources &sources, RTPRandom &rtprand)
std::size_t headeroverhead
void ScheduleBYEPacket(std::size_t packetsize)
std::size_t GetCompoundPacketLength()
RTPTime GetMinimumTransmissionInterval() const
int GetActiveMemberCount() const
#define RTCPSCHED_MININTERVAL
#define ERR_RTP_SCHEDPARAMS_INVALIDBANDWIDTH
void AnalyseIncoming(RTCPCompoundPacket &rtcpcomppack)
RTCPSchedulerParams schedparams
#define ERR_RTP_SCHEDPARAMS_BADFRACTION
#define RTCP_DEFAULTMININTERVAL
std::size_t avgrtcppacksize
RTPTime CalculateTransmissionInterval(bool sender)
static RTPTime CurrentTime()
PacketType GetPacketType() const
void AnalyseOutgoing(RTCPCompoundPacket &rtcpcomppack)
void CalculateNextRTCPTime()
#define RTCP_DEFAULTSENDERFRACTION
void PerformReverseReconsideration()
#define RTCP_DEFAULTHALFATSTARTUP
RTPTime GetTransmissionDelay()
double GetSenderBandwidthFraction() const
#define ERR_RTP_SCHEDPARAMS_BADMINIMUMINTERVAL
RTPTime CalculateDeterministicInterval(bool sender=false)