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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const std::vector<PacketInfo>& packet_feedback_vector) override; | 75 const std::vector<PacketInfo>& packet_feedback_vector) override; |
76 | 76 |
77 void IncomingPacket(int64_t arrival_time_ms, | 77 void IncomingPacket(int64_t arrival_time_ms, |
78 size_t payload_size, | 78 size_t payload_size, |
79 const RTPHeader& header, | 79 const RTPHeader& header, |
80 bool was_paced) override; | 80 bool was_paced) override; |
81 // This class relies on Process() being called periodically (at least once | 81 // This class relies on Process() being called periodically (at least once |
82 // every other second) for streams to be timed out properly. Therefore it | 82 // every other second) for streams to be timed out properly. Therefore it |
83 // shouldn't be detached from the ProcessThread except if it's about to be | 83 // shouldn't be detached from the ProcessThread except if it's about to be |
84 // deleted. | 84 // deleted. |
85 void Process() override; | 85 int32_t Process() override; |
86 int64_t TimeUntilNextProcess() override; | 86 int64_t TimeUntilNextProcess() override; |
87 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 87 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
88 void RemoveStream(uint32_t ssrc) override; | 88 void RemoveStream(uint32_t ssrc) override; |
89 bool LatestEstimate(std::vector<uint32_t>* ssrcs, | 89 bool LatestEstimate(std::vector<uint32_t>* ssrcs, |
90 uint32_t* bitrate_bps) const override; | 90 uint32_t* bitrate_bps) const override; |
91 void SetMinBitrate(int min_bitrate_bps) override; | 91 void SetMinBitrate(int min_bitrate_bps) override; |
92 | 92 |
93 private: | 93 private: |
94 typedef std::map<uint32_t, int64_t> Ssrcs; | 94 typedef std::map<uint32_t, int64_t> Ssrcs; |
95 enum class ProbeResult { kBitrateUpdated, kNoUpdate }; | 95 enum class ProbeResult { kBitrateUpdated, kNoUpdate }; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 Ssrcs ssrcs_ GUARDED_BY(&crit_); | 136 Ssrcs ssrcs_ GUARDED_BY(&crit_); |
137 AimdRateControl remote_rate_ GUARDED_BY(&crit_); | 137 AimdRateControl remote_rate_ GUARDED_BY(&crit_); |
138 Clock* const clock_; | 138 Clock* const clock_; |
139 | 139 |
140 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorAbsSendTime); | 140 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorAbsSendTime); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace webrtc | 143 } // namespace webrtc |
144 | 144 |
145 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_ABS_
SEND_TIME_H_ | 145 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_ABS_
SEND_TIME_H_ |
OLD | NEW |