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 |
11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SINGLE_
STREAM_H_ | 11 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SINGLE_
STREAM_H_ |
12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SINGLE_
STREAM_H_ | 12 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SINGLE_
STREAM_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/base/constructormagic.h" |
| 19 #include "webrtc/base/criticalsection.h" |
| 20 #include "webrtc/base/rate_statistics.h" |
18 #include "webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h" | 21 #include "webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h" |
19 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
20 #include "webrtc/rtc_base/constructormagic.h" | |
21 #include "webrtc/rtc_base/criticalsection.h" | |
22 #include "webrtc/rtc_base/rate_statistics.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 const Clock* clock); | 29 const Clock* clock); |
30 virtual ~RemoteBitrateEstimatorSingleStream(); | 30 virtual ~RemoteBitrateEstimatorSingleStream(); |
31 | 31 |
32 void IncomingPacket(int64_t arrival_time_ms, | 32 void IncomingPacket(int64_t arrival_time_ms, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 int64_t last_process_time_; | 66 int64_t last_process_time_; |
67 int64_t process_interval_ms_ GUARDED_BY(crit_sect_); | 67 int64_t process_interval_ms_ GUARDED_BY(crit_sect_); |
68 bool uma_recorded_; | 68 bool uma_recorded_; |
69 | 69 |
70 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorSingleStream); | 70 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorSingleStream); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace webrtc | 73 } // namespace webrtc |
74 | 74 |
75 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SING
LE_STREAM_H_ | 75 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SING
LE_STREAM_H_ |
OLD | NEW |