Chromium Code Reviews| 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 bool plot_estimate_; | 73 bool plot_estimate_ ATTRIBUTE_UNUSED; |
|
kwiberg-webrtc
2017/02/09 09:48:43
#if instead?
nisse-webrtc
2017/02/09 11:26:18
Done.
| |
| 74 SimulatedClock clock_; | 74 SimulatedClock clock_; |
| 75 std::unique_ptr<ReceiveStatistics> recv_stats_; | 75 std::unique_ptr<ReceiveStatistics> recv_stats_; |
| 76 int64_t latest_estimate_bps_; | 76 int64_t latest_estimate_bps_; |
| 77 int64_t last_feedback_ms_; | 77 int64_t last_feedback_ms_; |
| 78 std::unique_ptr<RemoteBitrateEstimator> estimator_; | 78 std::unique_ptr<RemoteBitrateEstimator> estimator_; |
| 79 RTCPReportBlock latest_report_block_; | 79 RTCPReportBlock latest_report_block_; |
| 80 | 80 |
| 81 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); | 81 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace bwe | 84 } // namespace bwe |
| 85 } // namespace testing | 85 } // namespace testing |
| 86 } // namespace webrtc | 86 } // namespace webrtc |
| 87 | 87 |
| 88 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ | 88 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ |
| OLD | NEW |