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 11 matching lines...) Expand all Loading... |
22 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 22 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 class RemoteBitrateEstimatorSingleStream : public RemoteBitrateEstimator { | 26 class RemoteBitrateEstimatorSingleStream : public RemoteBitrateEstimator { |
27 public: | 27 public: |
28 RemoteBitrateEstimatorSingleStream(RemoteBitrateObserver* observer, | 28 RemoteBitrateEstimatorSingleStream(RemoteBitrateObserver* observer, |
29 Clock* clock); | 29 Clock* clock); |
30 virtual ~RemoteBitrateEstimatorSingleStream(); | 30 virtual ~RemoteBitrateEstimatorSingleStream(); |
31 | 31 |
| 32 void IncomingPacketFeedbackVector( |
| 33 const std::vector<PacketInfo>& packet_feedback_vector) override; |
32 void IncomingPacket(int64_t arrival_time_ms, | 34 void IncomingPacket(int64_t arrival_time_ms, |
33 size_t payload_size, | 35 size_t payload_size, |
34 const RTPHeader& header) override; | 36 const RTPHeader& header) override; |
35 void Process() override; | 37 void Process() override; |
36 int64_t TimeUntilNextProcess() override; | 38 int64_t TimeUntilNextProcess() override; |
37 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 39 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
38 void RemoveStream(uint32_t ssrc) override; | 40 void RemoveStream(uint32_t ssrc) override; |
39 bool LatestEstimate(std::vector<uint32_t>* ssrcs, | 41 bool LatestEstimate(std::vector<uint32_t>* ssrcs, |
40 uint32_t* bitrate_bps) const override; | 42 uint32_t* bitrate_bps) const override; |
41 void SetMinBitrate(int min_bitrate_bps) override; | 43 void SetMinBitrate(int min_bitrate_bps) override; |
(...skipping 20 matching lines...) Expand all Loading... |
62 int64_t last_process_time_; | 64 int64_t last_process_time_; |
63 int64_t process_interval_ms_ GUARDED_BY(crit_sect_.get()); | 65 int64_t process_interval_ms_ GUARDED_BY(crit_sect_.get()); |
64 bool uma_recorded_; | 66 bool uma_recorded_; |
65 | 67 |
66 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorSingleStream); | 68 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorSingleStream); |
67 }; | 69 }; |
68 | 70 |
69 } // namespace webrtc | 71 } // namespace webrtc |
70 | 72 |
71 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SING
LE_STREAM_H_ | 73 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SING
LE_STREAM_H_ |
OLD | NEW |