Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: webrtc/modules/rtp_rtcp/include/receive_statistics.h

Issue 2131913003: Revert of Refactor NACK bitrate allocation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/include/rtp_rtcp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 28 matching lines...) Expand all
39 // retransmitted packet, false otherwise. 39 // retransmitted packet, false otherwise.
40 virtual bool IsRetransmitOfOldPacket(const RTPHeader& header, 40 virtual bool IsRetransmitOfOldPacket(const RTPHeader& header,
41 int64_t min_rtt) const = 0; 41 int64_t min_rtt) const = 0;
42 42
43 // Returns true if |sequence_number| is received in order, false otherwise. 43 // Returns true if |sequence_number| is received in order, false otherwise.
44 virtual bool IsPacketInOrder(uint16_t sequence_number) const = 0; 44 virtual bool IsPacketInOrder(uint16_t sequence_number) const = 0;
45 }; 45 };
46 46
47 typedef std::map<uint32_t, StreamStatistician*> StatisticianMap; 47 typedef std::map<uint32_t, StreamStatistician*> StatisticianMap;
48 48
49 class ReceiveStatistics { 49 class ReceiveStatistics : public Module {
50 public: 50 public:
51 virtual ~ReceiveStatistics() {} 51 virtual ~ReceiveStatistics() {}
52 52
53 static ReceiveStatistics* Create(Clock* clock); 53 static ReceiveStatistics* Create(Clock* clock);
54 54
55 // Updates the receive statistics with this packet. 55 // Updates the receive statistics with this packet.
56 virtual void IncomingPacket(const RTPHeader& rtp_header, 56 virtual void IncomingPacket(const RTPHeader& rtp_header,
57 size_t packet_length, 57 size_t packet_length,
58 bool retransmitted) = 0; 58 bool retransmitted) = 0;
59 59
(...skipping 22 matching lines...) Expand all
82 82
83 class NullReceiveStatistics : public ReceiveStatistics { 83 class NullReceiveStatistics : public ReceiveStatistics {
84 public: 84 public:
85 void IncomingPacket(const RTPHeader& rtp_header, 85 void IncomingPacket(const RTPHeader& rtp_header,
86 size_t packet_length, 86 size_t packet_length,
87 bool retransmitted) override; 87 bool retransmitted) override;
88 void FecPacketReceived(const RTPHeader& header, 88 void FecPacketReceived(const RTPHeader& header,
89 size_t packet_length) override; 89 size_t packet_length) override;
90 StatisticianMap GetActiveStatisticians() const override; 90 StatisticianMap GetActiveStatisticians() const override;
91 StreamStatistician* GetStatistician(uint32_t ssrc) const override; 91 StreamStatistician* GetStatistician(uint32_t ssrc) const override;
92 int64_t TimeUntilNextProcess() override;
93 void Process() override;
92 void SetMaxReorderingThreshold(int max_reordering_threshold) override; 94 void SetMaxReorderingThreshold(int max_reordering_threshold) override;
93 void RegisterRtcpStatisticsCallback( 95 void RegisterRtcpStatisticsCallback(
94 RtcpStatisticsCallback* callback) override; 96 RtcpStatisticsCallback* callback) override;
95 void RegisterRtpStatisticsCallback( 97 void RegisterRtpStatisticsCallback(
96 StreamDataCountersCallback* callback) override; 98 StreamDataCountersCallback* callback) override;
97 }; 99 };
98 100
99 } // namespace webrtc 101 } // namespace webrtc
100 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RECEIVE_STATISTICS_H_ 102 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RECEIVE_STATISTICS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/include/rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698