Cleanup rtcp StreamStatistician::OnRtpPacket
inline InOrder check remove it from IsRetransmit check as redundant avoid call to IsRetransmitOfOldPacket when packet arrived in order take current time once Remove packet overhead counting as unused Bug: None Change-Id: Icd8bf69b5076e4469c349529c9ac79a1b15d9515 Reviewed-on: https://webrtc-review.googlesource.com/c/111746 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25749}
This commit is contained in:
committed by
Commit Bot
parent
af228ee761
commit
44727b48d6
@ -50,17 +50,14 @@ class StreamStatisticianImpl : public StreamStatistician,
|
||||
void EnableRetransmitDetection(bool enable);
|
||||
|
||||
private:
|
||||
bool IsRetransmitOfOldPacket(const RtpPacketReceived& packet) const
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(stream_lock_);
|
||||
bool InOrderPacketInternal(uint16_t sequence_number) const
|
||||
bool IsRetransmitOfOldPacket(const RtpPacketReceived& packet,
|
||||
int64_t now_ms) const
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(stream_lock_);
|
||||
RtcpStatistics CalculateRtcpStatistics()
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(stream_lock_);
|
||||
void UpdateJitter(const RtpPacketReceived& packet, NtpTime receive_time)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(stream_lock_);
|
||||
StreamDataCounters UpdateCounters(const RtpPacketReceived& packet,
|
||||
bool retransmitted)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(stream_lock_);
|
||||
StreamDataCounters UpdateCounters(const RtpPacketReceived& packet);
|
||||
|
||||
const uint32_t ssrc_;
|
||||
Clock* const clock_;
|
||||
@ -82,7 +79,6 @@ class StreamStatisticianImpl : public StreamStatistician,
|
||||
uint16_t received_seq_wraps_ RTC_GUARDED_BY(&stream_lock_);
|
||||
|
||||
// Current counter values.
|
||||
size_t received_packet_overhead_ RTC_GUARDED_BY(&stream_lock_);
|
||||
StreamDataCounters receive_counters_ RTC_GUARDED_BY(&stream_lock_);
|
||||
|
||||
// Counter values when we sent the last report.
|
||||
|
||||
Reference in New Issue
Block a user