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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 private: | 73 private: |
74 // Pop oldest element from the back of the list and remove it from the map. | 74 // Pop oldest element from the back of the list and remove it from the map. |
75 void RemoveTail(); | 75 void RemoveTail(); |
76 // Add new element to the front of the list and insert it in the map. | 76 // Add new element to the front of the list and insert it in the map. |
77 void UpdateHead(PacketIdentifierNode* new_head); | 77 void UpdateHead(PacketIdentifierNode* new_head); |
78 size_t capacity_; | 78 size_t capacity_; |
79 std::map<uint16_t, PacketNodeIt> map_; | 79 std::map<uint16_t, PacketNodeIt> map_; |
80 std::list<PacketIdentifierNode*> list_; | 80 std::list<PacketIdentifierNode*> list_; |
81 }; | 81 }; |
82 | 82 |
83 const int kMinBitrateKbps = 150; | 83 const int kMinBitrateKbps = 20; |
84 const int kMaxBitrateKbps = 3000; | 84 const int kMaxBitrateKbps = 3000; |
85 | 85 |
86 class BweSender : public Module { | 86 class BweSender : public Module { |
87 public: | 87 public: |
88 BweSender() {} | 88 BweSender() {} |
89 virtual ~BweSender() {} | 89 virtual ~BweSender() {} |
90 | 90 |
91 virtual int GetFeedbackIntervalMs() const = 0; | 91 virtual int GetFeedbackIntervalMs() const = 0; |
92 virtual void GiveFeedback(const FeedbackPacket& feedback) = 0; | 92 virtual void GiveFeedback(const FeedbackPacket& feedback) = 0; |
93 virtual void OnPacketsSent(const Packets& packets) = 0; | 93 virtual void OnPacketsSent(const Packets& packets) = 0; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 BitrateObserver* observer, | 132 BitrateObserver* observer, |
133 Clock* clock); | 133 Clock* clock); |
134 | 134 |
135 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, | 135 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, |
136 int flow_id, | 136 int flow_id, |
137 bool plot); | 137 bool plot); |
138 } // namespace bwe | 138 } // namespace bwe |
139 } // namespace testing | 139 } // namespace testing |
140 } // namespace webrtc | 140 } // namespace webrtc |
141 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ | 141 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ |
OLD | NEW |