| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual ~RembReceiver(); | 59 virtual ~RembReceiver(); |
| 60 | 60 |
| 61 void ReceivePacket(int64_t arrival_time_ms, | 61 void ReceivePacket(int64_t arrival_time_ms, |
| 62 const MediaPacket& media_packet) override; | 62 const MediaPacket& media_packet) override; |
| 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); | |
| 70 bool LatestEstimate(uint32_t* estimate_bps); | 69 bool LatestEstimate(uint32_t* estimate_bps); |
| 71 | 70 |
| 72 std::string estimate_log_prefix_; | 71 std::string estimate_log_prefix_; |
| 73 bool plot_estimate_ = false; | 72 bool plot_estimate_ = false; |
| 74 SimulatedClock clock_; | 73 SimulatedClock clock_; |
| 75 std::unique_ptr<ReceiveStatistics> recv_stats_; | 74 std::unique_ptr<ReceiveStatistics> recv_stats_; |
| 76 int64_t latest_estimate_bps_; | 75 int64_t latest_estimate_bps_; |
| 77 int64_t last_feedback_ms_; | 76 int64_t last_feedback_ms_; |
| 78 std::unique_ptr<RemoteBitrateEstimator> estimator_; | 77 std::unique_ptr<RemoteBitrateEstimator> estimator_; |
| 79 RTCPReportBlock latest_report_block_; | 78 RTCPReportBlock latest_report_block_; |
| 80 | 79 |
| 81 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); | 80 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace bwe | 83 } // namespace bwe |
| 85 } // namespace testing | 84 } // namespace testing |
| 86 } // namespace webrtc | 85 } // namespace webrtc |
| 87 | 86 |
| 88 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ | 87 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ |
| OLD | NEW |