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

Side by Side Diff: webrtc/modules/congestion_controller/include/congestion_controller.h

Issue 2553863003: Parse FlexFEC RTP headers in Call and add integration with BWE. (Closed)
Patch Set: Add basic CongestionController unit test, based on nisse's suggestion. Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 RtcEventLog* event_log, 61 RtcEventLog* event_log,
62 PacketRouter* packet_router); 62 PacketRouter* packet_router);
63 CongestionController(Clock* clock, 63 CongestionController(Clock* clock,
64 Observer* observer, 64 Observer* observer,
65 RemoteBitrateObserver* remote_bitrate_observer, 65 RemoteBitrateObserver* remote_bitrate_observer,
66 RtcEventLog* event_log, 66 RtcEventLog* event_log,
67 PacketRouter* packet_router, 67 PacketRouter* packet_router,
68 std::unique_ptr<PacedSender> pacer); 68 std::unique_ptr<PacedSender> pacer);
69 virtual ~CongestionController(); 69 virtual ~CongestionController();
70 70
71 virtual void OnReceivedPacket(int64_t arrival_time_ms,
72 size_t payload_size,
73 const RTPHeader& header);
74
71 virtual void SetBweBitrates(int min_bitrate_bps, 75 virtual void SetBweBitrates(int min_bitrate_bps,
72 int start_bitrate_bps, 76 int start_bitrate_bps,
73 int max_bitrate_bps); 77 int max_bitrate_bps);
74 // Resets both the BWE state and the bitrate estimator. Note the first 78 // Resets both the BWE state and the bitrate estimator. Note the first
75 // argument is the bitrate_bps. 79 // argument is the bitrate_bps.
76 virtual void ResetBweAndBitrates(int bitrate_bps, 80 virtual void ResetBweAndBitrates(int bitrate_bps,
77 int min_bitrate_bps, 81 int min_bitrate_bps,
78 int max_bitrate_bps); 82 int max_bitrate_bps);
79 virtual void SignalNetworkState(NetworkState state); 83 virtual void SignalNetworkState(NetworkState state);
80 virtual BitrateController* GetBitrateController() const; 84 virtual BitrateController* GetBitrateController() const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); 139 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_);
136 int64_t last_reported_rtt_ GUARDED_BY(critsect_); 140 int64_t last_reported_rtt_ GUARDED_BY(critsect_);
137 NetworkState network_state_ GUARDED_BY(critsect_); 141 NetworkState network_state_ GUARDED_BY(critsect_);
138 142
139 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); 143 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController);
140 }; 144 };
141 145
142 } // namespace webrtc 146 } // namespace webrtc
143 147
144 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ 148 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698