OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // sender. | 79 // sender. |
80 uint16_t sequence_number; | 80 uint16_t sequence_number; |
81 // Size of the packet excluding RTP headers. | 81 // Size of the packet excluding RTP headers. |
82 size_t payload_size; | 82 size_t payload_size; |
83 // True if the packet was paced out by the pacer. | 83 // True if the packet was paced out by the pacer. |
84 bool was_paced; | 84 bool was_paced; |
85 }; | 85 }; |
86 | 86 |
87 class RemoteBitrateEstimator : public CallStatsObserver, public Module { | 87 class RemoteBitrateEstimator : public CallStatsObserver, public Module { |
88 public: | 88 public: |
| 89 static const int kDefaultMinBitrateBps = 30000; |
89 virtual ~RemoteBitrateEstimator() {} | 90 virtual ~RemoteBitrateEstimator() {} |
90 | 91 |
91 virtual void IncomingPacketFeedbackVector( | 92 virtual void IncomingPacketFeedbackVector( |
92 const std::vector<PacketInfo>& packet_feedback_vector) { | 93 const std::vector<PacketInfo>& packet_feedback_vector) { |
93 assert(false); | 94 assert(false); |
94 } | 95 } |
95 | 96 |
96 // Called for each incoming packet. Updates the incoming payload bitrate | 97 // Called for each incoming packet. Updates the incoming payload bitrate |
97 // estimate and the over-use detector. If an over-use is detected the | 98 // estimate and the over-use detector. If an over-use is detected the |
98 // remote bitrate estimate will be updated. Note that |payload_size| is the | 99 // remote bitrate estimate will be updated. Note that |payload_size| is the |
(...skipping 17 matching lines...) Expand all Loading... |
116 virtual bool GetStats(ReceiveBandwidthEstimatorStats* output) const = 0; | 117 virtual bool GetStats(ReceiveBandwidthEstimatorStats* output) const = 0; |
117 | 118 |
118 protected: | 119 protected: |
119 static const int64_t kProcessIntervalMs = 500; | 120 static const int64_t kProcessIntervalMs = 500; |
120 static const int64_t kStreamTimeOutMs = 2000; | 121 static const int64_t kStreamTimeOutMs = 2000; |
121 }; | 122 }; |
122 | 123 |
123 } // namespace webrtc | 124 } // namespace webrtc |
124 | 125 |
125 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA
TOR_H_ | 126 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA
TOR_H_ |
OLD | NEW |