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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 public: | 51 public: |
52 static const uint32_t kRemoteBitrateEstimatorMinBitrateBps = 30000; | 52 static const uint32_t kRemoteBitrateEstimatorMinBitrateBps = 30000; |
53 | 53 |
54 RembReceiver(int flow_id, bool plot); | 54 RembReceiver(int flow_id, bool plot); |
55 virtual ~RembReceiver(); | 55 virtual ~RembReceiver(); |
56 | 56 |
57 void ReceivePacket(int64_t arrival_time_ms, | 57 void ReceivePacket(int64_t arrival_time_ms, |
58 const MediaPacket& media_packet) override; | 58 const MediaPacket& media_packet) override; |
59 FeedbackPacket* GetFeedback(int64_t now_ms) override; | 59 FeedbackPacket* GetFeedback(int64_t now_ms) override; |
60 // Implements RemoteBitrateObserver. | 60 // Implements RemoteBitrateObserver. |
61 void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, | 61 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
62 unsigned int bitrate) override; | 62 uint32_t bitrate) override; |
63 | 63 |
64 private: | 64 private: |
65 static RTCPReportBlock BuildReportBlock(StreamStatistician* statistician); | 65 static RTCPReportBlock BuildReportBlock(StreamStatistician* statistician); |
66 bool LatestEstimate(uint32_t* estimate_bps); | 66 bool LatestEstimate(uint32_t* estimate_bps); |
67 | 67 |
68 std::string estimate_log_prefix_; | 68 std::string estimate_log_prefix_; |
69 bool plot_estimate_; | 69 bool plot_estimate_; |
70 SimulatedClock clock_; | 70 SimulatedClock clock_; |
71 rtc::scoped_ptr<ReceiveStatistics> recv_stats_; | 71 rtc::scoped_ptr<ReceiveStatistics> recv_stats_; |
72 int64_t latest_estimate_bps_; | 72 int64_t latest_estimate_bps_; |
73 int64_t last_feedback_ms_; | 73 int64_t last_feedback_ms_; |
74 rtc::scoped_ptr<RemoteBitrateEstimator> estimator_; | 74 rtc::scoped_ptr<RemoteBitrateEstimator> estimator_; |
75 | 75 |
76 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); | 76 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace bwe | 79 } // namespace bwe |
80 } // namespace testing | 80 } // namespace testing |
81 } // namespace webrtc | 81 } // namespace webrtc |
82 | 82 |
83 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ | 83 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ |
OLD | NEW |