OLD | NEW |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 FeedbackPacket* GetFeedback(int64_t now_ms) override; | 63 FeedbackPacket* GetFeedback(int64_t now_ms) override; |
64 // Implements RemoteBitrateObserver. | 64 // Implements RemoteBitrateObserver. |
65 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 65 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
66 uint32_t bitrate) override; | 66 uint32_t bitrate) override; |
67 | 67 |
68 private: | 68 private: |
69 static RTCPReportBlock BuildReportBlock(StreamStatistician* statistician); | 69 static RTCPReportBlock BuildReportBlock(StreamStatistician* statistician); |
70 bool LatestEstimate(uint32_t* estimate_bps); | 70 bool LatestEstimate(uint32_t* estimate_bps); |
71 | 71 |
72 std::string estimate_log_prefix_; | 72 std::string estimate_log_prefix_; |
73 #if BWE_TEST_LOGGING_COMPILE_TIME_ENABLE | |
74 bool plot_estimate_ = false; | 73 bool plot_estimate_ = false; |
75 #endif | |
76 SimulatedClock clock_; | 74 SimulatedClock clock_; |
77 std::unique_ptr<ReceiveStatistics> recv_stats_; | 75 std::unique_ptr<ReceiveStatistics> recv_stats_; |
78 int64_t latest_estimate_bps_; | 76 int64_t latest_estimate_bps_; |
79 int64_t last_feedback_ms_; | 77 int64_t last_feedback_ms_; |
80 std::unique_ptr<RemoteBitrateEstimator> estimator_; | 78 std::unique_ptr<RemoteBitrateEstimator> estimator_; |
81 RTCPReportBlock latest_report_block_; | 79 RTCPReportBlock latest_report_block_; |
82 | 80 |
83 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); | 81 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); |
84 }; | 82 }; |
85 | 83 |
86 } // namespace bwe | 84 } // namespace bwe |
87 } // namespace testing | 85 } // namespace testing |
88 } // namespace webrtc | 86 } // namespace webrtc |
89 | 87 |
90 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ | 88 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ |
OLD | NEW |