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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.h

Issue 2917873002: Refactored incoming bitrate estimator. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 19 matching lines...) Expand all
30 int GetFeedbackIntervalMs() const override; 30 int GetFeedbackIntervalMs() const override;
31 void GiveFeedback(const FeedbackPacket& feedback) override; 31 void GiveFeedback(const FeedbackPacket& feedback) override;
32 void OnPacketsSent(const Packets& packets) override; 32 void OnPacketsSent(const Packets& packets) override;
33 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, 33 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
34 uint32_t bitrate) override; 34 uint32_t bitrate) override;
35 int64_t TimeUntilNextProcess() override; 35 int64_t TimeUntilNextProcess() override;
36 void Process() override; 36 void Process() override;
37 37
38 protected: 38 protected:
39 std::unique_ptr<BitrateController> bitrate_controller_; 39 std::unique_ptr<BitrateController> bitrate_controller_;
40 std::unique_ptr<IncomingBitrateEstimator> incoming_bitrate_estimator_;
40 std::unique_ptr<DelayBasedBwe> bwe_; 41 std::unique_ptr<DelayBasedBwe> bwe_;
41 std::unique_ptr<RtcpBandwidthObserver> feedback_observer_; 42 std::unique_ptr<RtcpBandwidthObserver> feedback_observer_;
42 43
43 private: 44 private:
44 Clock* const clock_; 45 Clock* const clock_;
45 RTCPReportBlock report_block_; 46 RTCPReportBlock report_block_;
46 SendTimeHistory send_time_history_; 47 SendTimeHistory send_time_history_;
47 bool has_received_ack_; 48 bool has_received_ack_;
48 uint16_t last_acked_seq_num_; 49 uint16_t last_acked_seq_num_;
49 int64_t last_log_time_ms_; 50 int64_t last_log_time_ms_;
(...skipping 15 matching lines...) Expand all
65 private: 66 private:
66 int64_t last_feedback_ms_; 67 int64_t last_feedback_ms_;
67 std::vector<PacketFeedback> packet_feedback_vector_; 68 std::vector<PacketFeedback> packet_feedback_vector_;
68 }; 69 };
69 70
70 } // namespace bwe 71 } // namespace bwe
71 } // namespace testing 72 } // namespace testing
72 } // namespace webrtc 73 } // namespace webrtc
73 74
74 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_SEND_SIDE_H_ 75 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_SEND_SIDE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698